NetworkConfiguration Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. NetworkConfiguration
- com.
public class NetworkConfiguration
The network configuration for a Pool.
Constructor Summary
Constructor | Description | |
---|---|---|
NetworkConfiguration() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Dynamic |
dynamicVNetAssignmentScope()
Get possible values include: 'none', 'job'. |
Boolean |
enableAcceleratedNetworking()
Get accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. |
Pool |
endpointConfiguration()
Get the endpoint |
Public |
publicIPAddressConfiguration()
Get the public |
String |
subnetId()
Get the virtual network must be in the same region and subscription as the Azure Batch Account. |
Network |
withDynamicVNetAssignmentScope(DynamicVNetAssignmentScope dynamicVNetAssignmentScope)
Set possible values include: 'none', 'job'. |
Network |
withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)
Set accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. |
Network |
withEndpointConfiguration(PoolEndpointConfiguration endpointConfiguration)
Set the endpoint |
Network |
withPublicIPAddressConfiguration(PublicIPAddressConfiguration publicIPAddressConfiguration)
Set the public |
Network |
withSubnetId(String subnetId)
Set the virtual network must be in the same region and subscription as the Azure Batch Account. |
Methods inherited from java.lang.Object
Constructor Details
NetworkConfiguration
public NetworkConfiguration()
Method Details
dynamicVNetAssignmentScope
public DynamicVNetAssignmentScope dynamicVNetAssignmentScope()
Get possible values include: 'none', 'job'.
Returns:
enableAcceleratedNetworking
public Boolean enableAcceleratedNetworking()
Get 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://video2.skills-academy.com/azure/virtual-network/accelerated-networking-overview.
Returns:
endpointConfiguration
public PoolEndpointConfiguration endpointConfiguration()
Get the endpointConfiguration value.
Returns:
publicIPAddressConfiguration
public PublicIPAddressConfiguration publicIPAddressConfiguration()
Get the publicIPAddressConfiguration value.
Returns:
subnetId
public String subnetId()
Get 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 Compute Nodes in the Pool. If the subnet doesn't have enough free IP addresses, the Pool will partially allocate 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 Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. Only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported. 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/azure/batch/batch-api-basics\#virtual-network-vnet-and-firewall-configuration.
Returns:
withDynamicVNetAssignmentScope
public NetworkConfiguration withDynamicVNetAssignmentScope(DynamicVNetAssignmentScope dynamicVNetAssignmentScope)
Set possible values include: 'none', 'job'.
Parameters:
Returns:
withEnableAcceleratedNetworking
public NetworkConfiguration withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)
Set 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://video2.skills-academy.com/azure/virtual-network/accelerated-networking-overview.
Parameters:
Returns:
withEndpointConfiguration
public NetworkConfiguration withEndpointConfiguration(PoolEndpointConfiguration endpointConfiguration)
Set the endpointConfiguration value.
Parameters:
Returns:
withPublicIPAddressConfiguration
public NetworkConfiguration withPublicIPAddressConfiguration(PublicIPAddressConfiguration publicIPAddressConfiguration)
Set the publicIPAddressConfiguration value.
Parameters:
Returns:
withSubnetId
public NetworkConfiguration withSubnetId(String subnetId)
Set 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 Compute Nodes in the Pool. If the subnet doesn't have enough free IP addresses, the Pool will partially allocate 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 Nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. Only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported. 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/azure/batch/batch-api-basics\#virtual-network-vnet-and-firewall-configuration.
Parameters:
Returns:
Applies to
Azure SDK for Java