二头肌中用户分配身份的输出参数?

2024-03-30

我正在尝试检索客户ID使用 Azure Bicep 创建的托管标识。但是文档 https://learn.microsoft.com/en-us/azure/templates/microsoft.managedidentity/userassignedidentities?pivots=deployment-language-bicep不提供有关输出参数的任何信息。我错过了什么吗?在 bicep 中定义托管身份后如何检索客户端 ID?


clientId 可在身份的属性上使用:

param identityName string

resource identity 'Microsoft.ManagedIdentity/userAssignedIdentities@2022-01-31-preview' = {
  name: identityName
  location: resourceGroup().location
}

output clientId string = identity.properties.clientId
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

二头肌中用户分配身份的输出参数? 的相关文章

随机推荐