共用方式為


VirtualMachineImage 類別

描述虛擬機器映射。

必須填入所有必要的參數,才能傳送至 Azure。

繼承
azure.mgmt.compute.v2023_07_01.models._models_py3.VirtualMachineImageResource
VirtualMachineImage

建構函式

VirtualMachineImage(*, name: str, location: str, id: str | None = None, tags: Dict[str, str] | None = None, extended_location: _models.ExtendedLocation | None = None, plan: _models.PurchasePlan | None = None, os_disk_image: _models.OSDiskImage | None = None, data_disk_images: List[_models.DataDiskImage] | None = None, automatic_os_upgrade_properties: _models.AutomaticOSUpgradeProperties | None = None, hyper_v_generation: str | _models.HyperVGenerationTypes | None = None, disallowed: _models.DisallowedConfiguration | None = None, features: List[_models.VirtualMachineImageFeature] | None = None, architecture: str | _models.ArchitectureTypes | None = None, image_deprecation_status: _models.ImageDeprecationStatus | None = None, **kwargs: Any)

Keyword-Only Parameters

id
str

資源識別碼。

name
str

資源名稱。 必要。

location
str

資源支援的 Azure 位置。 必要。

tags
dict[str, str]

指定指派給虛擬機器的標記。 如需使用標籤的詳細資訊,請參閱 使用標籤來組織 Azure 資源

extended_location
ExtendedLocation

虛擬機器的擴充位置。

plan
PurchasePlan

用於透過 MarketPlace 建立任何協力廠商成品的購買內容。

os_disk_image
OSDiskImage

包含 os 磁片映射資訊。

data_disk_images
list[DataDiskImage]
automatic_os_upgrade_properties
AutomaticOSUpgradeProperties

描述映射上的自動 OS 升級屬性。

hyper_v_generation
strHyperVGenerationTypes

指定 HyperVGeneration 類型。 已知值為:「V1」 和 「V2」。

disallowed
DisallowedConfiguration

為從映射建立的 VirtualMachine 指定不允許的組態。

architecture
strArchitectureTypes

指定架構類型。 已知值為:「x64」 和 「Arm64」。

image_deprecation_status
ImageDeprecationStatus

描述映射上的映射取代狀態屬性。

變數

id
str

資源識別碼。

name
str

資源名稱。 必要。

location
str

資源支援的 Azure 位置。 必要。

tags
dict[str, str]

指定指派給虛擬機器的標記。 如需使用標籤的詳細資訊,請參閱 使用標籤來組織 Azure 資源

extended_location
ExtendedLocation

虛擬機器的擴充位置。

plan
PurchasePlan

用於透過 MarketPlace 建立任何協力廠商成品的購買內容。

os_disk_image
OSDiskImage

包含 os 磁片映射資訊。

data_disk_images
list[DataDiskImage]
automatic_os_upgrade_properties
AutomaticOSUpgradeProperties

描述映射上的自動 OS 升級屬性。

hyper_v_generation
strHyperVGenerationTypes

指定 HyperVGeneration 類型。 已知值為:「V1」 和 「V2」。

disallowed
DisallowedConfiguration

為從映射建立的 VirtualMachine 指定不允許的組態。

architecture
strArchitectureTypes

指定架構類型。 已知值為:「x64」 和 「Arm64」。

image_deprecation_status
ImageDeprecationStatus

描述映射上的映射取代狀態屬性。