VirtualMachineIdentity Class

Identity for the virtual machine.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
VirtualMachineIdentity

Constructor

VirtualMachineIdentity(*, type: Optional[str] = None, user_assigned_identities: Optional[Dict[str, azure.mgmt.compute.v2018_06_01.models._models_py3.UserAssignedIdentitiesValue]] = None, **kwargs)

Parameters

type
str or ResourceIdentityType
Required

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".

user_assigned_identities
dict[<xref:str,azure.mgmt.compute.v2018_06_01.models.UserAssignedIdentitiesValue>]
Required

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

Variables

principal_id
str

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

tenant_id
str

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