NetworkConfiguration Class
- java.
lang. Object - com.
azure. compute. batch. models. NetworkConfiguration
- com.
Implements
public final class NetworkConfiguration
implements JsonSerializable<NetworkConfiguration>
The network configuration for a Pool.
Constructor Summary
| Constructor | Description |
|---|---|
| NetworkConfiguration() |
Creates an instance of Network |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Network |
fromJson(JsonReader jsonReader)
Reads an instance of Network |
|
Dynamic |
getDynamicVnetAssignmentScope()
Get the dynamic |
|
Batch |
getEndpointConfiguration()
Get the endpoint |
|
Batch |
getPublicIpAddressConfiguration()
Get the public |
| String |
getSubnetId()
Get the subnet |
| Boolean |
isEnableAcceleratedNetworking()
Get the enable |
|
Network |
setDynamicVnetAssignmentScope(DynamicVNetAssignmentScope dynamicVnetAssignmentScope)
Set the dynamic |
|
Network |
setEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)
Set the enable |
|
Network |
setEndpointConfiguration(BatchPoolEndpointConfiguration endpointConfiguration)
Set the endpoint |
|
Network |
setPublicIpAddressConfiguration(BatchPublicIpAddressConfiguration publicIpAddressConfiguration)
Set the public |
|
Network |
setSubnetId(String subnetId)
Set the subnet |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
NetworkConfiguration
public NetworkConfiguration()
Creates an instance of NetworkConfiguration class.
Method Details
fromJson
public static NetworkConfiguration fromJson(JsonReader jsonReader)
Reads an instance of NetworkConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
getDynamicVnetAssignmentScope
public DynamicVNetAssignmentScope getDynamicVnetAssignmentScope()
Get the dynamicVnetAssignmentScope property: The scope of dynamic vnet assignment.
Returns:
getEndpointConfiguration
public BatchPoolEndpointConfiguration getEndpointConfiguration()
Get the endpointConfiguration property: The configuration for endpoints on Compute Nodes in the Batch Pool.
Returns:
getPublicIpAddressConfiguration
public BatchPublicIpAddressConfiguration getPublicIpAddressConfiguration()
Get the publicIpAddressConfiguration property: The Public IPAddress configuration for Compute Nodes in the Batch Pool.
Returns:
getSubnetId
public String getSubnetId()
Get the subnetId property: The ARM resource identifier of the virtual network subnet which the Compute Nodes of the Pool will join. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. 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, including ports 29876 and 29877. Also enable outbound connections to Azure Storage on port 443. For more details see: https://learn.microsoft.com/azure/batch/nodes-and-pools\#virtual-network-vnet-and-firewall-configuration.
Returns:
isEnableAcceleratedNetworking
public Boolean isEnableAcceleratedNetworking()
Get the enableAcceleratedNetworking property: Whether this pool should 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://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview.
Returns:
setDynamicVnetAssignmentScope
public NetworkConfiguration setDynamicVnetAssignmentScope(DynamicVNetAssignmentScope dynamicVnetAssignmentScope)
Set the dynamicVnetAssignmentScope property: The scope of dynamic vnet assignment.
Parameters:
Returns:
setEnableAcceleratedNetworking
public NetworkConfiguration setEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)
Set the enableAcceleratedNetworking property: Whether this pool should 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://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview.
Parameters:
Returns:
setEndpointConfiguration
public NetworkConfiguration setEndpointConfiguration(BatchPoolEndpointConfiguration endpointConfiguration)
Set the endpointConfiguration property: The configuration for endpoints on Compute Nodes in the Batch Pool.
Parameters:
Returns:
setPublicIpAddressConfiguration
public NetworkConfiguration setPublicIpAddressConfiguration(BatchPublicIpAddressConfiguration publicIpAddressConfiguration)
Set the publicIpAddressConfiguration property: The Public IPAddress configuration for Compute Nodes in the Batch Pool.
Parameters:
Returns:
setSubnetId
public NetworkConfiguration setSubnetId(String subnetId)
Set the subnetId property: The ARM resource identifier of the virtual network subnet which the Compute Nodes of the Pool will join. This is of the form /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{subnet}. 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, including ports 29876 and 29877. Also enable outbound connections to Azure Storage on port 443. For more details see: https://learn.microsoft.com/azure/batch/nodes-and-pools\#virtual-network-vnet-and-firewall-configuration.
Parameters:
Returns: