ImageReference Class
- java.
lang. Object - com.
microsoft. azure. management. batchai. ImageReference
- com.
public class ImageReference
The OS image reference.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
offer()
Get offer of the image. |
String |
publisher()
Get publisher of the image. |
String |
sku()
Get sKU of the image. |
String |
version()
Get version of the image. |
String |
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. |
Image |
withOffer(String offer)
Set offer of the image. |
Image |
withPublisher(String publisher)
Set publisher of the image. |
Image |
withSku(String sku)
Set sKU of the image. |
Image |
withVersion(String version)
Set version of the image. |
Image |
withVirtualMachineImageId(String virtualMachineImageId)
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. |
Method Details
offer
public String offer()
Get offer of the image.
Returns:
publisher
public String publisher()
Get publisher of the image.
Returns:
sku
public String sku()
Get sKU of the image.
Returns:
version
public String version()
Get version of the image.
Returns:
virtualMachineImageId
public String 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:
withOffer
public ImageReference withOffer(String offer)
Set offer of the image.
Parameters:
Returns:
withPublisher
public ImageReference withPublisher(String publisher)
Set publisher of the image.
Parameters:
Returns:
withSku
public ImageReference withSku(String sku)
Set sKU of the image.
Parameters:
Returns:
withVersion
public ImageReference withVersion(String version)
Set version of the image.
Parameters:
Returns:
withVirtualMachineImageId
public ImageReference withVirtualMachineImageId(String virtualMachineImageId)
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:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for