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.
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 |
---|---|
tags
|
Resource tags. Default value: None
|
location
|
The geo-location where the resource lives. Required. |
extended_location
|
The extended location of the Image. Default value: None
|
source_virtual_machine
|
The source virtual machine from which Image is created. Default value: None
|
storage_profile
|
Specifies the storage settings for the virtual machine disks. Default value: None
|
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". Default value: None
|
Variables
Name | Description |
---|---|
id
|
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name
|
The name of the resource. |
type
|
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
system_data
|
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags
|
Resource tags. |
location
|
The geo-location where the resource lives. Required. |
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". |