Search code examples
azure-cliazure-container-apps

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.


Solution

    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