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.v2021_07_01.models._models_py3.ResourceImage
Constructor
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
Name | Description |
---|---|
location
|
Resource location. Required. |
tags
|
Resource tags. |
extended_location
|
The extended location of the Image. |
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
|
Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. 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. |
extended_location
|
The extended location of the Image. |
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
|
Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. Known values are: "V1" and "V2". |
Azure SDK for Python