VirtualMachineConfiguration Class

The configuration for compute nodes in a pool based on the Azure Virtual Machines infrastructure.

All required parameters must be populated in order to send to Azure.

Inheritance
VirtualMachineConfiguration

Constructor

VirtualMachineConfiguration(*, image_reference: azure.mgmt.batch.models._models_py3.ImageReference, node_agent_sku_id: str, windows_configuration: typing.Union[_ForwardRef('WindowsConfiguration'), NoneType] = None, data_disks: typing.Union[typing.List[_ForwardRef('DataDisk')], NoneType] = None, license_type: typing.Union[str, NoneType] = None, container_configuration: typing.Union[_ForwardRef('ContainerConfiguration'), NoneType] = None, disk_encryption_configuration: typing.Union[_ForwardRef('DiskEncryptionConfiguration'), NoneType] = None, node_placement_configuration: typing.Union[_ForwardRef('NodePlacementConfiguration'), NoneType] = None, extensions: typing.Union[typing.List[_ForwardRef('VMExtension')], NoneType] = None, **kwargs)

Parameters

image_reference
ImageReference
Required

Required. 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.

node_agent_sku_id
str
Required

Required. 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_configuration
WindowsConfiguration
Required

This property must not be specified if the imageReference specifies a Linux OS image.

data_disks
list[DataDisk]
Required

This property must be specified if the compute nodes in the pool need to have empty data disks attached to them.

license_type
str
Required

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.

container_configuration
ContainerConfiguration
Required

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.

disk_encryption_configuration
DiskEncryptionConfiguration
Required

If specified, encryption is performed on each node in the pool during node provisioning.

node_placement_configuration
NodePlacementConfiguration
Required

This configuration will specify rules on how nodes in the pool will be physically allocated.

extensions
list[VMExtension]
Required

If specified, the extensions mentioned in this configuration will be installed on each node.