Unstable Behavior of `az functionapp config container set` Command for Container App Hosted Azure Functions
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### 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](https://github.com/user-attachments/files/16735601/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_
Contributor guide
Assessment
This issue has not been assessed yet.