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

Image 类

源用户映像虚拟硬盘。 在附加到虚拟机之前,将复制虚拟硬盘。 如果提供了 SourceImage,则目标虚拟硬盘驱动器不得存在。

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

必须填充所有必需的参数才能发送到 Azure。

继承
azure.mgmt.compute.v2022_11_01.models._models_py3.Resource
Image

构造函数

Image(*, location: str, tags: Dict[str, str] | None = None, extended_location: _models.ExtendedLocation | None = None, source_virtual_machine: _models.SubResource | None = None, storage_profile: _models.ImageStorageProfile | None = None, hyper_v_generation: str | _models.HyperVGenerationTypes | None = None, **kwargs: Any)

Keyword-Only Parameters

location
str

资源位置。 必需。

tags
dict[str, str]

资源标记。

extended_location
ExtendedLocation

映像的扩展位置。

source_virtual_machine
SubResource

从中创建映像的源虚拟机。

storage_profile
ImageStorageProfile

指定虚拟机磁盘的存储设置。

hyper_v_generation
strHyperVGenerationTypes

指定从映像创建的 VirtualMachine 的 HyperVGenerationType。 从 API 版本 2019-03-01 开始,如果映像源是 Blob,则我们需要用户指定值,如果源是托管资源(如磁盘或快照),则如果我们无法从源托管资源推断它,则可能需要用户指定 属性。 已知值为:“V1”和“V2”。

变量

id
str

资源 ID。

name
str

资源名称。

type
str

资源类型。

location
str

资源位置。 必需。

tags
dict[str, str]

资源标记。

extended_location
ExtendedLocation

映像的扩展位置。

source_virtual_machine
SubResource

从中创建映像的源虚拟机。

storage_profile
ImageStorageProfile

指定虚拟机磁盘的存储设置。

provisioning_state
str

预配状态。

hyper_v_generation
strHyperVGenerationTypes

指定从映像创建的 VirtualMachine 的 HyperVGenerationType。 从 API 版本 2019-03-01 开始,如果映像源是 Blob,则我们需要用户指定值,如果源是托管资源(如磁盘或快照),则如果我们无法从源托管资源推断它,则可能需要用户指定 属性。 已知值为:“V1”和“V2”。