Udostępnij za pośrednictwem


VirtualMachineIdentity Constructors

Definition

Overloads

VirtualMachineIdentity()

Initializes a new instance of the VirtualMachineIdentity class.

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

Initializes a new instance of the VirtualMachineIdentity class.

VirtualMachineIdentity()

Initializes a new instance of the VirtualMachineIdentity class.

public VirtualMachineIdentity ();
Public Sub New ()

Applies to

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

Initializes a new instance of the VirtualMachineIdentity class.

public VirtualMachineIdentity (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.VirtualMachineIdentity : 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.VirtualMachineIdentity
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)

Parameters

principalId
String

The principal id of virtual machine identity. This property will only be provided for a system assigned identity.

tenantId
String

The tenant id associated with the virtual machine. This property will only be provided for a system assigned identity.

type
Nullable<ResourceIdentityType>

The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'

userAssignedIdentities
IDictionary<String,UserAssignedIdentitiesValue>

The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

Applies to