Open sonofhammer opened 3 days ago
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
azure-cli 2.65.0
core 2.65.0
telemetry 1.1.0
Extensions:
azure-devops 1.0.1
containerapp 1.0.0b3
Dependencies:
msal 1.31.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)]
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 suspect that it is somehow related to the Azure container apps. Specifically to the registry from where it takes the image. I was experimenting with deleting the image version from registry and when the app tried to run (starting from 0 replicas) the image version wasn't there, which caused the error.
I was unable to change anything, either from cli or portal. Only deleting and creating the app again helped.
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