Image Class
The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
- Inheritance
-
azure.mgmt.compute.v2019_12_01.models._models_py3.ResourceImage
Constructor
Image(*, location: str, tags: Dict[str, str] | 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
Name | Description |
---|---|
location
|
Resource location. Required. |
tags
|
Resource tags. |
source_virtual_machine
|
The source virtual machine from which Image is created. |
storage_profile
|
Specifies the storage settings for the virtual machine disks. |
hyper_v_generation
|
Gets the HyperVGenerationType of the VirtualMachine created from the image. Known values are: "V1" and "V2". |
Variables
Name | Description |
---|---|
id
|
Resource Id. |
name
|
Resource name. |
type
|
Resource type. |
location
|
Resource location. Required. |
tags
|
Resource tags. |
source_virtual_machine
|
The source virtual machine from which Image is created. |
storage_profile
|
Specifies the storage settings for the virtual machine disks. |
provisioning_state
|
The provisioning state. |
hyper_v_generation
|
Gets the HyperVGenerationType of the VirtualMachine created from the image. Known values are: "V1" and "V2". |
Azure SDK for Python