共用方式為


Identity interface

資源的身分識別。 原則指派最多支援一個身分識別。 這是系統指派的身分識別或單一使用者指派的身分識別。

屬性

principalId

資源識別的主要標識碼。 此屬性僅適用於系統指派身份

tenantId

資源識別的租用戶標識碼。 此屬性僅適用於系統指派身份

type

識別類型。 將系統或使用者指派的身分識別新增至資源時,這是唯一的必要字段。

userAssignedIdentities

與原則相關聯的使用者身分識別。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。

屬性詳細資料

principalId

資源識別的主要標識碼。 此屬性僅適用於系統指派身份

principalId?: string

屬性值

string

tenantId

資源識別的租用戶標識碼。 此屬性僅適用於系統指派身份

tenantId?: string

屬性值

string

type

識別類型。 將系統或使用者指派的身分識別新增至資源時,這是唯一的必要字段。

type?: ResourceIdentityType

屬性值

userAssignedIdentities

與原則相關聯的使用者身分識別。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。

userAssignedIdentities?: Record<string, UserAssignedIdentitiesValue>

屬性值

Record<string, UserAssignedIdentitiesValue>