-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az containerapp update
is not setting minreplicas to 0
#5391
Comments
az containerapp update --yaml
is not setting minreplicas to 0az containerapp update
is not setting minreplicas to 0
route to CXP team |
@charris-msft thanks for reporting, we will investigate further. However, wanted to get a clarification, if this behavior is specific to yaml from CLI command. Does this work with ARM template or updating from portal directly? |
@panchagnula - |
Gotcha. Could you also provide the CLI version being used (run az --version). CLI updated recently to use the latest api-version, so I am wondering if there is a change here we need to look into. Portal still uses an older api-version. Thanks! |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @calvinsID. Issue Details
Related command
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 Now, I want to update minReplicas to 0 so I updated the yaml file like this:
and ran
However, in the output from the command and in the portal, the minReplicas is still set to 0. Then, I tried the following:
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.
|
|
Had same issue but got around it by providing --max-replicas as well |
is there an updated for this? I created a new container app with this in my config.yml file:
I then updated the config like so:
ran the deploy and minReplicas is still 1, but the scaling part all worked as expected also, if I try to use the CLI flags along with the yml config, I get this:
EDIT: I can confirm that when using the so, since the app was created with default scaling rules (ie: 1 and 10 for min / max), I have to do two update commands to update the image for the new revision AND update the scaling min/max:
|
This issue about
About setting |
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:
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.
The text was updated successfully, but these errors were encountered: