简体   繁体   English

Azure版本因Linux容器Azure应用服务部署而失败

[英]Azure Release failing for Linux Container Azure App Service Deployment

I am deploying containers from Azure Container Registry using Azure Release and the Azure App Service Deploy task. 我正在使用Azure版本和Azure App Service Deploy任务从Azure Container Registry部署容器。 I have a Subscription Level Service connection defined. 我定义了一个订阅级服务连接。 Container Registry Settings are set as: 容器注册表设置设置为:

Registry or Namespace: <registry>.azurecr.io
Image: rrez/vnext/dev/booking
Tag: latest
Startup command: "dotnet", "Booking.API.dll"

The task completes successfully, but when reviewing in Container Log on the App Service I see: 该任务已成功完成,但是在App Service上的“容器日志”中查看时,我看到:

2019_02_25_RD00155D9B2488_docker.log:
2019-02-25 22:27:07.101 INFO  - Issuing docker pull: imagename =<registry>.azurecr.io/rrez/vnext/dev/booking:latest
2019-02-25 22:27:07.260 INFO  - Issuing docker pull: imagename =<registry>.azurecr.io/rrez/vnext/dev/booking:latest
2019-02-25 22:27:07.410 INFO  - Issuing docker pull <registry>.azurecr.io/rrez/vnext/dev/booking:latest
2019-02-25 22:27:07.487 ERROR - docker pull returned STDERR>> Error response from daemon: Get https://<registry>.azurecr.io/v2/rrez/vnext/dev/booking/manifests/latest: unauthorized: authentication required

This seems to be an ACR access issue, but I would expect the Subscription Level Service Connection to be authority enough. 这似乎是一个ACR访问问题,但是我希望订阅级别服务连接具有足够的权限。

Since this is Azure Release there is no YAML configuration available to add additional authentication details. 由于这是Azure版本,因此没有可用于添加其他身份验证详细信息的YAML配置。

I pasted the YAML from the Release Task into the successfully completing Build and received the same error. 我将“发布任务”中的YAML粘贴到成功完成的Build中,并收到相同的错误。

The YAML is: YAML是:

- task: AzureRmWebAppDeployment@4
  displayName: 'Azure App Service Deploy: P-RREZ-BOOKING-PREPROD'
  inputs:
    ConnectionType: AzureRM
    azureSubscription: 'RightRez.Services SubscriptionSC'
    appType: webAppContainer
    WebAppName: 'P-RREZ-BOOKING-PREPROD'
    deployToSlotOrASE: true
    ResourceGroupName: '<ResourceGroup>-RG'
    DockerNamespace: <registry>.azurecr.io
    DockerRepository: rrez/vnext/dev/booking
    DockerImageTag: latest
    StartupCommand: '"dotnet", "Booking.API.dll"'

Not sure where the problem lies. 不知道问题出在哪里。

Have you set the Access level in the ACR? 您是否在ACR中设置了访问级别? If not please try setting up one from here . 如果没有,请尝试从此处设置一个。 I had similar issue and I tried setting up the role assignment and it worked. 我遇到了类似的问题,我尝试设置角色分配,并且它起作用了。

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

相关问题 Azure容器注册表中的Azure App Service连续部署 - Azure App Service continuous deployment from Azure Container Registry Azure DevOps 发布管道消除了应用服务部署槽 - Azure DevOps Release Pipeline wipes out App Service Deployment Slot 使用Github的Azure&#39;Linux Web App&#39;应用服务连续部署被破坏 - Azure 'Web App on Linux' app service continuous deployment with Github is broken Azure 应用服务 Docker Linux 部署 - 我的文件在哪里? - Azure App Service Docker Linux Deployment - Where are my files? Azure:Azure应用服务的部署插槽的定价 - Azure: Pricing of deployment slots for an Azure App Service Azure 应用服务 Linux 容器:文件共享不可写 - Azure App Service Linux Container: File Share Not Writeable 在 Azure 应用服务中访问 linux 容器内的日志文件 - Accessing log files within linux container in Azure App Service Azure linux 应用服务上运行的容器是否需要 HTTPS - Is HTTPS required on container running on Azure linux app service 为 Azure 应用服务 Linux 上运行的容器创建卷 - Create volume for container running on Azure App Service Linux 将上传到 Azure 门户的 TLS 证书加载到 Linux 应用服务容器中 - Loading a TLS certificate uploaded to the Azure portal into a Linux app service container
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM