VirtualMachineConfiguration Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. VirtualMachineConfiguration
- com.
public class VirtualMachineConfiguration
The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure.
Method Summary
Modifier and Type | Method and Description |
---|---|
Container |
containerConfiguration()
Get if specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it. |
List<Data |
dataDisks()
Get this property must be specified if the compute nodes in the pool need to have empty data disks attached to them. This cannot be updated. Each node gets its own disk (the disk is not a file share). Existing disks cannot be attached, each attached disk is empty. When the node is removed from the pool, the disk and all data associated with it is also deleted. The disk is not formatted after being attached, it must be formatted before use - for more information see https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux and https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. |
Image |
imageReference()
Get the imageReference value. |
String |
licenseType()
Get this only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are: Windows_Server - The on-premises license is for Windows Server. Windows_Client - The on-premises license is for Windows Client. |
String |
nodeAgentSKUId()
Get the Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the 'List supported node agent SKUs' operation. |
Windows |
windowsConfiguration()
Get this property must not be specified if the imageReference property specifies a Linux OS image. |
Virtual |
withContainerConfiguration(ContainerConfiguration containerConfiguration)
Set if specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it. |
Virtual |
withDataDisks(List<DataDisk> dataDisks)
Set this property must be specified if the compute nodes in the pool need to have empty data disks attached to them. This cannot be updated. Each node gets its own disk (the disk is not a file share). Existing disks cannot be attached, each attached disk is empty. When the node is removed from the pool, the disk and all data associated with it is also deleted. The disk is not formatted after being attached, it must be formatted before use - for more information see https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux and https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. |
Virtual |
withImageReference(ImageReference imageReference)
Set the imageReference value. |
Virtual |
withLicenseType(String licenseType)
Set this only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are: Windows_Server - The on-premises license is for Windows Server. Windows_Client - The on-premises license is for Windows Client. |
Virtual |
withNodeAgentSKUId(String nodeAgentSKUId)
Set the Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the 'List supported node agent SKUs' operation. |
Virtual |
withWindowsConfiguration(WindowsConfiguration windowsConfiguration)
Set this property must not be specified if the imageReference property specifies a Linux OS image. |
Method Details
containerConfiguration
public ContainerConfiguration containerConfiguration()
Get if specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it.
Returns:
dataDisks
public List
Get this property must be specified if the compute nodes in the pool need to have empty data disks attached to them. This cannot be updated. Each node gets its own disk (the disk is not a file share). Existing disks cannot be attached, each attached disk is empty. When the node is removed from the pool, the disk and all data associated with it is also deleted. The disk is not formatted after being attached, it must be formatted before use - for more information see https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux and https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine.
Returns:
imageReference
public ImageReference imageReference()
Get the imageReference value.
Returns:
licenseType
public String licenseType()
Get this only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are: Windows_Server - The on-premises license is for Windows Server. Windows_Client - The on-premises license is for Windows Client.
Returns:
nodeAgentSKUId
public String nodeAgentSKUId()
Get the Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the 'List supported node agent SKUs' operation.
Returns:
windowsConfiguration
public WindowsConfiguration windowsConfiguration()
Get this property must not be specified if the imageReference property specifies a Linux OS image.
Returns:
withContainerConfiguration
public VirtualMachineConfiguration withContainerConfiguration(ContainerConfiguration containerConfiguration)
Set if specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it.
Parameters:
Returns:
withDataDisks
public VirtualMachineConfiguration withDataDisks(List
Set this property must be specified if the compute nodes in the pool need to have empty data disks attached to them. This cannot be updated. Each node gets its own disk (the disk is not a file share). Existing disks cannot be attached, each attached disk is empty. When the node is removed from the pool, the disk and all data associated with it is also deleted. The disk is not formatted after being attached, it must be formatted before use - for more information see https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux and https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine.
Parameters:
Returns:
withImageReference
public VirtualMachineConfiguration withImageReference(ImageReference imageReference)
Set the imageReference value.
Parameters:
Returns:
withLicenseType
public VirtualMachineConfiguration withLicenseType(String licenseType)
Set this only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are: Windows_Server - The on-premises license is for Windows Server. Windows_Client - The on-premises license is for Windows Client.
Parameters:
Returns:
withNodeAgentSKUId
public VirtualMachineConfiguration withNodeAgentSKUId(String nodeAgentSKUId)
Set the Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the 'List supported node agent SKUs' operation.
Parameters:
Returns:
withWindowsConfiguration
public VirtualMachineConfiguration withWindowsConfiguration(WindowsConfiguration windowsConfiguration)
Set this property must not be specified if the imageReference property specifies a Linux OS image.
Parameters:
Returns: