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 Azure.
- Inheritance
-
azure.mgmt.compute.v2021_04_01.models._models_py3.ResourceImage
Constructor
Image(*, location: str, tags: Optional[Dict[str, str]] = None, extended_location: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.ExtendedLocation] = None, source_virtual_machine: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.SubResource] = None, storage_profile: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.ImageStorageProfile] = None, hyper_v_generation: Optional[Union[str, azure.mgmt.compute.v2021_04_01.models._compute_management_client_enums.HyperVGenerationTypes]] = None, **kwargs)
Parameters
- storage_profile
- ImageStorageProfile
Specifies the storage settings for the virtual machine disks.
- hyper_v_generation
- str or HyperVGenerationTypes
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. Possible values include: "V1", "V2".
Variables
- id
- str
Resource Id.
- name
- str
Resource name.
- type
- str
Resource type.
- provisioning_state
- str
The provisioning state.
Feedback
Submit and view feedback for