Open pmierzwa opened 7 months ago
Hi @pmierzwa,
2.58.0 is not the latest Azure CLI(2.60.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 @AzureAppServiceCLI, @antcp.
Issue still persists after updating from 2.58 to 2.60
Describe the bug
When using the
az webapp config container set
container command, I should according to the documentation switch from using the optional parameter--docker-custom-image-name
, and instead use--container-image-name
as the prior is depricated.Related command
az webapp config container set --name webappName --resource-group rg-xxxx-tst-01 --container-image-name xxxx.azurecr.io/repo:tag
does not work, but the following does:az webapp config container set --name webappName --resource-group rg-xxxx-tst-01 --docker-custom-image-name xxxx.azurecr.io/repo:tag
az webapp config container set --name webappName --resource-group rg-xxxx-tst-01 -c xxxx.azurecr.io/repo:tag
az webapp config container set --name webappName --resource-group rg-xxxx-tst-01 -i xxxx.azurecr.io/repo:tag
Errors
Issue script & Debug output
Expected behavior
I expect the command to function the way
--docker-custom-image-name
functioned. It should set the "image" and "tag" in the deployment center in the azure portal on my webapp.Environment Summary
Additional context
Notice the command works when using the short hand notations
-c
and-i
.I am referring to the following documentation: https://learn.microsoft.com/en-us/cli/azure/webapp/config/container?view=azure-cli-latest#az-webapp-config-container-set