ImageReferenceArgs

data class ImageReferenceArgs(val communityGalleryImageId: Output<String>? = null, val id: Output<String>? = null, val offer: Output<String>? = null, val publisher: Output<String>? = null, val sharedGalleryImageId: Output<String>? = null, val sku: Output<String>? = null, val version: Output<String>? = null) : ConvertibleToJava<ImageReferenceArgs>

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.

Constructors

Link copied to clipboard
constructor(communityGalleryImageId: Output<String>? = null, id: Output<String>? = null, offer: Output<String>? = null, publisher: Output<String>? = null, sharedGalleryImageId: Output<String>? = null, sku: Output<String>? = null, version: Output<String>? = null)

Properties

Link copied to clipboard
val communityGalleryImageId: Output<String>? = null

Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call.

Link copied to clipboard
val id: Output<String>? = null

Resource Id

Link copied to clipboard
val offer: Output<String>? = null

Specifies the offer of the platform image or marketplace image used to create the virtual machine.

Link copied to clipboard
val publisher: Output<String>? = null

The image publisher.

Link copied to clipboard
val sharedGalleryImageId: Output<String>? = null

Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call.

Link copied to clipboard
val sku: Output<String>? = null

The image SKU.

Link copied to clipboard
val version: Output<String>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): ImageReferenceArgs