deploy new version of azure container app

Viewed 316
2 Answers
  1. You need to update the app for a new image. This action will create a new revision behind the scenes.
az containerapp update `
  --name <APPLICATION_NAME> `
  --resource-group <RESOURCE_GROUP_NAME> `
  --image mcr.microsoft.com/azuredocs/containerapps-helloworld
  1. Depending on your activeRevisionsMode property:
    a. if single then revision should automatically get activates.
    b. if mulitple then activate and configure traffic-splitting

create a revision copy pointing to the new image:

$RESOURCE_GROUP="my-resource-group"
$CONTAINER_APP_NAME="my-image"
$NEW_IMAGE="myregistry.azurecr.io/smile:vNext"

az containerapp revision copy --resource-group $RESOURCE_GROUP `
   --name $CONTAINER_APP_NAME `
   --image $NEW_IMAGE
Related