CustomImage Class
A custom image.
Variables are only populated by the server, and will be ignored when sending a request.
Constructor
CustomImage(*, location: str | None = None, tags: Dict[str, str] | None = None, vm: CustomImagePropertiesFromVm | None = None, vhd: CustomImagePropertiesCustom | None = None, description: str | None = None, author: str | None = None, managed_image_id: str | None = None, managed_snapshot_id: str | None = None, data_disk_storage_info: List[DataDiskStorageTypeInfo] | None = None, custom_image_plan: CustomImagePropertiesFromPlan | None = None, is_plan_authorized: bool | None = None, **kwargs)
Parameters
| Name | Description |
|---|---|
|
location
Required
|
The location of the resource. |
|
tags
Required
|
A set of tags. The tags of the resource. |
|
vm
Required
|
The virtual machine from which the image is to be created. |
|
vhd
Required
|
The VHD from which the image is to be created. |
|
description
Required
|
The description of the custom image. |
|
author
Required
|
The author of the custom image. |
|
managed_image_id
Required
|
The Managed Image Id backing the custom image. |
|
managed_snapshot_id
Required
|
The Managed Snapshot Id backing the custom image. |
|
data_disk_storage_info
Required
|
Storage information about the data disks present in the custom image. |
|
custom_image_plan
Required
|
Storage information about the plan related to this custom image. |
|
is_plan_authorized
Required
|
Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
location
|
Default value: None
|
|
tags
|
Default value: None
|
|
vm
|
Default value: None
|
|
vhd
|
Default value: None
|
|
description
|
Default value: None
|
|
author
|
Default value: None
|
|
managed_image_id
|
Default value: None
|
|
managed_snapshot_id
|
Default value: None
|
|
data_disk_storage_info
|
Default value: None
|
|
custom_image_plan
|
Default value: None
|
|
is_plan_authorized
|
Default value: None
|
Variables
| Name | Description |
|---|---|
|
id
|
The identifier of the resource. |
|
name
|
The name of the resource. |
|
type
|
The type of the resource. |
|
creation_date
|
The creation date of the custom image. |
|
provisioning_state
|
The provisioning status of the resource. |
|
unique_identifier
|
The unique immutable identifier of a resource (Guid). |