-
Notifications
You must be signed in to change notification settings - Fork 3k
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 does not fail when the yaml file points to a non-existent image #30053
Comments
Hi @sonofhammer, 2.61.0 is not the latest Azure CLI(2.65.0). If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli. |
Thank you for opening this issue, we will look into it. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dkkapur. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @calvinsID. |
Behavior is the same on the latest version of az and extensions
|
I recognize that this may be more of a container app environment api issue than an az cli issue in and of itself. |
usecase where this is relevant
Sometimes I fatfinger the container image name, and i spend time debugging why the app hasn't updated even though the cli returned successfully. |
I also have/had this issue. I was unable to change anything, either from cli or portal. Only deleting and creating the app again helped. |
This issue has been fixed and will be included in Official Azure CLI version: 2.66.0 Release: 11/05/2024, refer https://github.com/Azure/azure-cli/milestone/147 |
Describe the bug
az container app update does not fail when yaml file points to a nonexistent container image.
To reproduce
az containerapp create -n 'example' -g 'my-rg' --yaml .\app.yaml
Example file:
az containerapp update -n 'example' -g 'my-rg' --yaml .\app.yaml
az containerapp create
az containerapp create -n 'example2' -g 'my-rg' --yaml .\app.yaml
Related command
az containerapp update
Errors
n/a it doesn't error when it should
Issue script & Debug output
n/a. this is easily reproducible with a few command line calls.
Expected behavior
Desired resolution
az containerapp update should fail just like az containerapp create when the yaml file points to a container image that doesn't exist.
Environment Summary
azure-cli 2.61.0 *
core 2.61.0 *
telemetry 1.1.0
Extensions:
azure-devops 1.0.0
containerapp 0.3.50
Dependencies:
msal 1.28.0
azure-mgmt-resource 23.1.1
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\DaniilM.azure\cliextensions'
Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response
The text was updated successfully, but these errors were encountered: