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: Optional[azure.mgmt.batch.models._models_py3.WindowsConfiguration] = None, data_disks: Optional[List[azure.mgmt.batch.models._models_py3.DataDisk]] = None, license_type: Optional[str] = None, container_configuration: Optional[azure.mgmt.batch.models._models_py3.ContainerConfiguration] = None, disk_encryption_configuration: Optional[azure.mgmt.batch.models._models_py3.DiskEncryptionConfiguration] = None, node_placement_configuration: Optional[azure.mgmt.batch.models._models_py3.NodePlacementConfiguration] = None, extensions: Optional[List[azure.mgmt.batch.models._models_py3.VMExtension]] = None, os_disk: Optional[azure.mgmt.batch.models._models_py3.OSDisk] = None, **kwargs)
Variables
- image_reference
- ImageReference
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. 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
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.
- license_type
- str
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
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
If specified, encryption is performed on each node in the pool during node provisioning.
- node_placement_configuration
- NodePlacementConfiguration
This configuration will specify rules on how nodes in the pool will be physically allocated.
- extensions
- list[VMExtension]
If specified, the extensions mentioned in this configuration will be installed on each node.
- os_disk
- OSDisk
Contains configuration for ephemeral OSDisk settings.
Feedback
Submit and view feedback for