public class VirtualMachineConfiguration extends Object
| Constructor and Description |
|---|
VirtualMachineConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ContainerConfiguration |
containerConfiguration()
Get if specified, setup is performed on each node in the pool to allow tasks to run in containers.
|
List<DataDisk> |
dataDisks()
Get this property must be specified if the compute nodes in the pool need to have empty data disks attached to them.
|
DiskEncryptionConfiguration |
diskEncryptionConfiguration()
Get if specified, encryption is performed on each node in the pool during node provisioning.
|
List<VMExtension> |
extensions()
Get if specified, the extensions mentioned in this configuration will be installed on each node.
|
ImageReference |
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.
|
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.
|
NodePlacementConfiguration |
nodePlacementConfiguration()
Get this configuration will specify rules on how nodes in the pool will be physically allocated.
|
OSDisk |
osDisk()
Get contains configuration for ephemeral OSDisk settings.
|
WindowsConfiguration |
windowsConfiguration()
Get this property must not be specified if the imageReference specifies a Linux OS image.
|
VirtualMachineConfiguration |
withContainerConfiguration(ContainerConfiguration containerConfiguration)
Set if specified, setup is performed on each node in the pool to allow tasks to run in containers.
|
VirtualMachineConfiguration |
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.
|
VirtualMachineConfiguration |
withDiskEncryptionConfiguration(DiskEncryptionConfiguration diskEncryptionConfiguration)
Set if specified, encryption is performed on each node in the pool during node provisioning.
|
VirtualMachineConfiguration |
withExtensions(List<VMExtension> extensions)
Set if specified, the extensions mentioned in this configuration will be installed on each node.
|
VirtualMachineConfiguration |
withImageReference(ImageReference imageReference)
Set the imageReference value.
|
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.
|
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.
|
VirtualMachineConfiguration |
withNodePlacementConfiguration(NodePlacementConfiguration nodePlacementConfiguration)
Set this configuration will specify rules on how nodes in the pool will be physically allocated.
|
VirtualMachineConfiguration |
withOsDisk(OSDisk osDisk)
Set contains configuration for ephemeral OSDisk settings.
|
VirtualMachineConfiguration |
withWindowsConfiguration(WindowsConfiguration windowsConfiguration)
Set this property must not be specified if the imageReference specifies a Linux OS image.
|
public ImageReference imageReference()
public VirtualMachineConfiguration withImageReference(ImageReference imageReference)
imageReference - the imageReference value to setpublic String nodeAgentSkuId()
public VirtualMachineConfiguration withNodeAgentSkuId(String nodeAgentSkuId)
nodeAgentSkuId - the nodeAgentSkuId value to setpublic WindowsConfiguration windowsConfiguration()
public VirtualMachineConfiguration withWindowsConfiguration(WindowsConfiguration windowsConfiguration)
windowsConfiguration - the windowsConfiguration value to setpublic List<DataDisk> dataDisks()
public VirtualMachineConfiguration withDataDisks(List<DataDisk> dataDisks)
dataDisks - the dataDisks value to setpublic String licenseType()
public VirtualMachineConfiguration withLicenseType(String licenseType)
licenseType - the licenseType value to setpublic ContainerConfiguration containerConfiguration()
public VirtualMachineConfiguration withContainerConfiguration(ContainerConfiguration containerConfiguration)
containerConfiguration - the containerConfiguration value to setpublic DiskEncryptionConfiguration diskEncryptionConfiguration()
public VirtualMachineConfiguration withDiskEncryptionConfiguration(DiskEncryptionConfiguration diskEncryptionConfiguration)
diskEncryptionConfiguration - the diskEncryptionConfiguration value to setpublic NodePlacementConfiguration nodePlacementConfiguration()
public VirtualMachineConfiguration withNodePlacementConfiguration(NodePlacementConfiguration nodePlacementConfiguration)
nodePlacementConfiguration - the nodePlacementConfiguration value to setpublic List<VMExtension> extensions()
public VirtualMachineConfiguration withExtensions(List<VMExtension> extensions)
extensions - the extensions value to setpublic OSDisk osDisk()
public VirtualMachineConfiguration withOsDisk(OSDisk osDisk)
osDisk - the osDisk value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/