简体   繁体   English

如何从位于不同订阅中的 ACR 将映像部署到 Azure 应用服务?

[英]How can I deploy image to Azure App Service from an ACR which is located in different subscription?

I want to deploy an image to Azure App Service.我想将映像部署到 Azure 应用服务。 The image is in the ACR which is in different subscription and App Service is in other subscription.图像在不同订阅的 ACR 中,应用服务在其他订阅中。 Is there any way to deploy the image.有什么方法可以部署映像。

I will be using terraform to setup the App Service and Azure DevOps Pipeline to deploy new version of images我将使用 terraform 来设置应用服务和 Azure DevOps Pipeline 来部署新版本的图像

In case when your ACR is in a different subscription you need to treat this ACR as private docker hub and provide following app settings :如果您的 ACR 在不同的订阅中,您需要将此 ACR 视为私有 docker hub 并提供以下应用程序设置

  • DOCKER_REGISTRY_SERVER_URL DOCKER_REGISTRY_SERVER_URL
  • DOCKER_REGISTRY_SERVER_USERNAME DOCKER_REGISTRY_SERVER_USERNAME
  • DOCKER_REGISTRY_SERVER_PASSWORD DOCKER_REGISTRY_SERVER_PASSWORD

Of course you need to provide also linux_fx_version当然你还需要提供linux_fx_version

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从Azure中的不同订阅和租户ID中提取ACR中可用的docker镜像 - how to pull docker image available in ACR from different subscription and tenant id in Azure 如何从 Azure 容器应用服务使用 Azure ACR 进行身份验证 - How to authenticate with Azure ACR from Azure container app service 如何配置 Azure 应用服务以从具有 terraform 的 ACR 中提取图像? - How to configure an Azure app service to pull images from an ACR with terraform? 参考来自不同订阅的另一个 azure 容器存储库 (ACR) 的 docker 映像 - Refer the docker image from another azure container repository (ACR) of different subscription 如何从 azure 发布管道查询当前部署到应用程序服务的 docker 图像? - How can I query which docker image is currently deployed to an app service from an azure release pipeline? 我无法从 azure ACR 中提取图像 - I can´t pull image from azure ACR 使用来自不同订阅的 Azure AD 的 Azure 应用服务 - Azure app service using Azure AD from a different subscription 使用KeyVault(Terraform)从ACR提取图像时,Azure App Service错误 - Azure App Service Error while pulling image from ACR using KeyVault (Terraform) 如何在VPC上部署Azure应用服务 - How can I deploy an Azure App Service on VPC 如何导出当前的Azure App Service证书并导入到其他订阅 - How to Export a current Azure App Service Certificate and import to a different subscription
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM