Machine Configuration 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.
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)
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.
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.
This property must not be specified if the imageReference specifies a Linux OS image.
This property must be specified if the compute nodes in the pool need to have empty data disks attached to them.
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.
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.
If specified, encryption is performed on each node in the pool during node provisioning.
This configuration will specify rules on how nodes in the pool will be physically allocated.