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

VirtualMachineIdentity Class

Identity for the virtual machine.

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

Constructor

VirtualMachineIdentity(*, type: Literal['SystemAssigned'] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
type
str

The type of identity used for the virtual machine. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Default value is "SystemAssigned".

Variables

Name Description
principal_id
str

The principal id of virtual machine identity.

tenant_id
str

The tenant id associated with the virtual machine.

type
str

The type of identity used for the virtual machine. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Default value is "SystemAssigned".