azure-pipelines-tasks: [BUG]: AzureAppServiceSettings@1 A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.%0AError: TypeError%0AError Description: Protocol "https:" not supported. Expected "http:"

Task name

AzureAppServiceSettings@1

Task version

1.223

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

Azure DevOps Server (Please specify exact version in the textbox below)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows_NT

Task log

2023-06-06T09:15:54.5989817Z ##[debug]Evaluating condition for step: 'Azure App Service Settings: web-app-name'
2023-06-06T09:15:54.5992651Z ##[debug]Evaluating: SucceededNode()
2023-06-06T09:15:54.5993319Z ##[debug]Evaluating SucceededNode:
2023-06-06T09:15:54.5994695Z ##[debug]=> True
2023-06-06T09:15:54.5995332Z ##[debug]Result: True
2023-06-06T09:15:54.5995992Z ##[section]Starting: Azure App Service Settings: (webappname)
2023-06-06T09:15:54.6245531Z ==============================================================================
2023-06-06T09:15:54.6245804Z Task         : Azure App Service Settings
2023-06-06T09:15:54.6245962Z Description  : Update/Add App settings an Azure Web App for Linux or Windows
2023-06-06T09:15:54.6246227Z Version      : 1.223.0
2023-06-06T09:15:54.6246364Z Author       : Microsoft Corporation
2023-06-06T09:15:54.6246516Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks
2023-06-06T09:15:54.6246761Z ==============================================================================
2023-06-06T09:15:54.6697284Z ##[debug]Using node path: C:\agents\externals\node16\bin\node.exe
2023-06-06T09:15:55.6246694Z ##[debug]agent.TempDirectory=C:\agents\_work\_temp
2023-06-06T09:15:55.6249064Z ##[debug]loading inputs and endpoints
2023-06-06T09:15:55.6416203Z ##[debug]loading ENDPOINT_AUTH_connectionsservicename
2023-06-06T09:15:55.8333339Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_connectionsservicename_AUTHENTICATIONTYPE
2023-06-06T09:15:55.8987113Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_connectionsservicename_SERVICEPRINCIPALID
2023-06-06T09:15:55.9047874Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_connectionsservicename_SERVICEPRINCIPALKEY
2023-06-06T09:15:55.9067692Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_connectionsservicename_TENANTID
2023-06-06T09:15:55.9106656Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2023-06-06T09:15:55.9133929Z ##[debug]loading ENDPOINT_AUTH_SCHEME_connectionsservicename
2023-06-06T09:15:55.9193126Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2023-06-06T09:15:55.9242626Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2023-06-06T09:15:55.9256832Z ##[debug]loading INPUT_APPNAME
2023-06-06T09:15:55.9284798Z ##[debug]loading INPUT_APPSETTINGS
2023-06-06T09:15:55.9421645Z ##[debug]loading INPUT_CONNECTEDSERVICENAME
2023-06-06T09:15:55.9423152Z ##[debug]loading INPUT_RESOURCEGROUPNAME
2023-06-06T09:15:55.9499540Z ##[debug]loading INPUT_SLOTNAME
2023-06-06T09:15:55.9512405Z ##[debug]loading SECRET_AZURE_APP_SERVICE_KUDU_PRODUCTION_PASSWORD
2023-06-06T09:15:55.9516273Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2023-06-06T09:15:55.9521325Z ##[debug]loaded 16
2023-06-06T09:15:58.9719453Z ##[debug]Agent.ProxyUrl=http://proxiinfo
2023-06-06T09:15:58.9720312Z ##[debug]Agent.ProxyUsername=undefined
2023-06-06T09:15:58.9721068Z ##[debug]Agent.ProxyPassword=undefined
2023-06-06T09:15:58.9721783Z ##[debug]Agent.ProxyBypassList=["azurewebsites\\.net"]
2023-06-06T09:15:58.9722485Z ##[debug]expose agent proxy configuration.
2023-06-06T09:15:58.9741543Z ##[debug]Agent.CAInfo=undefined
2023-06-06T09:15:58.9776969Z ##[debug]Agent.ClientCert=undefined
2023-06-06T09:15:58.9777816Z ##[debug]Agent.SkipCertValidation=undefined
2023-06-06T09:15:58.9778602Z ##[debug]agent.proxyurl=http://proxiinfo
2023-06-06T09:15:58.9779292Z ##[debug]agent.proxyusername=undefined
2023-06-06T09:15:58.9779973Z ##[debug]agent.proxypassword=undefined
2023-06-06T09:15:58.9780679Z ##[debug]agent.proxybypasslist=["azurewebsites\\.net"]
2023-06-06T09:15:58.9782249Z ##[debug]agent.proxybypasslist=["azurewebsites\\.net"]
2023-06-06T09:15:58.9783389Z ##[debug]VSTS_ARM_REST_IGNORE_SSL_ERRORS=undefined
2023-06-06T09:15:58.9784199Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_e7846edc-215b-458c-9e2f-41423af00f3a_build_66_0
2023-06-06T09:15:58.9785178Z ##[debug]check path : C:\agents\_work\_tasks\AzureAppServiceSettings_3eeea460-bffa-11e9-9cb5-2a2ae2dbcce4\1.223.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json
2023-06-06T09:15:58.9873659Z ##[debug]adding resource file: C:\agents\_work\_tasks\AzureAppServiceSettings_3eeea460-bffa-11e9-9cb5-2a2ae2dbcce4\1.223.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json
2023-06-06T09:15:58.9874812Z ##[debug]system.culture=en-US
2023-06-06T09:15:58.9875451Z ##[debug]Agent.TempDirectory=C:\agents\_work\_temp
2023-06-06T09:15:58.9876862Z ##[debug]Resource file has already set to: C:\agents\_work\_tasks\AzureAppServiceSettings_3eeea460-bffa-11e9-9cb5-2a2ae2dbcce4\1.223.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json
2023-06-06T09:15:58.9894966Z ##[debug]Resource file has already set to: C:\agents\_work\_tasks\AzureAppServiceSettings_3eeea460-bffa-11e9-9cb5-2a2ae2dbcce4\1.223.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json
2023-06-06T09:15:58.9914752Z ##[debug]Resource file has already set to: C:\agents\_work\_tasks\AzureAppServiceSettings_3eeea460-bffa-11e9-9cb5-2a2ae2dbcce4\1.223.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json
2023-06-06T09:15:58.9916072Z ##[debug]Resource file has already set to: C:\agents\_work\_tasks\AzureAppServiceSettings_3eeea460-bffa-11e9-9cb5-2a2ae2dbcce4\1.223.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json
2023-06-06T09:15:58.9917265Z ##[debug]Resource file has already set to: C:\agents\_work\_tasks\AzureAppServiceSettings_3eeea460-bffa-11e9-9cb5-2a2ae2dbcce4\1.223.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json
2023-06-06T09:15:58.9918501Z ##[debug]Resource file has already set to: C:\agents\_work\_tasks\AzureAppServiceSettings_3eeea460-bffa-11e9-9cb5-2a2ae2dbcce4\1.223.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json
2023-06-06T09:15:58.9919746Z ##[debug]Resource file has already set to: C:\agents\_work\_tasks\AzureAppServiceSettings_3eeea460-bffa-11e9-9cb5-2a2ae2dbcce4\1.223.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json
2023-06-06T09:15:58.9920881Z ##[debug]check path : C:\agents\_work\_tasks\AzureAppServiceSettings_3eeea460-bffa-11e9-9cb5-2a2ae2dbcce4\1.223.0\task.json
2023-06-06T09:15:58.9921835Z ##[debug]adding resource file: C:\agents\_work\_tasks\AzureAppServiceSettings_3eeea460-bffa-11e9-9cb5-2a2ae2dbcce4\1.223.0\task.json
2023-06-06T09:15:58.9922666Z ##[debug]system.culture=en-US
2023-06-06T09:15:58.9951254Z ##[warning]Resource file has already set to: C:\agents\_work\_tasks\AzureAppServiceSettings_3eeea460-bffa-11e9-9cb5-2a2ae2dbcce4\1.223.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json
2023-06-06T09:15:58.9960711Z ##[debug]Processed: ##vso[task.issue type=warning;]Resource file has already set to: C:\agents\_work\_tasks\AzureAppServiceSettings_3eeea460-bffa-11e9-9cb5-2a2ae2dbcce4\1.223.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json
2023-06-06T09:15:58.9961931Z ##[debug]ConnectedServiceName=connectionsservicename
2023-06-06T09:15:58.9962706Z ##[debug]appName=web-app-name
2023-06-06T09:15:58.9963412Z ##[debug]resourceGroupName=rg-name
2023-06-06T09:15:58.9964037Z ##[debug]slotName=production
2023-06-06T09:15:58.9966201Z ##[debug]appSettings=[
{
"name": "AzureAd__ApplicationId",
"value": "appid",
"slotSettings": false
}
]
2023-06-06T09:15:58.9969378Z ##[debug]generalSettings=undefined
2023-06-06T09:15:58.9970067Z ##[debug]connectionStrings=undefined
2023-06-06T09:15:58.9970667Z ##[debug]USE_MSAL=true
2023-06-06T09:15:58.9971370Z ##[debug]MSAL - USE_MSAL override is found: true
2023-06-06T09:15:58.9972093Z ##[debug]connectionsservicename auth scheme = ServicePrincipal
2023-06-06T09:15:58.9972978Z ##[debug]connectionsservicename data subscriptionid = subscriptionid
2023-06-06T09:15:58.9973872Z ##[debug]connectionsservicename data subscriptionname = Subscription name
2023-06-06T09:15:58.9975330Z ##[debug]connectionsservicename auth param serviceprincipalid = ***
2023-06-06T09:15:58.9976431Z ##[debug]connectionsservicename data activeDirectoryAuthority = https://login.microsoftonline.com/
2023-06-06T09:15:58.9977335Z ##[debug]connectionsservicename auth param tenantid = tenantid
2023-06-06T09:15:58.9978226Z ##[debug]connectionsservicename=https://management.azure.com/
2023-06-06T09:15:58.9979045Z ##[debug]connectionsservicename data environment = AzureCloud
2023-06-06T09:15:58.9979808Z ##[debug]connectionsservicename auth scheme = ServicePrincipal
2023-06-06T09:15:58.9980637Z ##[debug]connectionsservicename data msiclientId = undefined
2023-06-06T09:15:58.9981544Z ##[debug]connectionsservicename data activeDirectoryServiceEndpointResourceId = https://management.core.windows.net/
2023-06-06T09:15:58.9982468Z ##[debug]connectionsservicename data AzureKeyVaultServiceEndpointResourceId = https://vault.azure.net
2023-06-06T09:15:58.9983388Z ##[debug]connectionsservicename data AzureKeyVaultDnsSuffix = vault.azure.net
2023-06-06T09:15:58.9984245Z ##[debug]connectionsservicename data ScopeLevel = Subscription
2023-06-06T09:15:58.9984994Z ##[debug]MSAL - getEndpoint - useGraphActiveDirectoryResource=false
2023-06-06T09:15:58.9985780Z ##[debug]MSAL - getEndpoint - useMSAL=true
2023-06-06T09:15:59.0017454Z ##[debug]MSAL - getEndpoint - endpoint={"subscriptionID":"subscriptionid","subscriptionName":"Subscription name","servicePrincipalClientID":"***","environmentAuthorityUrl":"https://login.microsoftonline.com/","tenantID":"tenantid","url":"https://management.azure.com/","environment":"AzureCloud","scheme":"ServicePrincipal","activeDirectoryResourceID":"https://management.core.windows.net/","azureKeyVaultServiceEndpointResourceId":"https://vault.azure.net","azureKeyVaultDnsSuffix":"vault.azure.net","scopeLevel":"Subscription"}
2023-06-06T09:15:59.0295810Z ##[debug]MSAL - getEndpoint - connectedServiceName=connectionsservicename
2023-06-06T09:15:59.0307242Z ##[debug]connectionsservicename auth param authenticationType = spnKey
2023-06-06T09:15:59.0308186Z ##[debug]credentials spn endpoint
2023-06-06T09:15:59.0309569Z ##[debug]connectionsservicename auth param serviceprincipalkey = ***
2023-06-06T09:15:59.0310461Z ##[debug]connectionsservicename data EnableAdfsAuthentication = false
2023-06-06T09:15:59.0311306Z ##[debug]connectionsservicename auth param apitoken = undefined
2023-06-06T09:15:59.0314376Z ##[debug]{"subscriptionID":"subscriptionid","subscriptionName":"Subscription name","servicePrincipalClientID":"***","environmentAuthorityUrl":"https://login.microsoftonline.com/","tenantID":"tenantid","url":"https://management.azure.com/","environment":"AzureCloud","scheme":"ServicePrincipal","activeDirectoryResourceID":"https://management.azure.com/","azureKeyVaultServiceEndpointResourceId":"https://vault.azure.net","azureKeyVaultDnsSuffix":"vault.azure.net","scopeLevel":"Subscription","authenticationType":"spnKey","servicePrincipalKey":***,"isADFSEnabled":false,"applicationTokenCredentials":{"clientId":"***","tenantId":"tenantid","baseUrl":"https://management.azure.com/","authorityUrl":"https://login.microsoftonline.com/","activeDirectoryResourceId":"https://management.azure.com/","isAzureStackEnvironment":false,"authType":"spnKey","secret":***,"isADFSEnabled":false,"useMSAL":true,"tokenMutex":{"_semaphore":{"_value":1,"_cancelError":{},"_weightedQueues":[],"_weightedWaiters":[]}}}}
2023-06-06T09:15:59.0318060Z Got service connection details for Azure App Service:'web-app-name'
2023-06-06T09:15:59.0318794Z ##[debug]Resource Group: rg-name
2023-06-06T09:15:59.0609000Z ##[debug]Processed: ##vso[telemetry.publish area=TaskEndpointId;feature=AzureRmWebAppDeployment]{"endpointId":"connectionsservicename"}
2023-06-06T09:15:59.0654351Z Updating App Service Application settings. Data: {"AzureAd__ApplicationId":"data","AzureAd__ClientId":"clientid","AzureAd__Instance":"https://login.microsoftonline.com/","AzureAd__TenantId":"clientid"}
2023-06-06T09:15:59.0660383Z ##[debug]MSAL - getMSALToken called. force=undefined
2023-06-06T09:15:59.0663254Z ##[debug]agent.proxyurl=http://proxiinfo
2023-06-06T09:15:59.0664252Z ##[debug]agent.proxyurl=http://proxiinfo
2023-06-06T09:15:59.0665045Z ##[debug]agent.proxybypasslist=["azurewebsites\\.net"]
2023-06-06T09:15:59.0665804Z ##[debug]agent.proxybypasslist=["azurewebsites\\.net"]
2023-06-06T09:15:59.0666518Z ##[debug]MSAL - Proxy will be used.
2023-06-06T09:15:59.0667209Z ##[debug]agent.proxyusername=undefined
2023-06-06T09:15:59.0667886Z ##[debug]agent.proxypassword=undefined
2023-06-06T09:15:59.0668678Z ##[debug]MSAL - Proxy setup with no-auth is: http://proxiinfo
2023-06-06T09:15:59.0669522Z ##[debug]MSAL - ServicePrincipal - clientSecret is used.
2023-06-06T09:15:59.0670382Z ##[debug][Tue, 06 Jun 2023 09:15:58 GMT] : @azure/msal-node@1.14.5 : Info - acquireTokenByClientCredential called
2023-06-06T09:15:59.0672420Z ##[error][Tue, 06 Jun 2023 09:15:58 GMT] : @azure/msal-node@1.14.5 : Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
Error: TypeError
Error Description: Protocol "https:" not supported. Expected "http:"
2023-06-06T09:15:59.0673922Z ##[debug]Processed: ##vso[task.issue type=error;][Tue, 06 Jun 2023 09:15:58 GMT] : @azure/msal-node@1.14.5 : Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.%0AError: TypeError%0AError Description: Protocol "https:" not supported. Expected "http:"
2023-06-06T09:15:59.0675895Z ##[error][Tue, 06 Jun 2023 09:15:58 GMT] : @azure/msal-node@1.14.5 : Error - Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error.
2023-06-06T09:15:59.0677289Z ##[debug]Processed: ##vso[task.issue type=error;][Tue, 06 Jun 2023 09:15:58 GMT] : @azure/msal-node@1.14.5 : Error - Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error.
2023-06-06T09:15:59.0678523Z ##[debug]MSAL - retrying getMSALToken - temporary error code: endpoints_resolution_error
2023-06-06T09:15:59.0679346Z ##[debug]MSAL - retrying getMSALToken - remaining attempts: 3
2023-06-06T09:16:00.9999671Z ##[debug]MSAL - getMSALToken called. force=undefined
2023-06-06T09:16:01.0001070Z ##[debug][Tue, 06 Jun 2023 09:16:00 GMT] : @azure/msal-node@1.14.5 : Info - acquireTokenByClientCredential called
2023-06-06T09:16:01.0003056Z ##[error][Tue, 06 Jun 2023 09:16:00 GMT] : @azure/msal-node@1.14.5 : Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
Error: TypeError
Error Description: Protocol "https:" not supported. Expected "http:"
2023-06-06T09:16:01.0005939Z ##[debug]Processed: ##vso[task.issue type=error;][Tue, 06 Jun 2023 09:16:00 GMT] : @azure/msal-node@1.14.5 : Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.%0AError: TypeError%0AError Description: Protocol "https:" not supported. Expected "http:"
2023-06-06T09:16:01.0007995Z ##[error][Tue, 06 Jun 2023 09:16:00 GMT] : @azure/msal-node@1.14.5 : Error - Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error.
2023-06-06T09:16:01.0009963Z ##[debug]Processed: ##vso[task.issue type=error;][Tue, 06 Jun 2023 09:16:00 GMT] : @azure/msal-node@1.14.5 : Error - Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error.
2023-06-06T09:16:01.0016053Z ##[debug]MSAL - retrying getMSALToken - temporary error code: endpoints_resolution_error
2023-06-06T09:16:01.0017005Z ##[debug]MSAL - retrying getMSALToken - remaining attempts: 2
2023-06-06T09:16:03.0044488Z ##[debug]MSAL - getMSALToken called. force=undefined
2023-06-06T09:16:03.0110720Z ##[debug][Tue, 06 Jun 2023 09:16:02 GMT] : @azure/msal-node@1.14.5 : Info - acquireTokenByClientCredential called
2023-06-06T09:16:03.0120645Z ##[error][Tue, 06 Jun 2023 09:16:02 GMT] : @azure/msal-node@1.14.5 : Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
Error: TypeError
Error Description: Protocol "https:" not supported. Expected "http:"
2023-06-06T09:16:03.0123134Z ##[debug]Processed: ##vso[task.issue type=error;][Tue, 06 Jun 2023 09:16:02 GMT] : @azure/msal-node@1.14.5 : Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.%0AError: TypeError%0AError Description: Protocol "https:" not supported. Expected "http:"
2023-06-06T09:16:03.0160596Z ##[error][Tue, 06 Jun 2023 09:16:03 GMT] : @azure/msal-node@1.14.5 : Error - Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error.
2023-06-06T09:16:03.0162729Z ##[debug]Processed: ##vso[task.issue type=error;][Tue, 06 Jun 2023 09:16:03 GMT] : @azure/msal-node@1.14.5 : Error - Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error.
2023-06-06T09:16:03.0179448Z ##[debug]MSAL - retrying getMSALToken - temporary error code: endpoints_resolution_error
2023-06-06T09:16:03.0221735Z ##[debug]MSAL - retrying getMSALToken - remaining attempts: 1
2023-06-06T09:16:05.0098366Z ##[debug]MSAL - getMSALToken called. force=undefined
2023-06-06T09:16:05.0100201Z ##[debug][Tue, 06 Jun 2023 09:16:05 GMT] : @azure/msal-node@1.14.5 : Info - acquireTokenByClientCredential called
2023-06-06T09:16:05.0154031Z ##[error][Tue, 06 Jun 2023 09:16:05 GMT] : @azure/msal-node@1.14.5 : Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
Error: TypeError
Error Description: Protocol "https:" not supported. Expected "http:"
2023-06-06T09:16:05.0156531Z ##[debug]Processed: ##vso[task.issue type=error;][Tue, 06 Jun 2023 09:16:05 GMT] : @azure/msal-node@1.14.5 : Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.%0AError: TypeError%0AError Description: Protocol "https:" not supported. Expected "http:"
2023-06-06T09:16:05.0164636Z ##[error][Tue, 06 Jun 2023 09:16:05 GMT] : @azure/msal-node@1.14.5 : Error - Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error.
2023-06-06T09:16:05.0167876Z ##[debug]Processed: ##vso[task.issue type=error;][Tue, 06 Jun 2023 09:16:05 GMT] : @azure/msal-node@1.14.5 : Error - Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error.
2023-06-06T09:16:05.0175661Z ##[debug]task result: Failed
2023-06-06T09:16:05.0190071Z ##[error]Error: Failed to get App service 'web-app-name' application settings. Error: Could not fetch access token for Azure. Status code: endpoints_resolution_error, status message: Error: could not resolve endpoints. Please check network and try again. Detail: ClientConfigurationError: untrusted_authority: The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.
2023-06-06T09:16:05.0192537Z ##[debug]Processed: ##vso[task.issue type=error;]Error: Failed to get App service 'web-app-name' application settings. Error: Could not fetch access token for Azure. Status code: endpoints_resolution_error, status message: Error: could not resolve endpoints. Please check network and try again. Detail: ClientConfigurationError: untrusted_authority: The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.
2023-06-06T09:16:05.0213351Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Failed to get App service 'web-app-name' application settings. Error: Could not fetch access token for Azure. Status code: endpoints_resolution_error, status message: Error: could not resolve endpoints. Please check network and try again. Detail: ClientConfigurationError: untrusted_authority: The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.
2023-06-06T09:16:05.0257395Z ##[section]Finishing: Azure App Service Settings: web-app-name

Relevant log output

Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.%0AError: TypeError%0AError Description: Protocol "https:" not supported. Expected "http:"
Error: Could not fetch access token for Azure. Status code: endpoints_resolution_error, status message: Error: could not resolve endpoints. Please check network and try again. Detail: ClientConfigurationError: untrusted_authority: The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.

Aditional info

I used this task and it was working correctly. Before the execution of this task, i am using the Azure App Service deployment which works as expected but not update settings: 
- task: AzureRmWebAppDeployment@4 //This task works as expected 
  displayName: 'Azure App Service Deploy: web-$(environment)-webapp-xxx'
  inputs:
    azureSubscription: '${{ parameters.serviceConnection }}'
    WebAppName: 'web-${{ parameters.environment }}-webapp-xxx'
    packageForLinux: '$(Pipeline.Workspace)/drop/artifact.zip'
  enabled: true

- task: AzureAppServiceSettings@1 //it fails here
  displayName: 'Azure App Service Settings: web-${{ parameters.environment }}-webapp-xxx'
  inputs:
    azureSubscription: '${{ parameters.serviceConnection }}'
    appName: 'web-${{ parameters.environment }}-webapp-xxx'
    resourceGroupName: 'rg-${{ parameters.environment }}-webapp-xxx'
    appSettings: |
    //app settings
     
     ]
It stopepd working 1st of june.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 2
  • Comments: 18

Most upvoted comments

upvote for the keyvault task ##[error][Wed, 23 Aug 2023 18:24:14 GMT] : @azure/msal-node@1.14.5 : Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata. Error: Error Error Description: Error: getaddrinfo EAI_AGAIN login.microsoftonline.com ##[error][Wed, 23 Aug 2023 18:24:14 GMT] : @azure/msal-node@1.14.5 : Error - Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error. ##[error][Wed, 23 Aug 2023 18:24:36 GMT] : @azure/msal-node@1.14.5 : Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata. Error: Error Error Description: Error: getaddrinfo EAI_AGAIN login.microsoftonline.com ##[error][Wed, 23 Aug 2023 18:24:36 GMT] : @azure/msal-node@1.14.5 : Error - Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error. ##[error][Wed, 23 Aug 2023 18:24:58 GMT] : @azure/msal-node@1.14.5 : Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata. Error: Error Error Description: Error: getaddrinfo EAI_AGAIN login.microsoftonline.com ##[error][Wed, 23 Aug 2023 18:24:58 GMT] : @azure/msal-node@1.14.5 : Error - Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error. ##[error][Wed, 23 Aug 2023 18:25:20 GMT] : @azure/msal-node@1.14.5 : Error - A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata. Error: Error Error Description: Error: getaddrinfo EAI_AGAIN login.microsoftonline.com ##[error][Wed, 23 Aug 2023 18:25:20 GMT] : @azure/msal-node@1.14.5 : Error - Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error. ##[error]