NetworkConfiguration Class
The network configuration for a pool.
- Inheritance
-
azure.mgmt.batch._serialization.ModelNetworkConfiguration
Constructor
NetworkConfiguration(*, subnet_id: str | None = None, dynamic_vnet_assignment_scope: str | _models.DynamicVNetAssignmentScope = 'none', endpoint_configuration: _models.PoolEndpointConfiguration | None = None, public_ip_address_configuration: _models.PublicIPAddressConfiguration | None = None, enable_accelerated_networking: bool | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
subnet_id
|
The virtual network must be in the same region and subscription as the Azure Batch account. The specified subnet should have enough free IP addresses to accommodate the number of nodes in the pool. If the subnet doesn't have enough free IP addresses, the pool will partially allocate compute nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule tasks on the compute nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the compute nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the compute nodes to unusable. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. Enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Also enable outbound connections to Azure Storage on port 443. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. |
dynamic_vnet_assignment_scope
|
The scope of dynamic vnet assignment. Known values are: "none" and "job". Default value: none
|
endpoint_configuration
|
The endpoint configuration for a pool. |
public_ip_address_configuration
|
The public IP Address configuration of the networking configuration of a Pool. |
enable_accelerated_networking
|
Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. For more details, see: https://zcusa.951200.xyz/azure/virtual-network/accelerated-networking-overview. |
Variables
Name | Description |
---|---|
subnet_id
|
The virtual network must be in the same region and subscription as the Azure Batch account. The specified subnet should have enough free IP addresses to accommodate the number of nodes in the pool. If the subnet doesn't have enough free IP addresses, the pool will partially allocate compute nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule tasks on the compute nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the compute nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the compute nodes to unusable. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. Enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Also enable outbound connections to Azure Storage on port 443. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. |
dynamic_vnet_assignment_scope
|
The scope of dynamic vnet assignment. Known values are: "none" and "job". |
endpoint_configuration
|
The endpoint configuration for a pool. |
public_ip_address_configuration
|
The public IP Address configuration of the networking configuration of a Pool. |
enable_accelerated_networking
|
Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. For more details, see: https://zcusa.951200.xyz/azure/virtual-network/accelerated-networking-overview. |
Azure SDK for Python