`SCM update poll timed out` publishing function app
This issue is similar to #1863. However I'm able to reproduce the issue in Azure DevOps on a Windows build agent every time (but not locally). I am using [email protected]. The publish command has no additional arguments. The function stack is PowerShell Core 7.0.
The non-debug output looks like:
Publishing app [APP-NAME]
Getting site publishing info...
Timed out waiting for SCM to update the Environment Settings
From looking at the code, I'm expecting the SCM settings values to output when CLI_DEBUG=1 but that doesn't happen. There are no network restrictions on the function app.
Redacted CLI debug log
Publishing app [APP-NAME]
> getmac.exe
> cmd /c az account get-access-token --query "accessToken" --output json
Unable to run az CLI command `az account get-access-token --query "accessToken" --output json`. Error: ERROR: Please run 'az login' to setup account.
Unable to fetch access token from az CLI
> pwsh -NonInteractive -o Text -NoProfile -c if(!(Get-Module -ListAvailable Az.Accounts)) { throw 'Az.Accounts module not found' }
> pwsh -NonInteractive -o Text -NoProfile -c
$currentAzureContext = Get-AzContext;
$azureRmProfile = [Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureRmProfileProvider]::Instance.Profile;
$profileClient = New-Object Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient $azureRmProfile;
$profileClient.AcquireAccessToken($currentAzureContext.Subscription.TenantId).AccessToken;
> cmd /c az cloud list --query "[?isActive].endpoints.resourceManager | [0]" --output json
Request:
Method: GET, RequestUri: 'https://management.azure.com/subscriptions?api-version=2018-09-01', Version: 1.1, Content: <null>, Headers:
{
Authorization: Bearer [BEARER-TOKEN]
User-Agent: functions-core-tools/3.0.3568
Accept: application/json
x-ms-request-id: 142d6509-e5c2-432f-9248-7e226a3d0f8f
}
Response:
StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Cache-Control: no-cache
Pragma: no-cache
x-ms-ratelimit-remaining-tenant-reads: 11999
x-ms-request-id: fa841794-bbc2-4deb-b6f0-c3d1cbec7b82
x-ms-correlation-request-id: fa841794-bbc2-4deb-b6f0-c3d1cbec7b82
x-ms-routing-request-id: WESTUS:20210809T155313Z:fa841794-bbc2-4deb-b6f0-c3d1cbec7b82
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
Date: Mon, 09 Aug 2021 15:53:13 GMT
Content-Type: application/json; charset=utf-8
Expires: -1
Content-Length: 816
}
{"value":[{"id":"/subscriptions/[SUBSCRIPTION-ID]","authorizationSource":"RoleBased","subscriptionId":"[SUBSCRIPTION-ID]","tenantId":"***","displayName":"Production","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"EnterpriseAgreement_2014-09-01","spendingLimit":"Off"}},{"id":"/subscriptions/[SUBSCRIPTION2-ID]","authorizationSource":"RoleBased","subscriptionId":"[SUBSCRIPTION2-ID]","tenantId":"***","displayName":"Non Production","state":"Enabled","subscriptionPolicies":{"locationPlacementId":"Public_2014-09-01","quotaId":"MSDNDevTest_2014-09-01","spendingLimit":"Off"}}],"count":{"type":"Total","value":2}}
Request:
Method: POST, RequestUri: 'https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2019-04-01', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
{
Authorization: Bearer [BEARER-TOKEN]
User-Agent: functions-core-tools/3.0.3568
Accept: application/json
x-ms-request-id: f0143e24-e1ff-49c4-80a3-7a67656f121f
Content-Type: application/json; charset=utf-8
}
{"subscriptions":["[SUBSCRIPTION-ID]","[SUBSCRIPTION2-ID]"],"query":"where type =~ 'Microsoft.Web/sites' and name =~ '[APP-NAME]' | project id"}
Response:
StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Cache-Control: no-cache
Pragma: no-cache
Strict-Transport-Security: max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-tenant-resource-requests: 14
x-ms-user-quota-remaining: 14
x-ms-user-quota-resets-after: 00:00:05
Server: Kestrel
x-ms-ratelimit-remaining-tenant-reads: 11999
x-ms-request-id: a4ae6b54-efd8-4333-9b8f-34c5cebf6018
x-ms-correlation-request-id: a4ae6b54-efd8-4333-9b8f-34c5cebf6018
x-ms-routing-request-id: WESTUS:20210809T155314Z:a4ae6b54-efd8-4333-9b8f-34c5cebf6018
X-Content-Type-Options: nosniff
Date: Mon, 09 Aug 2021 15:53:13 GMT
Content-Length: 277
Content-Type: application/json; charset=utf-8
Expires: -1
}
{"totalRecords":1,"count":1,"data":{"columns":[{"name":"id","type":"string"}],"rows":[["/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[RG-NAME]/providers/Microsoft.Web/sites/[APP-NAME]"]]},"facets":[],"resultTruncated":"false"}
Request:
Method: GET, RequestUri: 'https://management.azure.com/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[RG-NAME]/providers/Microsoft.Web/sites/[APP-NAME]?api-version=2015-08-01', Version: 1.1, Content: <null>, Headers:
{
Authorization: Bearer [BEARER-TOKEN]
User-Agent: functions-core-tools/3.0.3568
Accept: application/json
x-ms-request-id: 2db25285-09a0-4d69-a4e3-8118acfe7ecf
}
Request:
Method: POST, RequestUri: 'https://management.azure.com/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[RG-NAME]/providers/Microsoft.Web/sites/[APP-NAME]/config/PublishingCredentials/list?api-version=2015-08-01', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
{
Authorization: Bearer [BEARER-TOKEN]
User-Agent: functions-core-tools/3.0.3568
Accept: application/json
x-ms-request-id: 3cb4a88e-8acb-4ab5-8b60-a58ec2578601
Content-Type: application/json; charset=utf-8
}
null
Request:
Method: GET, RequestUri: 'https://management.azure.com/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[RG-NAME]/providers/Microsoft.Web/sites/[APP-NAME]/config/web?api-version=2015-08-01', Version: 1.1, Content: <null>, Headers:
{
Authorization: Bearer [BEARER-TOKEN]
User-Agent: functions-core-tools/3.0.3568
Accept: application/json
x-ms-request-id: 9cf56f20-f4eb-45fc-8c8d-daef57d73337
}
Request:
Method: POST, RequestUri: 'https://management.azure.com/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[RG-NAME]/providers/Microsoft.Web/sites/[APP-NAME]/config/AppSettings/list?api-version=2015-08-01', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
{
Authorization: Bearer [BEARER-TOKEN]
User-Agent: functions-core-tools/3.0.3568
Accept: application/json
x-ms-request-id: 3682f56f-d47a-4888-928d-e12af276ffe6
Content-Type: application/json; charset=utf-8
}
null
Request:
Method: POST, RequestUri: 'https://management.azure.com/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[RG-NAME]/providers/Microsoft.Web/sites/[APP-NAME]/config/ConnectionStrings/list?api-version=2015-08-01', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
{
Authorization: Bearer [BEARER-TOKEN]
User-Agent: functions-core-tools/3.0.3568
Accept: application/json
x-ms-request-id: b3ce264c-2206-4381-bd10-85421648c5e8
Content-Type: application/json; charset=utf-8
}
null
Response:
StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Cache-Control: no-cache
Pragma: no-cache
Strict-Transport-Security: max-age=31536000; includeSubDomains
x-ms-request-id: b3ce264c-2206-4381-bd10-85421648c5e8
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11999
x-ms-correlation-request-id: ccc27d6e-7bb3-4723-af63-c49ff56183ea
x-ms-routing-request-id: WESTUS:20210809T155314Z:ccc27d6e-7bb3-4723-af63-c49ff56183ea
X-Content-Type-Options: nosniff
Date: Mon, 09 Aug 2021 15:53:14 GMT
Content-Length: 411
Content-Type: application/json
Expires: -1
}
{"id":"/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[RG-NAME]/providers/Microsoft.Web/sites/[APP-NAME]/config/connectionstrings","name":"connectionstrings","type":"Microsoft.Web/sites/config","location":"West US 2","tags":{"business unit":"Communications","component":"current","environment":"prod"},"properties":{}}
Response:
StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Cache-Control: no-cache
Pragma: no-cache
Strict-Transport-Security: max-age=31536000; includeSubDomains
x-ms-request-id: 3682f56f-d47a-4888-928d-e12af276ffe6
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11999
x-ms-correlation-request-id: 6d74704f-3ca7-4d3b-94bb-97812f174d4e
x-ms-routing-request-id: WESTUS:20210809T155314Z:6d74704f-3ca7-4d3b-94bb-97812f174d4e
X-Content-Type-Options: nosniff
Date: Mon, 09 Aug 2021 15:53:14 GMT
Content-Length: 1641
Content-Type: application/json
Expires: -1
}
{"id":"/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[RG-NAME]/providers/Microsoft.Web/sites/[APP-NAME]/config/appsettings","name":"appsettings","type":"Microsoft.Web/sites/config","location":"West US 2","tags":{"business unit":"Communications","component":"current","environment":"prod"},"properties":{"APPINSIGHTS_INSTRUMENTATIONKEY":"[APPINSIGHTS-KEY]","APPLICATIONINSIGHTS_CONNECTION_STRING":"InstrumentationKey=[APPINSIGHTS-KEY];IngestionEndpoint=https://westus2-0.in.applicationinsights.azure.com/","AzureWebJobsStorage":"DefaultEndpointsProtocol=https;AccountName=[FUNCTION-STORAGE];AccountKey=[STORAGE-KEY]","Common_SqlResourceGroupName":"[CONFIG-VALUE]","ExportDatabases_SqlDatabaseNames":"[CONFIG-VALUE]-master-db","ExportDatabases_StorageName":"[CONFIG-VALUE]1","FUNCTIONS_EXTENSION_VERSION":"~3","FUNCTIONS_WORKER_RUNTIME":"powershell","WEBSITE_RUN_FROM_PACKAGE":"1","WEBSITE_TIME_ZONE":"E. Australia Standard Time","Common_SendGridApiKey":"@Microsoft.KeyVault(SecretUri=https://[KEY-VALUE1].vault.azure.net/secrets/DWSendGridApiKey/9ca9ee6299e743a09fe2dc4bb9f5822d)","Common_SqlServerLogin":"@Microsoft.KeyVault(SecretUri=https://[CONFIG-VALUE]-kv.vault.azure.net/secrets/SqlServerLogin/5f5149ba80df486585fde910eca86691)","Common_SqlServerPassword":"@Microsoft.KeyVault(SecretUri=https://[CONFIG-VALUE]-kv.vault.azure.net/secrets/SqlServerPassword/4e304ed422b946a1bdd2b6338705f5fb)"}}
Response:
StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Cache-Control: no-cache
Pragma: no-cache
Strict-Transport-Security: max-age=31536000; includeSubDomains
x-ms-request-id: 3cb4a88e-8acb-4ab5-8b60-a58ec2578601
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11999
x-ms-correlation-request-id: 8105d788-ed0d-402d-82b9-2be6c90945c8
x-ms-routing-request-id: WESTUS:20210809T155314Z:8105d788-ed0d-402d-82b9-2be6c90945c8
X-Content-Type-Options: nosniff
Date: Mon, 09 Aug 2021 15:53:13 GMT
Content-Length: 861
Content-Type: application/json
Expires: -1
}
{"id":"/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[RG-NAME]/providers/Microsoft.Web/sites/[APP-NAME]/publishingcredentials/$[APP-NAME]","name":"[APP-NAME]","type":"Microsoft.Web/sites/publishingcredentials","location":"West US 2","tags":{"business unit":"Communications","component":"current","environment":"prod"},"properties":{"name":null,"publishingUserName":"$[APP-NAME]","publishingPassword":"[PUBLISHING-PASSWORD]","publishingPasswordHash":null,"publishingPasswordHashSalt":null,"metadata":null,"isDeleted":false,"scmUri":"https://$[APP-NAME]:***@[APP-NAME].scm.azurewebsites.net"}}
Response:
StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Cache-Control: no-cache
Pragma: no-cache
Strict-Transport-Security: max-age=31536000; includeSubDomains
x-ms-request-id: 9cf56f20-f4eb-45fc-8c8d-daef57d73337
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11999
x-ms-correlation-request-id: abb8caba-fead-4761-b2ca-8ccc036ec024
x-ms-routing-request-id: WESTUS:20210809T155314Z:abb8caba-fead-4761-b2ca-8ccc036ec024
X-Content-Type-Options: nosniff
Date: Mon, 09 Aug 2021 15:53:13 GMT
Content-Length: 3791
Content-Type: application/json
Expires: -1
}
{"id":"/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[RG-NAME]/providers/Microsoft.Web/sites/[APP-NAME]/config/web","name":"[APP-NAME]","type":"Microsoft.Web/sites/config","location":"West US 2","tags":{"business unit":"Communications","component":"current","environment":"prod"},"properties":{"numberOfWorkers":1,"defaultDocuments":["Default.htm","Default.html","Default.asp","index.htm","index.html","iisstart.htm","default.aspx","index.php"],"netFrameworkVersion":"v4.0","phpVersion":"5.6","pythonVersion":"","nodeVersion":"","powerShellVersion":"~7","linuxFxVersion":"","windowsFxVersion":null,"requestTracingEnabled":false,"remoteDebuggingEnabled":false,"remoteDebuggingVersion":null,"httpLoggingEnabled":false,"azureMonitorLogCategories":null,"acrUseManagedIdentityCreds":false,"acrUserManagedIdentityID":null,"logsDirectorySizeLimit":35,"detailedErrorLoggingEnabled":false,"publishingUsername":"$[APP-NAME]","publishingPassword":null,"appSettings":null,"azureStorageAccounts":{},"metadata":null,"connectionStrings":null,"machineKey":null,"handlerMappings":null,"documentRoot":null,"scmType":"VSTSRM","use32BitWorkerProcess":true,"webSocketsEnabled":false,"alwaysOn":true,"javaVersion":null,"javaContainer":null,"javaContainerVersion":null,"appCommandLine":"","managedPipelineMode":0,"virtualApplications":[{"virtualPath":"/","physicalPath":"site\\wwwroot","preloadEnabled":true,"virtualDirectories":null}],"winAuthAdminState":0,"winAuthTenantState":0,"customAppPoolIdentityAdminState":false,"customAppPoolIdentityTenantState":false,"runtimeADUser":null,"runtimeADUserPassword":null,"loadBalancing":1,"routingRules":[],"experiments":{"rampUpRules":[]},"limits":null,"autoHealEnabled":false,"autoHealRules":null,"tracingOptions":null,"vnetName":"","vnetRouteAllEnabled":false,"vnetPrivatePortsCount":0,"publicNetworkAccess":null,"siteAuthEnabled":false,"siteAuthSettings":{"enabled":null,"configVersion":null,"unauthenticatedClientAction":null,"tokenStoreEnabled":null,"allowedExternalRedirectUrls":null,"defaultProvider":null,"clientId":null,"clientSecret":null,"clientSecretSettingName":null,"clientSecretCertificateThumbprint":null,"issuer":null,"allowedAudiences":null,"additionalLoginParams":null,"isAadAutoProvisioned":false,"aadClaimsAuthorization":null,"googleClientId":null,"googleClientSecret":null,"googleClientSecretSettingName":null,"googleOAuthScopes":null,"facebookAppId":null,"facebookAppSecret":null,"facebookAppSecretSettingName":null,"facebookOAuthScopes":null,"gitHubClientId":null,"gitHubClientSecret":null,"gitHubClientSecretSettingName":null,"gitHubOAuthScopes":null,"twitterConsumerKey":null,"twitterConsumerSecret":null,"twitterConsumerSecretSettingName":null,"microsoftAccountClientId":null,"microsoftAccountClientSecret":null,"microsoftAccountClientSecretSettingName":null,"microsoftAccountOAuthScopes":null},"cors":{"allowedOrigins":["https://functions.azure.com","https://functions-staging.azure.com","https://functions-next.azure.com"],"supportCredentials":false},"push":null,"apiDefinition":null,"apiManagementConfig":null,"autoSwapSlotName":null,"localMySqlEnabled":false,"managedServiceIdentityId":11834,"xManagedServiceIdentityId":null,"keyVaultReferenceIdentity":null,"ipSecurityRestrictions":null,"scmIpSecurityRestrictions":null,"scmIpSecurityRestrictionsUseMain":null,"http20Enabled":true,"minTlsVersion":"1.2","scmMinTlsVersion":"1.0","ftpsState":"Disabled","reservedInstanceCount":0,"preWarmedInstanceCount":null,"functionAppScaleLimit":0,"healthCheckPath":null,"fileChangeAuditEnabled":false,"functionsRuntimeScaleMonitoringEnabled":false,"websiteTimeZone":"E. Australia Standard Time","minimumElasticInstanceCount":0}}
Response:
StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Cache-Control: no-cache
Pragma: no-cache
ETag: "1D78D33F417C7CB"
Strict-Transport-Security: max-age=31536000; includeSubDomains
x-ms-request-id: 2db25285-09a0-4d69-a4e3-8118acfe7ecf
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11999
x-ms-correlation-request-id: 85cead23-743a-4347-af77-447ce5ae2c84
x-ms-routing-request-id: WESTUS:20210809T155314Z:85cead23-743a-4347-af77-447ce5ae2c84
X-Content-Type-Options: nosniff
Date: Mon, 09 Aug 2021 15:53:14 GMT
Content-Length: 6284
Content-Type: application/json
Expires: -1
}
{"id":"/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[RG-NAME]/providers/Microsoft.Web/sites/[APP-NAME]","name":"[APP-NAME]","type":"Microsoft.Web/sites","kind":"functionapp","location":"West US 2","tags":{"business unit":"Communications","component":"current","environment":"prod"},"properties":{"name":"[APP-NAME]","state":"Running","hostNames":["[APP-NAME].azurewebsites.net"],"webSpace":"[CONFIG-VALUE]-WestUS2webspace","selfLink":"https://waws-prod-mwh-051.api.azurewebsites.windows.net:454/subscriptions/[SUBSCRIPTION-ID]/webspaces/[CONFIG-VALUE]-WestUS2webspace/sites/[APP-NAME]","repositorySiteName":"[APP-NAME]","owner":null,"usageState":0,"enabled":true,"adminEnabled":true,"enabledHostNames":["[APP-NAME].azurewebsites.net","[APP-NAME].scm.azurewebsites.net"],"siteProperties":{"metadata":null,"properties":[{"name":"LinuxFxVersion","value":""},{"name":"WindowsFxVersion","value":null}],"appSettings":null},"availabilityState":0,"sslCertificates":null,"csrs":[],"cers":null,"siteMode":null,"hostNameSslStates":[{"name":"[APP-NAME].azurewebsites.net","sslState":0,"ipBasedSslResult":null,"virtualIP":null,"thumbprint":null,"toUpdate":null,"toUpdateIpBasedSsl":null,"ipBasedSslState":0,"hostType":0},{"name":"[APP-NAME].scm.azurewebsites.net","sslState":0,"ipBasedSslResult":null,"virtualIP":null,"thumbprint":null,"toUpdate":null,"toUpdateIpBasedSsl":null,"ipBasedSslState":0,"hostType":1}],"computeMode":null,"serverFarm":null,"serverFarmId":"/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[CONFIG-VALUE]/providers/Microsoft.Web/serverfarms/[CONFIG-VALUE]-cm-hp","reserved":false,"isXenon":false,"hyperV":false,"lastModifiedTimeUtc":"2021-08-09T15:33:50.8766667","storageRecoveryDefaultState":"Running","contentAvailabilityState":0,"runtimeAvailabilityState":0,"siteConfig":{"numberOfWorkers":1,"defaultDocuments":null,"netFrameworkVersion":null,"phpVersion":null,"pythonVersion":null,"nodeVersion":null,"powerShellVersion":null,"linuxFxVersion":"","windowsFxVersion":null,"requestTracingEnabled":null,"remoteDebuggingEnabled":null,"remoteDebuggingVersion":null,"httpLoggingEnabled":null,"azureMonitorLogCategories":null,"acrUseManagedIdentityCreds":false,"acrUserManagedIdentityID":null,"logsDirectorySizeLimit":null,"detailedErrorLoggingEnabled":null,"publishingUsername":null,"publishingPassword":null,"appSettings":null,"azureStorageAccounts":null,"metadata":null,"connectionStrings":null,"machineKey":null,"handlerMappings":null,"documentRoot":null,"scmType":null,"use32BitWorkerProcess":null,"webSocketsEnabled":null,"alwaysOn":true,"javaVersion":null,"javaContainer":null,"javaContainerVersion":null,"appCommandLine":null,"managedPipelineMode":null,"virtualApplications":null,"winAuthAdminState":null,"winAuthTenantState":null,"customAppPoolIdentityAdminState":null,"customAppPoolIdentityTenantState":null,"runtimeADUser":null,"runtimeADUserPassword":null,"loadBalancing":null,"routingRules":null,"experiments":null,"limits":null,"autoHealEnabled":null,"autoHealRules":null,"tracingOptions":null,"vnetName":null,"vnetRouteAllEnabled":null,"vnetPrivatePortsCount":null,"publicNetworkAccess":null,"cors":null,"push":null,"apiDefinition":null,"apiManagementConfig":null,"autoSwapSlotName":null,"localMySqlEnabled":null,"managedServiceIdentityId":null,"xManagedServiceIdentityId":null,"keyVaultReferenceIdentity":null,"ipSecurityRestrictions":null,"scmIpSecurityRestrictions":null,"scmIpSecurityRestrictionsUseMain":null,"http20Enabled":true,"minTlsVersion":null,"scmMinTlsVersion":null,"ftpsState":null,"preWarmedInstanceCount":null,"functionAppScaleLimit":0,"healthCheckPath":null,"fileChangeAuditEnabled":null,"functionsRuntimeScaleMonitoringEnabled":null,"websiteTimeZone":null,"minimumElasticInstanceCount":0},"deploymentId":"[APP-NAME]","slotName":null,"trafficManagerHostNames":null,"sku":"PremiumV3","scmSiteAlsoStopped":false,"targetSwapSlot":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"clientAffinityEnabled":true,"clientCertEnabled":false,"clientCertMode":0,"clientCertExclusionPaths":null,"hostNamesDisabled":false,"domainVerificationIdentifiers":null,"customDomainVerificationId":"BBFF339A0B582C31EE6A090F8A7A6FF132BC64BD130B40AC136B970B289B93E4","kind":"functionapp","inboundIpAddress":"40.64.128.225","possibleInboundIpAddresses":"40.64.128.225","ftpUsername":"[APP-NAME]\\$[APP-NAME]","ftpsHostName":"ftps://waws-prod-mwh-051.ftp.azurewebsites.windows.net/site/wwwroot","outboundIpAddresses":"52.149.26.109,52.149.26.223,52.149.26.248,52.149.27.21,52.149.27.137,52.149.28.241,40.64.128.225","possibleOutboundIpAddresses":"20.190.0.233,20.190.1.8,20.190.1.21,20.190.1.32,20.190.1.42,20.190.1.61,20.190.1.72,20.190.0.33,20.190.1.162,20.190.1.177,20.190.1.187,20.190.1.191,52.149.26.109,52.149.26.223,52.149.26.248,52.149.27.21,52.149.27.137,52.149.28.241,51.143.61.29,52.137.93.170,52.149.29.95,52.149.29.238,52.149.30.76,52.149.30.96,20.190.1.217,20.190.2.43,20.190.2.66,52.143.80.96,52.156.145.74,52.156.145.106,40.64.128.225","containerSize":1536,"dailyMemoryTimeQuota":0,"suspendedTill":null,"siteDisabledReason":0,"functionExecutionUnitsCache":null,"maxNumberOfWorkers":null,"homeStamp":"waws-prod-mwh-051","cloningInfo":null,"hostingEnvironmentId":null,"tags":{"business unit":"Communications","component":"current","environment":"prod"},"resourceGroup":"[RG-NAME]","defaultHostName":"[APP-NAME].azurewebsites.net","slotSwapStatus":null,"keyVaultReferenceIdentity":"SystemAssigned","httpsOnly":true,"redundancyMode":0,"inProgressOperationId":null,"geoDistributions":null,"privateEndpointConnections":[],"buildVersion":null,"targetBuildVersion":null,"migrationState":null,"eligibleLogCategories":"FunctionAppLogs","storageAccountRequired":false,"virtualNetworkSubnetId":null},"identity":{"type":"SystemAssigned","tenantId":"***","principalId":"[PRINCIPAL-ID]"}}
Getting site publishing info...
Request:
Method: PUT, RequestUri: 'https://management.azure.com/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[RG-NAME]/providers/Microsoft.Web/sites/[APP-NAME]/config/AppSettings?api-version=2015-08-01', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
{
Authorization: Bearer [BEARER-TOKEN]
User-Agent: functions-core-tools/3.0.3568
Accept: application/json
x-ms-request-id: db0ef82b-b19f-4696-becc-17da2364915c
Content-Type: application/json; charset=utf-8
}
{"properties":{"APPINSIGHTS_INSTRUMENTATIONKEY":"[APPINSIGHTS-KEY]","APPLICATIONINSIGHTS_CONNECTION_STRING":"InstrumentationKey=[APPINSIGHTS-KEY];IngestionEndpoint=https://westus2-0.in.applicationinsights.azure.com/","AzureWebJobsStorage":"DefaultEndpointsProtocol=https;AccountName=[FUNCTION-STORAGE];AccountKey=[STORAGE-KEY]","Common_SqlResourceGroupName":"[CONFIG-VALUE]","ExportDatabases_SqlDatabaseNames":"[CONFIG-VALUE]-master-db","ExportDatabases_StorageName":"[CONFIG-VALUE]1","FUNCTIONS_EXTENSION_VERSION":"~3","FUNCTIONS_WORKER_RUNTIME":"powershell","WEBSITE_RUN_FROM_PACKAGE":"1","WEBSITE_TIME_ZONE":"E. Australia Standard Time","Common_SendGridApiKey":"@Microsoft.KeyVault(SecretUri=https://[KEY-VALUE1].vault.azure.net/secrets/DWSendGridApiKey/9ca9ee6299e743a09fe2dc4bb9f5822d)","Common_SqlServerLogin":"@Microsoft.KeyVault(SecretUri=https://[CONFIG-VALUE]-kv.vault.azure.net/secrets/SqlServerLogin/5f5149ba80df486585fde910eca86691)","Common_SqlServerPassword":"@Microsoft.KeyVault(SecretUri=https://[CONFIG-VALUE]-kv.vault.azure.net/secrets/SqlServerPassword/4e304ed422b946a1bdd2b6338705f5fb)"}}
Response:
StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Cache-Control: no-cache
Pragma: no-cache
ETag: "1D78D36AA04A320"
Strict-Transport-Security: max-age=31536000; includeSubDomains
x-ms-request-id: db0ef82b-b19f-4696-becc-17da2364915c
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id: 03ba1660-a54a-453e-97c6-4b6ba1be000a
x-ms-routing-request-id: WESTUS:20210809T155315Z:03ba1660-a54a-453e-97c6-4b6ba1be000a
X-Content-Type-Options: nosniff
Date: Mon, 09 Aug 2021 15:53:14 GMT
Content-Length: 1641
Content-Type: application/json
Expires: -1
}
{"id":"/subscriptions/[SUBSCRIPTION-ID]/resourceGroups/[RG-NAME]/providers/Microsoft.Web/sites/[APP-NAME]/config/appsettings","name":"appsettings","type":"Microsoft.Web/sites/config","location":"West US 2","tags":{"business unit":"Communications","component":"current","environment":"prod"},"properties":{"APPINSIGHTS_INSTRUMENTATIONKEY":"[APPINSIGHTS-KEY]","APPLICATIONINSIGHTS_CONNECTION_STRING":"InstrumentationKey=[APPINSIGHTS-KEY];IngestionEndpoint=https://westus2-0.in.applicationinsights.azure.com/","AzureWebJobsStorage":"DefaultEndpointsProtocol=https;AccountName=[FUNCTION-STORAGE];AccountKey=[STORAGE-KEY]","Common_SqlResourceGroupName":"[CONFIG-VALUE]","ExportDatabases_SqlDatabaseNames":"[CONFIG-VALUE]-master-db","ExportDatabases_StorageName":"[CONFIG-VALUE]1","FUNCTIONS_EXTENSION_VERSION":"~3","FUNCTIONS_WORKER_RUNTIME":"powershell","WEBSITE_RUN_FROM_PACKAGE":"1","WEBSITE_TIME_ZONE":"E. Australia Standard Time","Common_SendGridApiKey":"@Microsoft.KeyVault(SecretUri=https://[KEY-VALUE1].vault.azure.net/secrets/DWSendGridApiKey/9ca9ee6299e743a09fe2dc4bb9f5822d)","Common_SqlServerLogin":"@Microsoft.KeyVault(SecretUri=https://[CONFIG-VALUE]-kv.vault.azure.net/secrets/SqlServerLogin/5f5149ba80df486585fde910eca86691)","Common_SqlServerPassword":"@Microsoft.KeyVault(SecretUri=https://[CONFIG-VALUE]-kv.vault.azure.net/secrets/SqlServerPassword/4e304ed422b946a1bdd2b6338705f5fb)"}}
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
SCM update poll timed out. Retrying...
Azure.Functions.Cli.Common.CliException: Timed out waiting for SCM to update the Environment Settings
at Azure.Functions.Cli.Actions.AzureActions.PublishFunctionAppAction.WaitForAppSettingUpdateSCM(Site functionApp, IDictionary`2 shouldHaveSettings, IDictionary`2 shouldNotHaveSettings, Int32 timeOutSeconds) in D:\a\1\s\src\Azure.Functions.Cli\Actions\AzureActions\PublishFunctionAppAction.cs:line 670
at Azure.Functions.Cli.Actions.AzureActions.PublishFunctionAppAction.PublishRunFromPackageLocal(Site functionApp, Func`1 zipFileFactory) in D:\a\1\s\src\Azure.Functions.Cli\Actions\AzureActions\PublishFunctionAppAction.cs:line 594
at Azure.Functions.Cli.Actions.AzureActions.PublishFunctionAppAction.PublishFunctionApp(Site functionApp, GitIgnoreParser ignoreParser, IDictionary`2 additionalAppSettings) in D:\a\1\s\src\Azure.Functions.Cli\Actions\AzureActions\PublishFunctionAppAction.cs:line 409
at Azure.Functions.Cli.Actions.AzureActions.PublishFunctionAppAction.RunAsync() in D:\a\1\s\src\Azure.Functions.Cli\Actions\AzureActions\PublishFunctionAppAction.cs:line 170
at Azure.Functions.Cli.ConsoleApp.RunAsync[T](String[] args, IContainer container) in D:\a\1\s\src\Azure.Functions.Cli\ConsoleApp.cs:line 66
\```
</p>
</details>
Hi
any fix for this issue. Thanks
@alexangas did you ever work out why this was happening?
@AzySir No but it has stopped now. If you are experiencing an issue then perhaps there is an issue with the function app itself?
As I can no longer repro, closing.