Class ImageReference
java.lang.Object
com.microsoft.azure.management.batch.ImageReference
A reference to an Azure Virtual Machines Marketplace image or the Azure
Image resource of a custom Virtual Machine. To get the list of all
imageReferences verified by Azure Batch, see the 'List supported node agent
SKUs' operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionid()
Get this property is mutually exclusive with other properties.offer()
Get for example, UbuntuServer or WindowsServer.Get for example, Canonical or MicrosoftWindowsServer.sku()
Get for example, 18.04-LTS or 2019-Datacenter.version()
Get a value of 'latest' can be specified to select the latest version of an image.Set this property is mutually exclusive with other properties.Set for example, UbuntuServer or WindowsServer.withPublisher
(String publisher) Set for example, Canonical or MicrosoftWindowsServer.Set for example, 18.04-LTS or 2019-Datacenter.withVersion
(String version) Set a value of 'latest' can be specified to select the latest version of an image.
-
Constructor Details
-
ImageReference
public ImageReference()
-
-
Method Details
-
publisher
Get for example, Canonical or MicrosoftWindowsServer.- Returns:
- the publisher value
-
withPublisher
Set for example, Canonical or MicrosoftWindowsServer.- Parameters:
publisher
- the publisher value to set- Returns:
- the ImageReference object itself.
-
offer
Get for example, UbuntuServer or WindowsServer.- Returns:
- the offer value
-
withOffer
Set for example, UbuntuServer or WindowsServer.- Parameters:
offer
- the offer value to set- Returns:
- the ImageReference object itself.
-
sku
Get for example, 18.04-LTS or 2019-Datacenter.- Returns:
- the sku value
-
withSku
Set for example, 18.04-LTS or 2019-Datacenter.- Parameters:
sku
- the sku value to set- Returns:
- the ImageReference object itself.
-
version
Get a value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'.- Returns:
- the version value
-
withVersion
Set a value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'.- Parameters:
version
- the version value to set- Returns:
- the ImageReference object itself.
-
id
Get this property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.- Returns:
- the id value
-
withId
Set this property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.- Parameters:
id
- the id value to set- Returns:
- the ImageReference object itself.
-