简体   繁体   English

Azure DevOps Release Pipeline Managed Identity App Service 部署错误

[英]Azure DevOps Release Pipeline Managed Identity App Service Error On Deployment

I am just new to Azure Cloud and Devops, so forgive me if I may forget some critical info here.我只是 Azure 云和 Devops 的新手,所以如果我可能在这里忘记了一些重要信息,请原谅我。

So during creation of tasks for the release and selecting subscriptions, I get an error when trying to authorize the subscription (which I suspect is because of insufficient permissions associated to my account), so I go to advanced options to select the managed identity authentication.因此,在为发布和选择订阅创建任务期间,尝试授权订阅时出现错误(我怀疑这是因为与我的帐户关联的权限不足),所以我将 go 到 select 托管身份验证的高级选项。

After which no error shows now.之后现在没有错误显示。 So I set all remaining items and assign Deploy Azure App Service task.所以我设置了所有剩余的项目并分配了 Deploy Azure App Service 任务。 However during the running of the agent I get an error during Deploy Azure App Service step.但是,在代理运行期间,我在部署 Azure 应用服务步骤期间收到错误。

Error: Failed to get resource ID for resource type 'Microsoft.Web/Sites' and resource name 'sample-vue'. Error: Could not fetch access token for Managed Service Principal. Please configure Managed Service Identity (MSI) for virtual machine 'https://aka.ms/azure-msi-docs'. Status code: 400, status message: Bad Request

I have already set my azure app service to have a system assigned managed identity, but still this error occurs.我已经将我的 azure 应用服务设置为具有系统分配的托管标识,但仍然出现此错误。 I can't find any answer, online, with regards to the error above so hoping that someone could help explain to me the problem and how to possibly fix it.关于上述错误,我在网上找不到任何答案,因此希望有人可以帮助向我解释问题以及如何解决它。 My hunch now is that I may have some insufficient permissions, but I don't know what it may be.我现在的预感是我可能有一些权限不足,但我不知道它可能是什么。

Please try the following items:请尝试以下项目:

  1. Remove and re-add the service connection in DevOps.在 DevOps 中删除并重新添加服务连接。

  2. Check the rights of the account on Azure subscription.检查Azure订阅账户的权限。 Please verify if the account has at least contributor access on Azure subscriptions.请验证该帐户是否至少具有 Azure 订阅的贡献者访问权限。 Check https://docs.microsoft.com/en-us/azure/billing/billing-add-change-azure-subscription-administrator检查https://docs.microsoft.com/en-us/azure/billing/billing-add-change-azure-subscription-administrator

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

相关问题 Azure DevOps 发布管道消除了应用服务部署槽 - Azure DevOps Release Pipeline wipes out App Service Deployment Slot 从 Azure DevOps 发布管道成功部署后,应用服务不加载 Web 应用 - App Service does not load web-app after successful deployment from Azure DevOps release pipeline Azure Devops发布管道-未更新Azure App Service文件 - Azure Devops Release Pipeline - Azure App Service files not updated Azure Devops Release Pipeline - 将单个文件部署到Azure App Service - Azure Devops Release Pipeline - Deploy single file to Azure App Service Azure DevOps 发布管道上的 ClickOnce 部署 - ClickOnce deployment on Azure DevOps release pipeline Azure DevOps发布管道优先级部署 - Azure DevOps Release Pipeline Priority Deployment Azure DevOps 将发布管道链接到部署组 - Azure DevOps link release pipeline to deployment group 等待新部署的应用服务在 Azure Devops 发布管道中重新启动 - Waiting for a freshly deployed app service to be restarted in Azure Devops Release pipeline 作为 Azure DevOps 发布管道的一部分,从应用服务中删除文件 - Delete files from app service as part of Azure DevOps release pipeline Azure Devops 发布管道导致服务连接错误 - Azure Devops Release pipeline causing Service Connection Error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM