Skip to content

Unstable Behavior of az functionapp config container set Command for Container App Hosted Azure Functions #29778

@shibayan

Description

@shibayan

Describe the bug

When trying to enable ACR Pull using a User Assigned Managed Identity for Azure Functions hosted on Container Apps and updating the Docker Image with az functionapp config container set, random errors occur. Even when the update is successful, it takes a very long time. This issue does not seem to occur when using the ACR admin user.

Related command

az functionapp config container set

Errors

az functionapp config container set -g rg-neo4j-test -n func-deploy-test-001 -i crfuncdeploy001.azurecr.io/aca-func:v4
App settings have been redacted. Use `az webapp/logicapp/functionapp config appsettings list` to view.
Operation returned an invalid status 'Too Many Requests'
Content: {"Code":"Conflict","Message":"Cannot modify this site because another operation is in progress. Details: Id: 79a27b85-16f3-45df-b5d6-a1bc4154f65d, OperationName: ContainerAppUpdateAppSettings, CreatedTime: 8/24/2024 7:15:08 AM, RequestId: b3d0e83e-4776-46cb-960d-5843866af3d6, EntityType: 3","Target":null,"Details":[{"Message":"Cannot modify this site because another operation is in progress. Details: Id: 79a27b85-16f3-45df-b5d6-a1bc4154f65d, OperationName: ContainerAppUpdateAppSettings, CreatedTime: 8/24/2024 7:15:08 AM, RequestId: b3d0e83e-4776-46cb-960d-5843866af3d6, EntityType: 3"},{"Code":"Conflict"},{"ErrorEntity":{"ExtendedCode":"51032","MessageTemplate":"Cannot modify this site because another operation is in progress. Details: {0}","Parameters":["Id: 79a27b85-16f3-45df-b5d6-a1bc4154f65d, OperationName: ContainerAppUpdateAppSettings, CreatedTime: 8/24/2024 7:15:08 AM, RequestId: b3d0e83e-4776-46cb-960d-5843866af3d6, EntityType: 3"],"Code":"Conflict","Message":"Cannot modify this site because another operation is in progress. Details: Id: 79a27b85-16f3-45df-b5d6-a1bc4154f65d, OperationName: ContainerAppUpdateAppSettings, CreatedTime: 8/24/2024 7:15:08 AM, RequestId: b3d0e83e-4776-46cb-960d-5843866af3d6, EntityType: 3"}}],"Innererror":null}

Issue script & Debug output

azure-cli.log

Expected behavior

Quickly succeed in updating Docker Image

Environment Summary

azure-cli                         2.63.0

core                              2.63.0
telemetry                          1.1.0

Dependencies:
msal                              1.30.0
azure-mgmt-resource               23.1.1

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\shibayan\.azure\cliextensions'

Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb  6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]

Additional context

No response

Metadata

Metadata

Labels

Auto-AssignAuto assign by botFunctionsaz functionappService AttentionThis issue is responsible by Azure service team.Web Appsaz webappact-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions