[英]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:请尝试以下项目:
Remove and re-add the service connection in DevOps.在 DevOps 中删除并重新添加服务连接。
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.