Class ImageReference
java.lang.Object
com.microsoft.azure.management.batchai.ImageReference
The OS image reference.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionoffer()
Get offer of the image.Get publisher of the image.sku()
Get sKU of the image.version()
Get version of the image.Get the ARM resource identifier of the virtual machine image for the compute nodes.Set offer of the image.withPublisher
(String publisher) Set publisher of the image.Set sKU of the image.withVersion
(String version) Set version of the image.withVirtualMachineImageId
(String virtualMachineImageId) Set the ARM resource identifier of the virtual machine image for the compute nodes.
-
Constructor Details
-
ImageReference
public ImageReference()
-
-
Method Details
-
publisher
Get publisher of the image.- Returns:
- the publisher value
-
withPublisher
Set publisher of the image.- Parameters:
publisher
- the publisher value to set- Returns:
- the ImageReference object itself.
-
offer
Get offer of the image.- Returns:
- the offer value
-
withOffer
Set offer of the image.- Parameters:
offer
- the offer value to set- Returns:
- the ImageReference object itself.
-
sku
Get sKU of the image.- Returns:
- the sku value
-
withSku
Set sKU of the image.- Parameters:
sku
- the sku value to set- Returns:
- the ImageReference object itself.
-
version
Get version of the image.- Returns:
- the version value
-
withVersion
Set version of the image.- Parameters:
version
- the version value to set- Returns:
- the ImageReference object itself.
-
virtualMachineImageId
Get the ARM resource identifier of the virtual machine image for the compute nodes. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}. The virtual machine image must be in the same region and subscription as the cluster. 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. Note, you need to provide publisher, offer and sku of the base OS image of which the custom image has been derived from.- Returns:
- the virtualMachineImageId value
-
withVirtualMachineImageId
Set the ARM resource identifier of the virtual machine image for the compute nodes. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}. The virtual machine image must be in the same region and subscription as the cluster. 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. Note, you need to provide publisher, offer and sku of the base OS image of which the custom image has been derived from.- Parameters:
virtualMachineImageId
- the virtualMachineImageId value to set- Returns:
- the ImageReference object itself.
-