你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Identity interface

资源的标识。 策略分配最多支持一个标识。 这是系统分配的标识或单个用户分配的标识。

属性

principalId

资源标识的主体 ID。 此属性仅为系统分配的标识提供注意:此属性不会序列化。 它只能由服务器填充。

tenantId

资源标识的租户 ID。 此属性仅为系统分配的标识提供注意:此属性不会序列化。 它只能由服务器填充。

type

标识类型。 这是向资源添加系统或用户分配的标识时的唯一必填字段。

userAssignedIdentities

与策略关联的用户标识。 用户标识字典键引用将是 ARM 资源 ID,格式为:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。

属性详细信息

principalId

资源标识的主体 ID。 此属性仅为系统分配的标识提供注意:此属性不会序列化。 它只能由服务器填充。

principalId?: string

属性值

string

tenantId

资源标识的租户 ID。 此属性仅为系统分配的标识提供注意:此属性不会序列化。 它只能由服务器填充。

tenantId?: string

属性值

string

type

标识类型。 这是向资源添加系统或用户分配的标识时的唯一必填字段。

type?: ResourceIdentityType

属性值

userAssignedIdentities

与策略关联的用户标识。 用户标识字典键引用将是 ARM 资源 ID,格式为:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。

userAssignedIdentities?: {[propertyName: string]: UserAssignedIdentitiesValue}

属性值

{[propertyName: string]: UserAssignedIdentitiesValue}