### YamlMime:JavaType uid: "com.microsoft.azure.management.batch.NetworkConfiguration" fullName: "com.microsoft.azure.management.batch.NetworkConfiguration" name: "NetworkConfiguration" nameWithType: "NetworkConfiguration" summary: "The network configuration for a pool." inheritances: - "" inheritedClassMethods: - classRef: "" methodsRef: - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" syntax: "public class **NetworkConfiguration**" constructors: - uid: "com.microsoft.azure.management.batch.NetworkConfiguration.NetworkConfiguration()" fullName: "com.microsoft.azure.management.batch.NetworkConfiguration.NetworkConfiguration()" name: "NetworkConfiguration()" nameWithType: "NetworkConfiguration.NetworkConfiguration()" syntax: "public NetworkConfiguration()" methods: - uid: "com.microsoft.azure.management.batch.NetworkConfiguration.endpointConfiguration()" fullName: "com.microsoft.azure.management.batch.NetworkConfiguration.endpointConfiguration()" name: "endpointConfiguration()" nameWithType: "NetworkConfiguration.endpointConfiguration()" summary: "Get pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property." syntax: "public PoolEndpointConfiguration endpointConfiguration()" desc: "Get pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property." returns: description: "the endpointConfiguration value" type: "" - uid: "com.microsoft.azure.management.batch.NetworkConfiguration.publicIPAddressConfiguration()" fullName: "com.microsoft.azure.management.batch.NetworkConfiguration.publicIPAddressConfiguration()" name: "publicIPAddressConfiguration()" nameWithType: "NetworkConfiguration.publicIPAddressConfiguration()" summary: "Get this property is only supported on Pools with the virtualMachineConfiguration property." syntax: "public PublicIPAddressConfiguration publicIPAddressConfiguration()" desc: "Get this property is only supported on Pools with the virtualMachineConfiguration property." returns: description: "the publicIPAddressConfiguration value" type: "" - uid: "com.microsoft.azure.management.batch.NetworkConfiguration.subnetId()" fullName: "com.microsoft.azure.management.batch.NetworkConfiguration.subnetId()" name: "subnetId()" nameWithType: "NetworkConfiguration.subnetId()" summary: "Get the virtual network must be in the same region and subscription as the Azure Batch account." syntax: "public String subnetId()" desc: "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 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. For pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For cloudServiceConfiguration pools, only 'classic' VNETs are supported. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics\\#virtual-network-vnet-and-firewall-configuration." returns: description: "the subnetId value" type: "" - uid: "com.microsoft.azure.management.batch.NetworkConfiguration.withEndpointConfiguration(com.microsoft.azure.management.batch.PoolEndpointConfiguration)" fullName: "com.microsoft.azure.management.batch.NetworkConfiguration.withEndpointConfiguration(PoolEndpointConfiguration endpointConfiguration)" name: "withEndpointConfiguration(PoolEndpointConfiguration endpointConfiguration)" nameWithType: "NetworkConfiguration.withEndpointConfiguration(PoolEndpointConfiguration endpointConfiguration)" summary: "Set pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property." parameters: - description: "the endpointConfiguration value to set" name: "endpointConfiguration" type: "" syntax: "public NetworkConfiguration withEndpointConfiguration(PoolEndpointConfiguration endpointConfiguration)" desc: "Set pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property." returns: description: "the NetworkConfiguration object itself." type: "" - uid: "com.microsoft.azure.management.batch.NetworkConfiguration.withPublicIPAddressConfiguration(com.microsoft.azure.management.batch.PublicIPAddressConfiguration)" fullName: "com.microsoft.azure.management.batch.NetworkConfiguration.withPublicIPAddressConfiguration(PublicIPAddressConfiguration publicIPAddressConfiguration)" name: "withPublicIPAddressConfiguration(PublicIPAddressConfiguration publicIPAddressConfiguration)" nameWithType: "NetworkConfiguration.withPublicIPAddressConfiguration(PublicIPAddressConfiguration publicIPAddressConfiguration)" summary: "Set this property is only supported on Pools with the virtualMachineConfiguration property." parameters: - description: "the publicIPAddressConfiguration value to set" name: "publicIPAddressConfiguration" type: "" syntax: "public NetworkConfiguration withPublicIPAddressConfiguration(PublicIPAddressConfiguration publicIPAddressConfiguration)" desc: "Set this property is only supported on Pools with the virtualMachineConfiguration property." returns: description: "the NetworkConfiguration object itself." type: "" - uid: "com.microsoft.azure.management.batch.NetworkConfiguration.withSubnetId(java.lang.String)" fullName: "com.microsoft.azure.management.batch.NetworkConfiguration.withSubnetId(String subnetId)" name: "withSubnetId(String subnetId)" nameWithType: "NetworkConfiguration.withSubnetId(String subnetId)" summary: "Set the virtual network must be in the same region and subscription as the Azure Batch account." parameters: - description: "the subnetId value to set" name: "subnetId" type: "" syntax: "public NetworkConfiguration withSubnetId(String subnetId)" desc: "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 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. For pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For cloudServiceConfiguration pools, only 'classic' VNETs are supported. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics\\#virtual-network-vnet-and-firewall-configuration." returns: description: "the NetworkConfiguration object itself." type: "" type: "class" desc: "The network configuration for a pool." metadata: {} package: "com.microsoft.azure.management.batch" artifact: com.microsoft.azure:azure-mgmt-batch:1.41.4