azure-cli-extensions: `az containerapp update` is not setting minreplicas to 0
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at Azure/azure-cli
Related command
containerapp update
Extension name (the extension in question)
containerapp
Description of issue (in as much detail as possible)
I originally created a containerapp with a yaml file that specified minReplicas: 0
Now, I want to update minReplicas to 0 so I updated the yaml file like this:
scale:
minReplicas: 0
maxReplicas: 1
and ran
az container app update ... --yaml updated.yaml
However, in the output from the command and in the portal, the minReplicas is still set to 0.
Then, I tried the following:
az containerapp update ... --min-replicas 0
The command completed successfully, but minReplicas did not get updated.
Final try - I updated minReplicas via a Revision in the Portal and that finally worked.
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 15 (5 by maintainers)
This issue about
az containerapp update --min-replicas 0not work has been fixed and released in version0.3.46ofcontainerappextension. You can update the extension with command, thanks!About setting
minReplicasto 0 in--yamlnot work, the fix be released in azure-cli2.57.0in February.