ImageUpdate Class

The source user image virtual hard disk. Only tags may be updated.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.compute.v2021_04_01.models._models_py3.UpdateResource
ImageUpdate

Constructor

ImageUpdate(*, tags: Optional[Dict[str, str]] = 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

tags
dict[str, str]
Required

A set of tags. Resource tags.

source_virtual_machine
SubResource
Required

The source virtual machine from which Image is created.

storage_profile
ImageStorageProfile
Required

Specifies the storage settings for the virtual machine disks.

hyper_v_generation
str or HyperVGenerationTypes
Required

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

provisioning_state
str

The provisioning state.