Show / Hide Table of Contents

    Class VirtualMachineIdentity

    Identity for the virtual machine.

    Inheritance
    Object
    VirtualMachineIdentity
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Compute.dll
    Syntax
    public class VirtualMachineIdentity

    Constructors

    VirtualMachineIdentity()

    Initializes a new instance of the VirtualMachineIdentity class.

    Declaration
    public VirtualMachineIdentity ();

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

    Initializes a new instance of the VirtualMachineIdentity class.

    Declaration
    public VirtualMachineIdentity (string principalId = null, string tenantId = null, Nullable<Microsoft.Azure.Management.Compute.Models.ResourceIdentityType> type = null, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.Compute.Models.VirtualMachineIdentityUserAssignedIdentitiesValue> userAssignedIdentities = null);
    Parameters
    String principalId

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

    String tenantId

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

    Nullable<ResourceIdentityType> type

    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'

    IDictionary<String,VirtualMachineIdentityUserAssignedIdentitiesValue> userAssignedIdentities

    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}'.

    Properties

    PrincipalId

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="principalId")]
    public string PrincipalId { get; }
    Property Value
    String

    TenantId

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="tenantId")]
    public string TenantId { get; }
    Property Value
    String

    Type

    Gets or sets 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'

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="type")]
    public Nullable<Microsoft.Azure.Management.Compute.Models.ResourceIdentityType> Type { get; set; }
    Property Value
    Nullable<ResourceIdentityType>

    UserAssignedIdentities

    Gets or sets 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}'.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="userAssignedIdentities")]
    public System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.Compute.Models.VirtualMachineIdentityUserAssignedIdentitiesValue> UserAssignedIdentities { get; set; }
    Property Value
    IDictionary<String,VirtualMachineIdentityUserAssignedIdentitiesValue>

    Back to top Azure SDK for Net