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

Identity 构造函数

定义

重载

Identity()

初始化 Identity 类的新实例。

Identity(String, String, Nullable<ResourceIdentityType>, IDictionary<String,IdentityUserAssignedIdentitiesValue>)

初始化 Identity 类的新实例。

Identity()

初始化 Identity 类的新实例。

public Identity ();
Public Sub New ()

适用于

Identity(String, String, Nullable<ResourceIdentityType>, IDictionary<String,IdentityUserAssignedIdentitiesValue>)

初始化 Identity 类的新实例。

public Identity (string principalId = default, string tenantId = default, Microsoft.Azure.Management.Automation.Models.ResourceIdentityType? type = default, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.Automation.Models.IdentityUserAssignedIdentitiesValue> userAssignedIdentities = default);
new Microsoft.Azure.Management.Automation.Models.Identity : string * string * Nullable<Microsoft.Azure.Management.Automation.Models.ResourceIdentityType> * System.Collections.Generic.IDictionary<string, Microsoft.Azure.Management.Automation.Models.IdentityUserAssignedIdentitiesValue> -> Microsoft.Azure.Management.Automation.Models.Identity
Public Sub New (Optional principalId As String = Nothing, Optional tenantId As String = Nothing, Optional type As Nullable(Of ResourceIdentityType) = Nothing, Optional userAssignedIdentities As IDictionary(Of String, IdentityUserAssignedIdentitiesValue) = Nothing)

参数

principalId
String

资源标识的主体 ID。

tenantId
String

资源的租户 ID。

type
Nullable<ResourceIdentityType>

标识类型。 可能的值包括:“SystemAssigned”、“UserAssigned”、“SystemAssigned、UserAssigned”、“None”

userAssignedIdentities
IDictionary<String,IdentityUserAssignedIdentitiesValue>

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

适用于