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

VirtualMachineScaleSetIdentity 构造函数

定义

重载

VirtualMachineScaleSetIdentity()

初始化 VirtualMachineScaleSetIdentity 类的新实例。

VirtualMachineScaleSetIdentity(String, String, Nullable<ResourceIdentityType>, IDictionary<String,UserAssignedIdentitiesValue>)

初始化 VirtualMachineScaleSetIdentity 类的新实例。

VirtualMachineScaleSetIdentity()

初始化 VirtualMachineScaleSetIdentity 类的新实例。

public VirtualMachineScaleSetIdentity ();
Public Sub New ()

适用于

VirtualMachineScaleSetIdentity(String, String, Nullable<ResourceIdentityType>, IDictionary<String,UserAssignedIdentitiesValue>)

初始化 VirtualMachineScaleSetIdentity 类的新实例。

public VirtualMachineScaleSetIdentity (string principalId = default, string tenantId = default, Microsoft.Azure.Management.Compute.Models.ResourceIdentityType? type = default, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.Compute.Models.UserAssignedIdentitiesValue> userAssignedIdentities = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity : string * string * Nullable<Microsoft.Azure.Management.Compute.Models.ResourceIdentityType> * System.Collections.Generic.IDictionary<string, Microsoft.Azure.Management.Compute.Models.UserAssignedIdentitiesValue> -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetIdentity
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, UserAssignedIdentitiesValue) = Nothing)

参数

principalId
String

虚拟机规模集标识的主体 ID。 仅为系统分配的标识提供此属性。

tenantId
String

与虚拟机规模集关联的租户 ID。 仅为系统分配的标识提供此属性。

type
Nullable<ResourceIdentityType>

用于虚拟机规模集的标识类型。 类型“SystemAssigned ,UserAssigned”包含隐式创建的标识和一组用户分配的标识。 类型“None”将从虚拟机规模集中删除任何标识。 可能的值包括:“SystemAssigned”、“UserAssigned”、“SystemAssigned、UserAssigned”、“None”

userAssignedIdentities
IDictionary<String,UserAssignedIdentitiesValue>

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

适用于