部署新版本的Azure容器应用程序

发布于 2025-02-03 14:17:49 字数 847 浏览 4 评论 0 原文

我遵循本我的自定义图像但是现在我陷入了我的容器图像的如何部署 vnext

浏览此YouTube视频,似乎修订版是这样,但是如何使用azure cli?

但没有关于此修订主题的指南/教程,仅 API指南页面

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

养猫人 2025-02-10 14:17:49
  1. 您需要更新应用程序对于新图像。此操作将在幕后创建新的修订。
az containerapp update `
  --name <APPLICATION_NAME> `
  --resource-group <RESOURCE_GROUP_NAME> `
  --image mcr.microsoft.com/azuredocs/containerapps-helloworld
  1. 取决于您的“ noreferrer”> ActiveRevisissMode 属性:
    一个。如果单个,则应该自动进行修订。
    b。如果mulitple,则
  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
暮年慕年 2025-02-10 14:17:49

创建一个修订复制指向新图像:

$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

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文