spottedmahn
spottedmahn

Reputation: 16031

deploy new version of azure container app

I've followed this guide to deploy my custom image but now I'm stuck on how do I deploy vNext of my container image?

Skimming this YouTube video, it seems revisions are the way but how using the Azure CLI?

There's also an interesting concepts page on application lifecycle management but no guides/tutorials on this topic of revisions, only the api guide pages.

Upvotes: 2

Views: 3160

Answers (2)

JJ.
JJ.

Reputation: 1159

  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

Upvotes: 6

spottedmahn
spottedmahn

Reputation: 16031

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

Upvotes: 0

Related Questions