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

VirtualMachineIdentity 类

虚拟机的标识。

变量仅由服务器填充,在发送请求时将被忽略。

继承
azure.mgmt.compute._serialization.Model
VirtualMachineIdentity

构造函数

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

仅限关键字的参数

名称 说明
type
str

用于虚拟机的标识类型。 目前,唯一受支持的类型是“SystemAssigned”,它隐式创建标识。 默认值为“SystemAssigned”。

变量

名称 说明
principal_id
str

虚拟机标识的主体 ID。

tenant_id
str

与虚拟机关联的租户 ID。

type
str

用于虚拟机的标识类型。 目前,唯一受支持的类型是“SystemAssigned”,它隐式创建标识。 默认值为“SystemAssigned”。