【发布时间】:2024-01-24 09:55:01
【问题描述】:
我正在尝试在 Azure Pipelines 中运行 Azure Resource Group Deployment task。我部署了一个Azure Pipelines self-hosted agent on an Azure VM running Windows,并在我的 Azure DevOps 组织中设置了一个Azure Resource Manager service connection to a VM with a managed service identity。
但是,当我尝试使用具有托管标识的服务连接来配置我的 Azure 资源组部署任务时出现以下错误:
GetUserAccessToken: 获取 identity 的访问令牌失败。 AAD 返回静默失败。
截图:
我已验证我已授予对目标资源组的 VM 托管标识的访问权限(参与者):
服务连接也适用于 Azure 订阅:
感谢您提供有关诊断此问题的任何帮助。谢谢!
【问题讨论】:
标签: azure azure-devops azure-pipelines azure-resource-manager azure-managed-identity