Class ImageReference
java.lang.Object
com.microsoft.azure.SubResource
com.microsoft.azure.management.compute.ImageReference
public class ImageReference
extends com.microsoft.azure.SubResource
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual machine.offer()
Get specifies the offer of the platform image or marketplace image used to create the virtual machine.Get the image publisher.sku()
Get the image SKU.version()
Get specifies the version of the platform image or marketplace image used to create the virtual machine.Set specifies the offer of the platform image or marketplace image used to create the virtual machine.withPublisher
(String publisher) Set the image publisher.Set the image SKU.withVersion
(String version) Set specifies the version of the platform image or marketplace image used to create the virtual machine.Methods inherited from class com.microsoft.azure.SubResource
id, withId
-
Constructor Details
-
ImageReference
public ImageReference()
-
-
Method Details
-
publisher
Get the image publisher.- Returns:
- the publisher value
-
withPublisher
Set the image publisher.- Parameters:
publisher
- the publisher value to set- Returns:
- the ImageReference object itself.
-
offer
Get specifies the offer of the platform image or marketplace image used to create the virtual machine.- Returns:
- the offer value
-
withOffer
Set specifies the offer of the platform image or marketplace image used to create the virtual machine.- Parameters:
offer
- the offer value to set- Returns:
- the ImageReference object itself.
-
sku
Get the image SKU.- Returns:
- the sku value
-
withSku
Set the image SKU.- Parameters:
sku
- the sku value to set- Returns:
- the ImageReference object itself.
-
version
Get 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.- Returns:
- the version value
-
withVersion
Set 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.- Parameters:
version
- the version value to set- Returns:
- the ImageReference object itself.
-
exactVersion
Get 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'.- Returns:
- the exactVersion value
-