Azure / azure-functions-on-container-apps

Docs , samples and issues for Azure Functions on Azure Container Apps
MIT License
66 stars 15 forks source link

Unable to update image after function app creation #59

Open AlexMasson opened 3 months ago

AlexMasson commented 3 months ago

Which trigger/binding are you using? All of them

Which language are you using? C#

Expected behavior The image is updated without error.

Actual behavior

An error occured when trying to update the image.
Operation returned an invalid status 'Conflict'
Content: {"Code":"Conflict","Message":"Cannot modify this site because another operation is in progress. Details: Id: c5bc1bae-dbbc-4e8c-8b09-ea529825d4dd, OperationName: ContainerAppUpdateAppSettings, CreatedTime: 6/5/2024 8:45:31 AM, RequestId: f6491352-3877-497f-a245-29811bf6060d, EntityType: 3","Target":null,"Details":[{"Message":"Cannot modify this site because another operation is in progress. Details: Id: c5bc1bae-dbbc-4e8c-8b09-ea529825d4dd, OperationName: ContainerAppUpdateAppSettings, CreatedTime: 6/5/2024 8:45:31 AM, RequestId: f6491352-3877-497f-a245-29811bf6060d, EntityType: 3"},{"Code":"Conflict"},{"ErrorEntity":{"ExtendedCode":"59203","MessageTemplate":"Cannot modify this site because another operation is in progress. Details: {0}","Parameters":["Id: c5bc1bae-dbbc-4e8c-8b09-ea529825d4dd, OperationName: ContainerAppUpdateAppSettings, CreatedTime: 6/5/2024 8:45:31 AM, RequestId: f6491352-3877-497f-a245-29811bf6060d, EntityType: 3"],"Code":"Conflict","Message":"Cannot modify this site because another operation is in progress. Details: Id: c5bc1bae-dbbc-4e8c-8b09-ea529825d4dd, OperationName: ContainerAppUpdateAppSettings, CreatedTime: 6/5/2024 8:45:31 AM, RequestId: f6491352-3877-497f-a245-29811bf6060d, EntityType: 3"}}],"Innererror":null}

To Reproduce function-aca.txt (change extension to .bicep).

  1. Deploy the given bicep file function-aca.bicep.
  2. Check that the ressources exists on Azure Portal.
  3. Try to update the image with any of this solution :
    • AzCli : az functionapp config container set --name "amntest-funcapp" --resource-group "amn-test" --image "mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated8.0" --output "none"
    • The AzureFunctionAppContainer@1 devops task
    • task: AzureFunctionAppContainer@1 inputs: azureSubscription: xxx appName: amntest-funcapp imageName: mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated8.0

Logs Here are the verbose logs from AzCli :

Request URL: 'https://management.azure.com//subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.Web/sites/amntest-funcapp?api-version=2023-12-01'
Request method: 'GET'
Request headers:
    'User-Agent': 'python/3.11.8 (Windows-10-10.0.22631-SP0) AZURECLI/2.61.0 (MSI)'
    'Accept-Encoding': 'gzip, deflate'
    'Accept': '*/*'
    'Connection': 'keep-alive'
    'x-ms-client-request-id': '46507f76-ff6d-4caf-a780-10ed02ecef5b'
    'CommandName': 'functionapp config container set'
    'ParameterSetName': '--name --resource-group --image --output --verbose'
    'Authorization': 'Bearer eyJ0eXAiOiJKV...'
Request body:
None
Response status: 200
Response headers:
    'Cache-Control': 'no-cache'
    'Pragma': 'no-cache'
    'Content-Length': '5786'
    'Content-Type': 'application/json'
    'Expires': '-1'
    'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
    'x-ms-request-id': 'c7ecb0f3-6004-43a8-a8a3-92cd61c1522a'
    'X-AspNet-Version': '4.0.30319'
    'X-Powered-By': 'ASP.NET'
    'x-ms-ratelimit-remaining-subscription-reads': '11997'
    'x-ms-correlation-request-id': '1243c142-ccd1-4ae5-b13d-335d2f8bf180'
    'x-ms-routing-request-id': 'SWITZERLANDWEST:20240605T085256Z:1243c142-ccd1-4ae5-b13d-335d2f8bf180'
    'X-Content-Type-Options': 'nosniff'
    'X-Cache': 'CONFIG_NOCACHE'
    'X-MSEdge-Ref': 'Ref A: ABFCF20706EE43E8951CAF84295069DA Ref B: VIEEDGE2911 Ref C: 2024-06-05T08:52:55Z'
    'Date': 'Wed, 05 Jun 2024 08:52:55 GMT'
Response content:
{"id":"/subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.Web/sites/amntest-funcapp","name":"amntest-funcapp","type":"Microsoft.Web/sites","kind":"functionapp,linux,container,azurecontainerapps","location":"West Europe","properties":{"name":"amntest-funcapp","state":"Running","hostNames":["amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io"],"webSpace":null,"selfLink":null,"repositorySiteName":null,"owner":null,"usageState":"Normal","enabled":null,"adminEnabled":null,"afdEnabled":null,"enabledHostNames":["amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io"],"siteProperties":null,"availabilityState":"Normal","sslCertificates":null,"csrs":null,"cers":null,"siteMode":null,"hostNameSslStates":null,"computeMode":null,"serverFarm":null,"serverFarmId":null,"reserved":null,"isXenon":null,"hyperV":null,"lastModifiedTimeUtc":"2024-06-05T08:52:44.8890218","storageRecoveryDefaultState":null,"contentAvailabilityState":"Normal","runtimeAvailabilityState":"Normal","vnetRouteAllEnabled":null,"containerAllocationSubnet":null,"useContainerLocalhostBindings":null,"vnetImagePullEnabled":null,"vnetContentShareEnabled":null,"siteConfig":{"numberOfWorkers":null,"defaultDocuments":null,"netFrameworkVersion":null,"phpVersion":null,"pythonVersion":null,"nodeVersion":null,"powerShellVersion":null,"linuxFxVersion":"DOCKER|mcr.microsoft.com/azure-functions/dotnet7-quickstart-demo:1.0","windowsFxVersion":null,"windowsConfiguredStacks":null,"requestTracingEnabled":null,"remoteDebuggingEnabled":null,"remoteDebuggingVersion":null,"httpLoggingEnabled":null,"azureMonitorLogCategories":null,"acrUseManagedIdentityCreds":null,"acrUserManagedIdentityID":null,"logsDirectorySizeLimit":null,"detailedErrorLoggingEnabled":null,"publishingUsername":null,"publishingPassword":null,"appSettings":null,"metadata":null,"connectionStrings":null,"machineKey":{"validation":null,"validationKey":null,"decryption":null,"decryptionKey":null},"handlerMappings":null,"documentRoot":null,"scmType":null,"use32BitWorkerProcess":null,"webSocketsEnabled":null,"alwaysOn":null,"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,"ipSecurityRestrictionsDefaultAction":null,"scmIpSecurityRestrictions":null,"scmIpSecurityRestrictionsDefaultAction":null,"scmIpSecurityRestrictionsUseMain":null,"http20Enabled":null,"minTlsVersion":null,"minTlsCipherSuite":null,"supportedTlsCipherSuites":null,"scmMinTlsVersion":null,"ftpsState":null,"preWarmedInstanceCount":null,"functionAppScaleLimit":30,"elasticWebAppScaleLimit":null,"healthCheckPath":null,"fileChangeAuditEnabled":null,"functionsRuntimeScaleMonitoringEnabled":null,"websiteTimeZone":null,"minimumElasticInstanceCount":0,"azureStorageAccounts":null,"http20ProxyFlag":null,"sitePort":null,"antivirusScanEnabled":null,"storageType":null,"sitePrivateLinkHostEnabled":null,"clusteringEnabled":null},"functionAppConfig":null,"daprConfig":null,"deploymentId":null,"slotName":null,"trafficManagerHostNames":null,"sku":null,"scmSiteAlsoStopped":null,"targetSwapSlot":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"clientAffinityEnabled":null,"clientCertEnabled":null,"clientCertMode":null,"clientCertExclusionPaths":null,"hostNamesDisabled":null,"ipMode":null,"vnetBackupRestoreEnabled":null,"domainVerificationIdentifiers":null,"customDomainVerificationId":null,"kind":"functionapp,linux,container,azurecontainerapps","managedEnvironmentId":"/subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.App/managedEnvironments/amntest-env","workloadProfileName":null,"resourceConfig":{"cpu":1.0,"memory":"2Gi"},"inboundIpAddress":null,"possibleInboundIpAddresses":null,"ftpUsername":null,"ftpsHostName":null,"outboundIpAddresses":"98.64.120.197","possibleOutboundIpAddresses":null,"containerSize":null,"dailyMemoryTimeQuota":null,"suspendedTill":null,"siteDisabledReason":null,"functionExecutionUnitsCache":null,"maxNumberOfWorkers":null,"cloningInfo":null,"hostingEnvironmentId":null,"tags":null,"resourceGroup":"amn-test","defaultHostName":"amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io","slotSwapStatus":null,"httpsOnly":null,"endToEndEncryptionEnabled":null,"functionsRuntimeAdminIsolationEnabled":null,"redundancyMode":null,"inProgressOperationId":null,"geoDistributions":null,"privateEndpointConnections":null,"publicNetworkAccess":null,"buildVersion":null,"targetBuildVersion":null,"migrationState":null,"eligibleLogCategories":null,"inFlightFeatures":null,"storageAccountRequired":false,"virtualNetworkSubnetId":null,"autoGeneratedDomainNameLabelScope":null,"defaultHostNameScope":null,"privateLinkIdentifiers":null,"sshEnabled":null},"identity":{"type":"UserAssigned","userAssignedIdentities":{"/subscriptions/xxx/resourcegroups/amn-test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/amntest-identity":{"principalId":"8d354f52-ae43-48f5-bc47-efc12c257045","clientId":"e7413df5-4fc3-4630-92b3-aa19b50018b4"}}}}
Request URL: 'https://management.azure.com//subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.Web/sites/amntest-funcapp?api-version=2023-12-01'
Request method: 'GET'
Request headers:
    'User-Agent': 'python/3.11.8 (Windows-10-10.0.22631-SP0) AZURECLI/2.61.0 (MSI)'
    'Accept-Encoding': 'gzip, deflate'
    'Accept': '*/*'
    'Connection': 'keep-alive'
    'x-ms-client-request-id': '8767d486-8fab-4e6a-8dd0-e8c8db24efae'
    'CommandName': 'functionapp config container set'
    'ParameterSetName': '--name --resource-group --image --output --verbose'
    'Authorization': 'Bearer eyJ0eXAiOiJKV...'
Request body:
None
Response status: 200
Response headers:
    'Cache-Control': 'no-cache'
    'Pragma': 'no-cache'
    'Content-Length': '5786'
    'Content-Type': 'application/json'
    'Expires': '-1'
    'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
    'x-ms-request-id': 'c3012fff-162a-4a79-bf89-f259c2b41257'
    'X-AspNet-Version': '4.0.30319'
    'X-Powered-By': 'ASP.NET'
    'x-ms-ratelimit-remaining-subscription-reads': '11996'
    'x-ms-correlation-request-id': 'aa46781e-0463-4b37-baaf-561e8b7afe83'
    'x-ms-routing-request-id': 'SWITZERLANDWEST:20240605T085301Z:aa46781e-0463-4b37-baaf-561e8b7afe83'
    'X-Content-Type-Options': 'nosniff'
    'X-Cache': 'CONFIG_NOCACHE'
    'X-MSEdge-Ref': 'Ref A: CA3DED81A6A842C394FD8F715F57FB8B Ref B: VIEEDGE2622 Ref C: 2024-06-05T08:52:58Z'
    'Date': 'Wed, 05 Jun 2024 08:53:01 GMT'
Response content:
{"id":"/subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.Web/sites/amntest-funcapp","name":"amntest-funcapp","type":"Microsoft.Web/sites","kind":"functionapp,linux,container,azurecontainerapps","location":"West Europe","properties":{"name":"amntest-funcapp","state":"Running","hostNames":["amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io"],"webSpace":null,"selfLink":null,"repositorySiteName":null,"owner":null,"usageState":"Normal","enabled":null,"adminEnabled":null,"afdEnabled":null,"enabledHostNames":["amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io"],"siteProperties":null,"availabilityState":"Normal","sslCertificates":null,"csrs":null,"cers":null,"siteMode":null,"hostNameSslStates":null,"computeMode":null,"serverFarm":null,"serverFarmId":null,"reserved":null,"isXenon":null,"hyperV":null,"lastModifiedTimeUtc":"2024-06-05T08:52:44.8890218","storageRecoveryDefaultState":null,"contentAvailabilityState":"Normal","runtimeAvailabilityState":"Normal","vnetRouteAllEnabled":null,"containerAllocationSubnet":null,"useContainerLocalhostBindings":null,"vnetImagePullEnabled":null,"vnetContentShareEnabled":null,"siteConfig":{"numberOfWorkers":null,"defaultDocuments":null,"netFrameworkVersion":null,"phpVersion":null,"pythonVersion":null,"nodeVersion":null,"powerShellVersion":null,"linuxFxVersion":"DOCKER|mcr.microsoft.com/azure-functions/dotnet7-quickstart-demo:1.0","windowsFxVersion":null,"windowsConfiguredStacks":null,"requestTracingEnabled":null,"remoteDebuggingEnabled":null,"remoteDebuggingVersion":null,"httpLoggingEnabled":null,"azureMonitorLogCategories":null,"acrUseManagedIdentityCreds":null,"acrUserManagedIdentityID":null,"logsDirectorySizeLimit":null,"detailedErrorLoggingEnabled":null,"publishingUsername":null,"publishingPassword":null,"appSettings":null,"metadata":null,"connectionStrings":null,"machineKey":{"validation":null,"validationKey":null,"decryption":null,"decryptionKey":null},"handlerMappings":null,"documentRoot":null,"scmType":null,"use32BitWorkerProcess":null,"webSocketsEnabled":null,"alwaysOn":null,"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,"ipSecurityRestrictionsDefaultAction":null,"scmIpSecurityRestrictions":null,"scmIpSecurityRestrictionsDefaultAction":null,"scmIpSecurityRestrictionsUseMain":null,"http20Enabled":null,"minTlsVersion":null,"minTlsCipherSuite":null,"supportedTlsCipherSuites":null,"scmMinTlsVersion":null,"ftpsState":null,"preWarmedInstanceCount":null,"functionAppScaleLimit":30,"elasticWebAppScaleLimit":null,"healthCheckPath":null,"fileChangeAuditEnabled":null,"functionsRuntimeScaleMonitoringEnabled":null,"websiteTimeZone":null,"minimumElasticInstanceCount":0,"azureStorageAccounts":null,"http20ProxyFlag":null,"sitePort":null,"antivirusScanEnabled":null,"storageType":null,"sitePrivateLinkHostEnabled":null,"clusteringEnabled":null},"functionAppConfig":null,"daprConfig":null,"deploymentId":null,"slotName":null,"trafficManagerHostNames":null,"sku":null,"scmSiteAlsoStopped":null,"targetSwapSlot":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"clientAffinityEnabled":null,"clientCertEnabled":null,"clientCertMode":null,"clientCertExclusionPaths":null,"hostNamesDisabled":null,"ipMode":null,"vnetBackupRestoreEnabled":null,"domainVerificationIdentifiers":null,"customDomainVerificationId":null,"kind":"functionapp,linux,container,azurecontainerapps","managedEnvironmentId":"/subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.App/managedEnvironments/amntest-env","workloadProfileName":null,"resourceConfig":{"cpu":1.0,"memory":"2Gi"},"inboundIpAddress":null,"possibleInboundIpAddresses":null,"ftpUsername":null,"ftpsHostName":null,"outboundIpAddresses":"98.64.120.197","possibleOutboundIpAddresses":null,"containerSize":null,"dailyMemoryTimeQuota":null,"suspendedTill":null,"siteDisabledReason":null,"functionExecutionUnitsCache":null,"maxNumberOfWorkers":null,"cloningInfo":null,"hostingEnvironmentId":null,"tags":null,"resourceGroup":"amn-test","defaultHostName":"amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io","slotSwapStatus":null,"httpsOnly":null,"endToEndEncryptionEnabled":null,"functionsRuntimeAdminIsolationEnabled":null,"redundancyMode":null,"inProgressOperationId":null,"geoDistributions":null,"privateEndpointConnections":null,"publicNetworkAccess":null,"buildVersion":null,"targetBuildVersion":null,"migrationState":null,"eligibleLogCategories":null,"inFlightFeatures":null,"storageAccountRequired":false,"virtualNetworkSubnetId":null,"autoGeneratedDomainNameLabelScope":null,"defaultHostNameScope":null,"privateLinkIdentifiers":null,"sshEnabled":null},"identity":{"type":"UserAssigned","userAssignedIdentities":{"/subscriptions/xxx/resourcegroups/amn-test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/amntest-identity":{"principalId":"8d354f52-ae43-48f5-bc47-efc12c257045","clientId":"e7413df5-4fc3-4630-92b3-aa19b50018b4"}}}}
Request URL: 'https://management.azure.com//subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.Web/sites/amntest-funcapp?api-version=2023-12-01'
Request method: 'GET'
Request headers:
    'User-Agent': 'python/3.11.8 (Windows-10-10.0.22631-SP0) AZURECLI/2.61.0 (MSI)'
    'Accept-Encoding': 'gzip, deflate'
    'Accept': '*/*'
    'Connection': 'keep-alive'
    'x-ms-client-request-id': '23bfd8c8-2114-4bc5-a542-1a2e45abfd0a'
    'CommandName': 'functionapp config container set'
    'ParameterSetName': '--name --resource-group --image --output --verbose'
    'Authorization': 'Bearer eyJ0eXAiOiJKV...'
Request body:
None
Response status: 200
Response headers:
    'Cache-Control': 'no-cache'
    'Pragma': 'no-cache'
    'Content-Length': '5786'
    'Content-Type': 'application/json'
    'Expires': '-1'
    'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
    'x-ms-request-id': 'fcce517d-6c46-4371-ace5-52b17d0f82b4'
    'X-AspNet-Version': '4.0.30319'
    'X-Powered-By': 'ASP.NET'
    'x-ms-ratelimit-remaining-subscription-reads': '11999'
    'x-ms-correlation-request-id': 'a71ffc68-25de-42dc-802f-76f4a4cc412c'
    'x-ms-routing-request-id': 'FRANCECENTRAL:20240605T085302Z:a71ffc68-25de-42dc-802f-76f4a4cc412c'
    'X-Content-Type-Options': 'nosniff'
    'X-Cache': 'CONFIG_NOCACHE'
    'X-MSEdge-Ref': 'Ref A: FC492F959FCA46019592DF3AE34FDCEA Ref B: VIEEDGE1414 Ref C: 2024-06-05T08:53:01Z'
    'Date': 'Wed, 05 Jun 2024 08:53:02 GMT'
Response content:
{"id":"/subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.Web/sites/amntest-funcapp","name":"amntest-funcapp","type":"Microsoft.Web/sites","kind":"functionapp,linux,container,azurecontainerapps","location":"West Europe","properties":{"name":"amntest-funcapp","state":"Running","hostNames":["amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io"],"webSpace":null,"selfLink":null,"repositorySiteName":null,"owner":null,"usageState":"Normal","enabled":null,"adminEnabled":null,"afdEnabled":null,"enabledHostNames":["amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io"],"siteProperties":null,"availabilityState":"Normal","sslCertificates":null,"csrs":null,"cers":null,"siteMode":null,"hostNameSslStates":null,"computeMode":null,"serverFarm":null,"serverFarmId":null,"reserved":null,"isXenon":null,"hyperV":null,"lastModifiedTimeUtc":"2024-06-05T08:52:44.8890218","storageRecoveryDefaultState":null,"contentAvailabilityState":"Normal","runtimeAvailabilityState":"Normal","vnetRouteAllEnabled":null,"containerAllocationSubnet":null,"useContainerLocalhostBindings":null,"vnetImagePullEnabled":null,"vnetContentShareEnabled":null,"siteConfig":{"numberOfWorkers":null,"defaultDocuments":null,"netFrameworkVersion":null,"phpVersion":null,"pythonVersion":null,"nodeVersion":null,"powerShellVersion":null,"linuxFxVersion":"DOCKER|mcr.microsoft.com/azure-functions/dotnet7-quickstart-demo:1.0","windowsFxVersion":null,"windowsConfiguredStacks":null,"requestTracingEnabled":null,"remoteDebuggingEnabled":null,"remoteDebuggingVersion":null,"httpLoggingEnabled":null,"azureMonitorLogCategories":null,"acrUseManagedIdentityCreds":null,"acrUserManagedIdentityID":null,"logsDirectorySizeLimit":null,"detailedErrorLoggingEnabled":null,"publishingUsername":null,"publishingPassword":null,"appSettings":null,"metadata":null,"connectionStrings":null,"machineKey":{"validation":null,"validationKey":null,"decryption":null,"decryptionKey":null},"handlerMappings":null,"documentRoot":null,"scmType":null,"use32BitWorkerProcess":null,"webSocketsEnabled":null,"alwaysOn":null,"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,"ipSecurityRestrictionsDefaultAction":null,"scmIpSecurityRestrictions":null,"scmIpSecurityRestrictionsDefaultAction":null,"scmIpSecurityRestrictionsUseMain":null,"http20Enabled":null,"minTlsVersion":null,"minTlsCipherSuite":null,"supportedTlsCipherSuites":null,"scmMinTlsVersion":null,"ftpsState":null,"preWarmedInstanceCount":null,"functionAppScaleLimit":30,"elasticWebAppScaleLimit":null,"healthCheckPath":null,"fileChangeAuditEnabled":null,"functionsRuntimeScaleMonitoringEnabled":null,"websiteTimeZone":null,"minimumElasticInstanceCount":0,"azureStorageAccounts":null,"http20ProxyFlag":null,"sitePort":null,"antivirusScanEnabled":null,"storageType":null,"sitePrivateLinkHostEnabled":null,"clusteringEnabled":null},"functionAppConfig":null,"daprConfig":null,"deploymentId":null,"slotName":null,"trafficManagerHostNames":null,"sku":null,"scmSiteAlsoStopped":null,"targetSwapSlot":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"clientAffinityEnabled":null,"clientCertEnabled":null,"clientCertMode":null,"clientCertExclusionPaths":null,"hostNamesDisabled":null,"ipMode":null,"vnetBackupRestoreEnabled":null,"domainVerificationIdentifiers":null,"customDomainVerificationId":null,"kind":"functionapp,linux,container,azurecontainerapps","managedEnvironmentId":"/subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.App/managedEnvironments/amntest-env","workloadProfileName":null,"resourceConfig":{"cpu":1.0,"memory":"2Gi"},"inboundIpAddress":null,"possibleInboundIpAddresses":null,"ftpUsername":null,"ftpsHostName":null,"outboundIpAddresses":"98.64.120.197","possibleOutboundIpAddresses":null,"containerSize":null,"dailyMemoryTimeQuota":null,"suspendedTill":null,"siteDisabledReason":null,"functionExecutionUnitsCache":null,"maxNumberOfWorkers":null,"cloningInfo":null,"hostingEnvironmentId":null,"tags":null,"resourceGroup":"amn-test","defaultHostName":"amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io","slotSwapStatus":null,"httpsOnly":null,"endToEndEncryptionEnabled":null,"functionsRuntimeAdminIsolationEnabled":null,"redundancyMode":null,"inProgressOperationId":null,"geoDistributions":null,"privateEndpointConnections":null,"publicNetworkAccess":null,"buildVersion":null,"targetBuildVersion":null,"migrationState":null,"eligibleLogCategories":null,"inFlightFeatures":null,"storageAccountRequired":false,"virtualNetworkSubnetId":null,"autoGeneratedDomainNameLabelScope":null,"defaultHostNameScope":null,"privateLinkIdentifiers":null,"sshEnabled":null},"identity":{"type":"UserAssigned","userAssignedIdentities":{"/subscriptions/xxx/resourcegroups/amn-test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/amntest-identity":{"principalId":"8d354f52-ae43-48f5-bc47-efc12c257045","clientId":"e7413df5-4fc3-4630-92b3-aa19b50018b4"}}}}
Request URL: 'https://management.azure.com//subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.Web/sites/amntest-funcapp?api-version=2023-12-01'
Request method: 'GET'
Request headers:
    'User-Agent': 'python/3.11.8 (Windows-10-10.0.22631-SP0) AZURECLI/2.61.0 (MSI)'
    'Accept-Encoding': 'gzip, deflate'
    'Accept': '*/*'
    'Connection': 'keep-alive'
    'x-ms-client-request-id': 'ed46a1d1-1bc8-48b3-9c1b-9c5cd87d7a08'
    'CommandName': 'functionapp config container set'
    'ParameterSetName': '--name --resource-group --image --output --verbose'
    'Authorization': 'Bearer eyJ0eXAiOiJKV...'
Request body:
None
Response status: 200
Response headers:
    'Cache-Control': 'no-cache'
    'Pragma': 'no-cache'
    'Content-Length': '5786'
    'Content-Type': 'application/json'
    'Expires': '-1'
    'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
    'x-ms-request-id': '025eabc2-4826-44ec-972e-28141eca2f56'
    'X-AspNet-Version': '4.0.30319'
    'X-Powered-By': 'ASP.NET'
    'x-ms-ratelimit-remaining-subscription-reads': '11995'
    'x-ms-correlation-request-id': '60fb1fbd-f1a6-491e-9532-2cb687ef3b08'
    'x-ms-routing-request-id': 'FRANCESOUTH:20240605T085305Z:60fb1fbd-f1a6-491e-9532-2cb687ef3b08'
    'X-Content-Type-Options': 'nosniff'
    'X-Cache': 'CONFIG_NOCACHE'
    'X-MSEdge-Ref': 'Ref A: A47694B48F6F4772A7E2F3DA6AD40677 Ref B: VIEEDGE2815 Ref C: 2024-06-05T08:53:04Z'
    'Date': 'Wed, 05 Jun 2024 08:53:04 GMT'
Response content:
{"id":"/subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.Web/sites/amntest-funcapp","name":"amntest-funcapp","type":"Microsoft.Web/sites","kind":"functionapp,linux,container,azurecontainerapps","location":"West Europe","properties":{"name":"amntest-funcapp","state":"Running","hostNames":["amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io"],"webSpace":null,"selfLink":null,"repositorySiteName":null,"owner":null,"usageState":"Normal","enabled":null,"adminEnabled":null,"afdEnabled":null,"enabledHostNames":["amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io"],"siteProperties":null,"availabilityState":"Normal","sslCertificates":null,"csrs":null,"cers":null,"siteMode":null,"hostNameSslStates":null,"computeMode":null,"serverFarm":null,"serverFarmId":null,"reserved":null,"isXenon":null,"hyperV":null,"lastModifiedTimeUtc":"2024-06-05T08:52:44.8890218","storageRecoveryDefaultState":null,"contentAvailabilityState":"Normal","runtimeAvailabilityState":"Normal","vnetRouteAllEnabled":null,"containerAllocationSubnet":null,"useContainerLocalhostBindings":null,"vnetImagePullEnabled":null,"vnetContentShareEnabled":null,"siteConfig":{"numberOfWorkers":null,"defaultDocuments":null,"netFrameworkVersion":null,"phpVersion":null,"pythonVersion":null,"nodeVersion":null,"powerShellVersion":null,"linuxFxVersion":"DOCKER|mcr.microsoft.com/azure-functions/dotnet7-quickstart-demo:1.0","windowsFxVersion":null,"windowsConfiguredStacks":null,"requestTracingEnabled":null,"remoteDebuggingEnabled":null,"remoteDebuggingVersion":null,"httpLoggingEnabled":null,"azureMonitorLogCategories":null,"acrUseManagedIdentityCreds":null,"acrUserManagedIdentityID":null,"logsDirectorySizeLimit":null,"detailedErrorLoggingEnabled":null,"publishingUsername":null,"publishingPassword":null,"appSettings":null,"metadata":null,"connectionStrings":null,"machineKey":{"validation":null,"validationKey":null,"decryption":null,"decryptionKey":null},"handlerMappings":null,"documentRoot":null,"scmType":null,"use32BitWorkerProcess":null,"webSocketsEnabled":null,"alwaysOn":null,"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,"ipSecurityRestrictionsDefaultAction":null,"scmIpSecurityRestrictions":null,"scmIpSecurityRestrictionsDefaultAction":null,"scmIpSecurityRestrictionsUseMain":null,"http20Enabled":null,"minTlsVersion":null,"minTlsCipherSuite":null,"supportedTlsCipherSuites":null,"scmMinTlsVersion":null,"ftpsState":null,"preWarmedInstanceCount":null,"functionAppScaleLimit":30,"elasticWebAppScaleLimit":null,"healthCheckPath":null,"fileChangeAuditEnabled":null,"functionsRuntimeScaleMonitoringEnabled":null,"websiteTimeZone":null,"minimumElasticInstanceCount":0,"azureStorageAccounts":null,"http20ProxyFlag":null,"sitePort":null,"antivirusScanEnabled":null,"storageType":null,"sitePrivateLinkHostEnabled":null,"clusteringEnabled":null},"functionAppConfig":null,"daprConfig":null,"deploymentId":null,"slotName":null,"trafficManagerHostNames":null,"sku":null,"scmSiteAlsoStopped":null,"targetSwapSlot":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"clientAffinityEnabled":null,"clientCertEnabled":null,"clientCertMode":null,"clientCertExclusionPaths":null,"hostNamesDisabled":null,"ipMode":null,"vnetBackupRestoreEnabled":null,"domainVerificationIdentifiers":null,"customDomainVerificationId":null,"kind":"functionapp,linux,container,azurecontainerapps","managedEnvironmentId":"/subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.App/managedEnvironments/amntest-env","workloadProfileName":null,"resourceConfig":{"cpu":1.0,"memory":"2Gi"},"inboundIpAddress":null,"possibleInboundIpAddresses":null,"ftpUsername":null,"ftpsHostName":null,"outboundIpAddresses":"98.64.120.197","possibleOutboundIpAddresses":null,"containerSize":null,"dailyMemoryTimeQuota":null,"suspendedTill":null,"siteDisabledReason":null,"functionExecutionUnitsCache":null,"maxNumberOfWorkers":null,"cloningInfo":null,"hostingEnvironmentId":null,"tags":null,"resourceGroup":"amn-test","defaultHostName":"amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io","slotSwapStatus":null,"httpsOnly":null,"endToEndEncryptionEnabled":null,"functionsRuntimeAdminIsolationEnabled":null,"redundancyMode":null,"inProgressOperationId":null,"geoDistributions":null,"privateEndpointConnections":null,"publicNetworkAccess":null,"buildVersion":null,"targetBuildVersion":null,"migrationState":null,"eligibleLogCategories":null,"inFlightFeatures":null,"storageAccountRequired":false,"virtualNetworkSubnetId":null,"autoGeneratedDomainNameLabelScope":null,"defaultHostNameScope":null,"privateLinkIdentifiers":null,"sshEnabled":null},"identity":{"type":"UserAssigned","userAssignedIdentities":{"/subscriptions/xxx/resourcegroups/amn-test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/amntest-identity":{"principalId":"8d354f52-ae43-48f5-bc47-efc12c257045","clientId":"e7413df5-4fc3-4630-92b3-aa19b50018b4"}}}}
Request URL: 'https://management.azure.com//subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.Web/sites/amntest-funcapp?api-version=2023-12-01'
Request method: 'GET'
Request headers:
    'User-Agent': 'python/3.11.8 (Windows-10-10.0.22631-SP0) AZURECLI/2.61.0 (MSI)'
    'Accept-Encoding': 'gzip, deflate'
    'Accept': '*/*'
    'Connection': 'keep-alive'
    'x-ms-client-request-id': 'a6369abe-8e89-4a2e-8a5b-17145e511182'
    'CommandName': 'functionapp config container set'
    'ParameterSetName': '--name --resource-group --image --output --verbose'
    'Authorization': 'Bearer eyJ0eXAiOiJKV...'
Request body:
None
Response status: 200
Response headers:
    'Cache-Control': 'no-cache'
    'Pragma': 'no-cache'
    'Content-Length': '5786'
    'Content-Type': 'application/json'
    'Expires': '-1'
    'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
    'x-ms-request-id': 'b34af901-6b5d-4210-8555-85cffe2be835'
    'X-AspNet-Version': '4.0.30319'
    'X-Powered-By': 'ASP.NET'
    'x-ms-ratelimit-remaining-subscription-reads': '11998'
    'x-ms-correlation-request-id': 'd1330ed7-0681-4f60-8bdb-555f7d300bb6'
    'x-ms-routing-request-id': 'FRANCESOUTH:20240605T085309Z:d1330ed7-0681-4f60-8bdb-555f7d300bb6'
    'X-Content-Type-Options': 'nosniff'
    'X-Cache': 'CONFIG_NOCACHE'
    'X-MSEdge-Ref': 'Ref A: 256825BBE64B4316B0CF97FC02E88B76 Ref B: VIEEDGE3019 Ref C: 2024-06-05T08:53:08Z'
    'Date': 'Wed, 05 Jun 2024 08:53:09 GMT'
Response content:
{"id":"/subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.Web/sites/amntest-funcapp","name":"amntest-funcapp","type":"Microsoft.Web/sites","kind":"functionapp,linux,container,azurecontainerapps","location":"West Europe","properties":{"name":"amntest-funcapp","state":"Running","hostNames":["amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io"],"webSpace":null,"selfLink":null,"repositorySiteName":null,"owner":null,"usageState":"Normal","enabled":null,"adminEnabled":null,"afdEnabled":null,"enabledHostNames":["amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io"],"siteProperties":null,"availabilityState":"Normal","sslCertificates":null,"csrs":null,"cers":null,"siteMode":null,"hostNameSslStates":null,"computeMode":null,"serverFarm":null,"serverFarmId":null,"reserved":null,"isXenon":null,"hyperV":null,"lastModifiedTimeUtc":"2024-06-05T08:52:44.8890218","storageRecoveryDefaultState":null,"contentAvailabilityState":"Normal","runtimeAvailabilityState":"Normal","vnetRouteAllEnabled":null,"containerAllocationSubnet":null,"useContainerLocalhostBindings":null,"vnetImagePullEnabled":null,"vnetContentShareEnabled":null,"siteConfig":{"numberOfWorkers":null,"defaultDocuments":null,"netFrameworkVersion":null,"phpVersion":null,"pythonVersion":null,"nodeVersion":null,"powerShellVersion":null,"linuxFxVersion":"DOCKER|mcr.microsoft.com/azure-functions/dotnet7-quickstart-demo:1.0","windowsFxVersion":null,"windowsConfiguredStacks":null,"requestTracingEnabled":null,"remoteDebuggingEnabled":null,"remoteDebuggingVersion":null,"httpLoggingEnabled":null,"azureMonitorLogCategories":null,"acrUseManagedIdentityCreds":null,"acrUserManagedIdentityID":null,"logsDirectorySizeLimit":null,"detailedErrorLoggingEnabled":null,"publishingUsername":null,"publishingPassword":null,"appSettings":null,"metadata":null,"connectionStrings":null,"machineKey":{"validation":null,"validationKey":null,"decryption":null,"decryptionKey":null},"handlerMappings":null,"documentRoot":null,"scmType":null,"use32BitWorkerProcess":null,"webSocketsEnabled":null,"alwaysOn":null,"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,"ipSecurityRestrictionsDefaultAction":null,"scmIpSecurityRestrictions":null,"scmIpSecurityRestrictionsDefaultAction":null,"scmIpSecurityRestrictionsUseMain":null,"http20Enabled":null,"minTlsVersion":null,"minTlsCipherSuite":null,"supportedTlsCipherSuites":null,"scmMinTlsVersion":null,"ftpsState":null,"preWarmedInstanceCount":null,"functionAppScaleLimit":30,"elasticWebAppScaleLimit":null,"healthCheckPath":null,"fileChangeAuditEnabled":null,"functionsRuntimeScaleMonitoringEnabled":null,"websiteTimeZone":null,"minimumElasticInstanceCount":0,"azureStorageAccounts":null,"http20ProxyFlag":null,"sitePort":null,"antivirusScanEnabled":null,"storageType":null,"sitePrivateLinkHostEnabled":null,"clusteringEnabled":null},"functionAppConfig":null,"daprConfig":null,"deploymentId":null,"slotName":null,"trafficManagerHostNames":null,"sku":null,"scmSiteAlsoStopped":null,"targetSwapSlot":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"clientAffinityEnabled":null,"clientCertEnabled":null,"clientCertMode":null,"clientCertExclusionPaths":null,"hostNamesDisabled":null,"ipMode":null,"vnetBackupRestoreEnabled":null,"domainVerificationIdentifiers":null,"customDomainVerificationId":null,"kind":"functionapp,linux,container,azurecontainerapps","managedEnvironmentId":"/subscriptions/xxx/resourceGroups/amn-test/providers/Microsoft.App/managedEnvironments/amntest-env","workloadProfileName":null,"resourceConfig":{"cpu":1.0,"memory":"2Gi"},"inboundIpAddress":null,"possibleInboundIpAddresses":null,"ftpUsername":null,"ftpsHostName":null,"outboundIpAddresses":"98.64.120.197","possibleOutboundIpAddresses":null,"containerSize":null,"dailyMemoryTimeQuota":null,"suspendedTill":null,"siteDisabledReason":null,"functionExecutionUnitsCache":null,"maxNumberOfWorkers":null,"cloningInfo":null,"hostingEnvironmentId":null,"tags":null,"resourceGroup":"amn-test","defaultHostName":"amntest-funcapp.redrock-117c6012.westeurope.azurecontainerapps.io","slotSwapStatus":null,"httpsOnly":null,"endToEndEncryptionEnabled":null,"functionsRuntimeAdminIsolationEnabled":null,"redundancyMode":null,"inProgressOperationId":null,"geoDistributions":null,"privateEndpointConnections":null,"publicNetworkAccess":null,"buildVersion":null,"targetBuildVersion":null,"migrationState":null,"eligibleLogCategories":null,"inFlightFeatures":null,"storageAccountRequired":false,"virtualNetworkSubnetId":null,"autoGeneratedDomainNameLabelScope":null,"defaultHostNameScope":null,"privateLinkIdentifiers":null,"sshEnabled":null},"identity":{"type":"UserAssigned","userAssignedIdentities":{"/subscriptions/xxx/resourcegroups/amn-test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/amntest-identity":{"principalId":"8d354f52-ae43-48f5-bc47-efc12c257045","clientId":"e7413df5-4fc3-4630-92b3-aa19b50018b4"}}}}
Operation returned an invalid status 'Conflict'
Content: {"Code":"Conflict","Message":"Cannot modify this site because another operation is in progress. Details: Id: 9c2603d2-e138-4d13-8e7b-65a5b5f6b0c0, OperationName: ContainerAppUpdateAppSettings, CreatedTime: 6/5/2024 8:52:43 AM, RequestId: aba5a3f5-96e3-43dd-afef-ae3ca419fa58, EntityType: 3","Target":null,"Details":[{"Message":"Cannot modify this site because another operation is in progress. Details: Id: 9c2603d2-e138-4d13-8e7b-65a5b5f6b0c0, OperationName: ContainerAppUpdateAppSettings, CreatedTime: 6/5/2024 8:52:43 AM, RequestId: aba5a3f5-96e3-43dd-afef-ae3ca419fa58, EntityType: 3"},{"Code":"Conflict"},{"ErrorEntity":{"ExtendedCode":"59203","MessageTemplate":"Cannot modify this site because another operation is in progress. Details: {0}","Parameters":["Id: 9c2603d2-e138-4d13-8e7b-65a5b5f6b0c0, OperationName: ContainerAppUpdateAppSettings, CreatedTime: 6/5/2024 8:52:43 AM, RequestId: aba5a3f5-96e3-43dd-afef-ae3ca419fa58, EntityType: 3"],"Code":"Conflict","Message":"Cannot modify this site because another operation is in progress. Details: Id: 9c2603d2-e138-4d13-8e7b-65a5b5f6b0c0, OperationName: ContainerAppUpdateAppSettings, CreatedTime: 6/5/2024 8:52:43 AM, RequestId: aba5a3f5-96e3-43dd-afef-ae3ca419fa58, EntityType: 3"}}],"Innererror":null}
Command ran in 23.583 seconds (init: 0.309, invoke: 23.274)

Additional context I also try with the AzCli command az resource patch --name "core-bi-func-dev-migration" --resource-group "imago-core-bi-dev-rg" --properties '{ \"siteConfig\": { \"linuxFxVersion\": \"DOCKER|imago.azurecr.io/core-bi-function-core-bi:1.36.0-beta.2\" } }' but then I get this error :

'imago.azurecr.io' is not recognized as an internal or external command,
operable program or batch file.
vivekjilla commented 3 months ago

Hi @AlexMasson , The issue seems similar to the other one where we're currently working on a fix.

Meanwhile the az resource update command you mentioned in additional context should work, can you try that command once similar to how we suggested here https://github.com/Azure/azure-functions-on-container-apps/issues/53#issuecomment-2133530698 and let me know if that works. Thanks!

AlexMasson commented 3 months ago

Hi @vivekjilla and thank you for your answer. Unfortunattely this is not working. I get a Operation returned an invalid status 'Bad Request' when I execute the given command. When I go to the Activity Log in Azure Portal, I can see this error : DefaultHostName is invalid. DefaultHostName is not supported for Azure Functions on Azure Container apps. Please retry the operation without DefaultHostName..

Also, I can only execute this command in bash, this is not working in powershell :

'<acr name>.azurecr.io' is not recognized as an internal or external command,
operable program or batch file.

The command : az resource update --name "xxx" --resource-group "xxx" --resource-type 'Microsoft.Web/sites/config' --set properties.linuxFxVersion="DOCKER|<acr name>.azurecr.io/xxx:1.36.0-beta.2"

matheper commented 3 months ago

I had a different issue when running the az resource update. In my case, because I have access to multiple subscriptions, it was selecting the wrong one by default, which resulted in an AuthorizationFailed error. Providing the additional parameter --subscription name solved the problem.

az resource update \
   -g <resource group name> \
   -n <function app name>/config/web \
   --subscription <subscription> \
   --resource-type 'Microsoft.Web/sites/config' \
   --set properties.linuxFxVersion="DOCKER|<acr name>.azurecr.io/azure-functions/dotnet8-quickstart-demo:1.0"
vivekjilla commented 3 months ago

Hi @AlexMasson, apologies for late response here. I see one difference in your command for --name parameter.

We should append /config/web after the function app name, like --name <functionappname>/config/web, when using az resource update command for this usecase. Can you please try that option and let us know if that helps.

AlexMasson commented 3 months ago

Hi @vivekjilla and thank you for your answer.

It worked, but unfortunately only once, when I executed this command independently from my computer. From our azure devops pipelines, I now come across the same error as the issue I created : Cannot modify this site because another operation is in progress. Details: Id: f60469b7-9d75-4cb4-b402-60455acef476, OperationName: ContainerAppUpdateAppSettings, CreatedTime: 6/19/2024 7:10:24 AM, RequestId: 029ce9d0-bb09-43cf-ba73-b66817fd991b, EntityType: 3

We have 2 steps in our pipelines :

To update the app settings, we use the following command, which works: az webapp config appsettings set --resource-group "xxx" --name "xxx" --settings "@xxx.txt" --output "none"

Is there a workaround also to update our appsettings as well as the image?

vivekjilla commented 2 months ago

Hi @AlexMasson, can we try introducing a delay of 2 mins between two steps to unblock for now.

AlexMasson commented 2 months ago

Hi @vivekjilla and sorry for the delay. This is working thank you, it will do the job for now.