ImageReference Class
Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set.
Constructor
ImageReference(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
id
|
Resource Id. |
|
publisher
|
The image publisher. |
|
offer
|
Specifies the offer of the platform image or marketplace image used to create the virtual machine. |
|
sku
|
The image SKU. |
|
version
|
Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available. Please do not use field 'version' for gallery image deployment, gallery image should always use 'id' field for deployment, to use 'latest' version of gallery image, just set '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}' in the 'id' field without version input. |
|
exact_version
|
Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual machine. This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'. |
|
shared_gallery_image_id
|
Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call. |
|
community_gallery_image_id
|
Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call. |
Attributes
community_gallery_image_id
Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call.
community_gallery_image_id: str | None
exact_version
Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual machine. This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'.
exact_version: str | None
offer
Specifies the offer of the platform image or marketplace image used to create the virtual machine.
offer: str | None
publisher
The image publisher.
publisher: str | None
shared_gallery_image_id
Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call.
shared_gallery_image_id: str | None
sku
The image SKU.
sku: str | None
version
Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available. Please do not use field 'version' for gallery image deployment, gallery image should always use 'id' field for deployment, to use 'latest' version of gallery image, just set '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}' in the 'id' field without version input.
version: str | None