[x] bug report -> please search issues before submitting
Issue description
When multiple revisions are enabled, az cli allows you to set 100% traffic to a deactivated revision. Then it also allows you to deactivate the only active revision.
Steps to reproduce
Create a container app and set Revision Mode: Multiple
Create a new revision
Deactivate the new revision created in step 3
Run the following command:
az containerapp ingress traffic set \
--name APP_NAME \
--resource-group RESOURCE_GROUP \
--revision-weight DEACTIVATED_CA=100 ACTIVE_CA=0
Expected behavior [What you expected to happen.]
I would expect it to throw errors in 2 places:
"Cannot set traffic on an deactivated revision"
"Cannot deactivate the only action revision"
Actual behavior [What actually happened.]
It allows you to set traffic on a deactivated revision and allows you to deactivate the only active revision.
Screenshots
Screenshots attached...
Additional context
This occurs only when using the az cli. You cannot do this via the Portal.
Please provide us with the following information:
This issue is a: (mark with an x)
Issue description
When multiple revisions are enabled, az cli allows you to set 100% traffic to a deactivated revision. Then it also allows you to deactivate the only active revision.
Steps to reproduce
Expected behavior [What you expected to happen.] I would expect it to throw errors in 2 places:
Actual behavior [What actually happened.] It allows you to set traffic on a deactivated revision and allows you to deactivate the only active revision.
Screenshots
Screenshots attached...
Additional context
This occurs only when using the az cli. You cannot do this via the Portal.
()