Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

azure container app does not update when updating it using cli

I have an azure container app running an aspdotnet core 6 webapi. I try to update it using azure cli and get a successful response but the update actual does not happen. I even try to redeploy the container again using the cli but does not work. What could really be the issue.

like image 379
Owusu Bright Debrah Avatar asked Jan 19 '26 07:01

Owusu Bright Debrah


1 Answers

To update a container app, we use the az containerapp update cmdlet...

A new revision will be generated if your container app update contains revision-scope changes.

These and other configuration variables and parameters can also be defined in a YAML file.

See az containerapp revision copy for complete information.

This below sample code updates the container image.

az containerapp update \  
--name <APPLICATION_NAME> \  
--resource-group <RESOURCE_GROUP_NAME> \  
--image <IMAGE_NAME>

The Revision copy command can also be used to update your container app.

Please refer this Microsoft Document about Revisions in Azure Container Apps.

like image 183
RajkumarPalnati Avatar answered Jan 20 '26 22:01

RajkumarPalnati