NetworkConfiguration Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. NetworkConfiguration
- com.
public class NetworkConfiguration
The network configuration for a pool.
Method Summary
Modifier and Type | Method and Description |
---|---|
Dynamic |
dynamicVNetAssignmentScope()
Get possible values include: 'none', 'job'. |
Pool |
endpointConfiguration()
Get pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property. |
String |
subnetId()
Get 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 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. For pools created with virtualMachineConfiguration only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported, but for pools created with cloudServiceConfiguration both ARM and classic virtual networks are supported. For more details, see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. |
Network |
withDynamicVNetAssignmentScope(DynamicVNetAssignmentScope dynamicVNetAssignmentScope)
Set possible values include: 'none', 'job'. |
Network |
withEndpointConfiguration(PoolEndpointConfiguration endpointConfiguration)
Set pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property. |
Network |
withSubnetId(String subnetId)
Set 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 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. For pools created with virtualMachineConfiguration only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported, but for pools created with cloudServiceConfiguration both ARM and classic virtual networks are supported. For more details, see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. |
Method Details
dynamicVNetAssignmentScope
public DynamicVNetAssignmentScope dynamicVNetAssignmentScope()
Get possible values include: 'none', 'job'.
Returns:
endpointConfiguration
public PoolEndpointConfiguration endpointConfiguration()
Get pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property.
Returns:
subnetId
public String subnetId()
Get 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 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. For pools created with virtualMachineConfiguration only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported, but for pools created with cloudServiceConfiguration both ARM and classic virtual networks are supported. For more details, see: https://docs.microsoft.com/en-us/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:
withEndpointConfiguration
public NetworkConfiguration withEndpointConfiguration(PoolEndpointConfiguration endpointConfiguration)
Set pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property.
Parameters:
Returns:
withSubnetId
public NetworkConfiguration withSubnetId(String subnetId)
Set 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 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. For pools created with virtualMachineConfiguration only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported, but for pools created with cloudServiceConfiguration both ARM and classic virtual networks are supported. For more details, see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.
Parameters:
Returns:
Applies to
Azure SDK for Java