我必须通过 Rest API 分配蓝图(链接)
如何获取具有托管标识的令牌?托管身份如下所示:
{
"id": "/subscriptions/xxx-xxx-xxx/resourcegroups/xxxx/providers/Microsoft.ManagedIdentity/userAssignedIdentities/xxx",
"name": "xxx",
"type": "Microsoft.ManagedIdentity/userAssignedIdentities",
"location": "westeurope",
"tags": {},
"properties": {
"tenantId": "xxx",
"principalId": "xxx",
"clientId": "xxx"
}
}
使用托管标识创建的企业应用程序没有任何客户端密码。如何获取令牌以通过 api 分配蓝图?
任何意见,将不胜感激。