VirtualMachineConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. VirtualMachineConfiguration
- com.
Implements
public final class VirtualMachineConfiguration
implements JsonSerializable<VirtualMachineConfiguration>
The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure.
Constructor Summary
| Constructor | Description |
|---|---|
| VirtualMachineConfiguration() |
Creates an instance of Virtual |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Container |
containerConfiguration()
Get the container |
|
List<Data |
dataDisks()
Get the data |
|
Disk |
diskEncryptionConfiguration()
Get the disk |
| List<VMExtension> |
extensions()
Get the extensions property: If specified, the extensions mentioned in this configuration will be installed on each node. |
|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
|
Image |
imageReference()
Get the image |
| String |
licenseType()
Get the license |
| String |
nodeAgentSkuId()
Get the node |
|
Node |
nodePlacementConfiguration()
Get the node |
| OSDisk |
osDisk()
Get the os |
|
Security |
securityProfile()
Get the security |
|
Service |
serviceArtifactReference()
Get the service |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Windows |
windowsConfiguration()
Get the windows |
|
Virtual |
withContainerConfiguration(ContainerConfiguration containerConfiguration)
Set the container |
|
Virtual |
withDataDisks(List<DataDisk> dataDisks)
Set the data |
|
Virtual |
withDiskEncryptionConfiguration(DiskEncryptionConfiguration diskEncryptionConfiguration)
Set the disk |
|
Virtual |
withExtensions(List<VMExtension> extensions)
Set the extensions property: If specified, the extensions mentioned in this configuration will be installed on each node. |
|
Virtual |
withImageReference(ImageReference imageReference)
Set the image |
|
Virtual |
withLicenseType(String licenseType)
Set the license |
|
Virtual |
withNodeAgentSkuId(String nodeAgentSkuId)
Set the node |
|
Virtual |
withNodePlacementConfiguration(NodePlacementConfiguration nodePlacementConfiguration)
Set the node |
|
Virtual |
withOsDisk(OSDisk osDisk)
Set the os |
|
Virtual |
withSecurityProfile(SecurityProfile securityProfile)
Set the security |
|
Virtual |
withServiceArtifactReference(ServiceArtifactReference serviceArtifactReference)
Set the service |
|
Virtual |
withWindowsConfiguration(WindowsConfiguration windowsConfiguration)
Set the windows |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineConfiguration
public VirtualMachineConfiguration()
Creates an instance of VirtualMachineConfiguration class.
Method Details
containerConfiguration
public ContainerConfiguration containerConfiguration()
Get the containerConfiguration property: 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<DataDisk> dataDisks()
Get the dataDisks property: This property must be specified if the compute nodes in the pool need to have empty data disks attached to them.
Returns:
diskEncryptionConfiguration
public DiskEncryptionConfiguration diskEncryptionConfiguration()
Get the diskEncryptionConfiguration property: If specified, encryption is performed on each node in the pool during node provisioning.
Returns:
extensions
public List<VMExtension> extensions()
Get the extensions property: If specified, the extensions mentioned in this configuration will be installed on each node.
Returns:
fromJson
public static VirtualMachineConfiguration fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
imageReference
public ImageReference imageReference()
Get the imageReference property: 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.
Returns:
licenseType
public String licenseType()
Get the licenseType property: 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 nodeAgentSkuId property: 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:
nodePlacementConfiguration
public NodePlacementConfiguration nodePlacementConfiguration()
Get the nodePlacementConfiguration property: This configuration will specify rules on how nodes in the pool will be physically allocated.
Returns:
osDisk
public OSDisk osDisk()
Get the osDisk property: Contains configuration for ephemeral OSDisk settings.
Returns:
securityProfile
public SecurityProfile securityProfile()
Get the securityProfile property: Specifies the security profile settings for the virtual machine or virtual machine scale set.
Returns:
serviceArtifactReference
public ServiceArtifactReference serviceArtifactReference()
Get the serviceArtifactReference property: The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}.
Returns:
toJson
validate
public void validate()
Validates the instance.
windowsConfiguration
public WindowsConfiguration windowsConfiguration()
Get the windowsConfiguration property: This property must not be specified if the imageReference specifies a Linux OS image.
Returns:
withContainerConfiguration
public VirtualMachineConfiguration withContainerConfiguration(ContainerConfiguration containerConfiguration)
Set the containerConfiguration property: 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<DataDisk> dataDisks)
Set the dataDisks property: This property must be specified if the compute nodes in the pool need to have empty data disks attached to them.
Parameters:
Returns:
withDiskEncryptionConfiguration
public VirtualMachineConfiguration withDiskEncryptionConfiguration(DiskEncryptionConfiguration diskEncryptionConfiguration)
Set the diskEncryptionConfiguration property: If specified, encryption is performed on each node in the pool during node provisioning.
Parameters:
Returns:
withExtensions
public VirtualMachineConfiguration withExtensions(List<VMExtension> extensions)
Set the extensions property: If specified, the extensions mentioned in this configuration will be installed on each node.
Parameters:
Returns:
withImageReference
public VirtualMachineConfiguration withImageReference(ImageReference imageReference)
Set the imageReference property: 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.
Parameters:
Returns:
withLicenseType
public VirtualMachineConfiguration withLicenseType(String licenseType)
Set the licenseType property: 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 nodeAgentSkuId property: 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:
withNodePlacementConfiguration
public VirtualMachineConfiguration withNodePlacementConfiguration(NodePlacementConfiguration nodePlacementConfiguration)
Set the nodePlacementConfiguration property: This configuration will specify rules on how nodes in the pool will be physically allocated.
Parameters:
Returns:
withOsDisk
public VirtualMachineConfiguration withOsDisk(OSDisk osDisk)
Set the osDisk property: Contains configuration for ephemeral OSDisk settings.
Parameters:
Returns:
withSecurityProfile
public VirtualMachineConfiguration withSecurityProfile(SecurityProfile securityProfile)
Set the securityProfile property: Specifies the security profile settings for the virtual machine or virtual machine scale set.
Parameters:
Returns:
withServiceArtifactReference
public VirtualMachineConfiguration withServiceArtifactReference(ServiceArtifactReference serviceArtifactReference)
Set the serviceArtifactReference property: The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}.
Parameters:
Returns:
withWindowsConfiguration
public VirtualMachineConfiguration withWindowsConfiguration(WindowsConfiguration windowsConfiguration)
Set the windowsConfiguration property: This property must not be specified if the imageReference specifies a Linux OS image.
Parameters:
Returns: