ArmBatchModelFactory.BatchInboundNatPool Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A inbound NAT pool that can be used to address specific ports on compute nodes in a Batch pool externally.
public static Azure.ResourceManager.Batch.Models.BatchInboundNatPool BatchInboundNatPool(string name = default, Azure.ResourceManager.Batch.Models.BatchInboundEndpointProtocol protocol = Azure.ResourceManager.Batch.Models.BatchInboundEndpointProtocol.Tcp, int backendPort = 0, int frontendPortRangeStart = 0, int frontendPortRangeEnd = 0, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Batch.Models.BatchNetworkSecurityGroupRule> networkSecurityGroupRules = default);
static member BatchInboundNatPool : string * Azure.ResourceManager.Batch.Models.BatchInboundEndpointProtocol * int * int * int * seq<Azure.ResourceManager.Batch.Models.BatchNetworkSecurityGroupRule> -> Azure.ResourceManager.Batch.Models.BatchInboundNatPool
Public Shared Function BatchInboundNatPool (Optional name As String = Nothing, Optional protocol As BatchInboundEndpointProtocol = Azure.ResourceManager.Batch.Models.BatchInboundEndpointProtocol.Tcp, Optional backendPort As Integer = 0, Optional frontendPortRangeStart As Integer = 0, Optional frontendPortRangeEnd As Integer = 0, Optional networkSecurityGroupRules As IEnumerable(Of BatchNetworkSecurityGroupRule) = Nothing) As BatchInboundNatPool
Parameters
- name
- String
The name must be unique within a Batch pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400.
- protocol
- BatchInboundEndpointProtocol
The protocol of the endpoint.
- backendPort
- Int32
This must be unique within a Batch pool. Acceptable values are between 1 and 65535 except for 29876 and 29877 as these are reserved. If any reserved values are provided the request fails with HTTP status code 400.
- frontendPortRangeStart
- Int32
Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within a pool must be distinct and cannot overlap. If any reserved or overlapping values are provided the request fails with HTTP status code 400.
- frontendPortRangeEnd
- Int32
Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service. All ranges within a pool must be distinct and cannot overlap. If any reserved or overlapping values are provided the request fails with HTTP status code 400.
- networkSecurityGroupRules
- IEnumerable<BatchNetworkSecurityGroupRule>
The maximum number of rules that can be specified across all the endpoints on a Batch pool is 25. If no network security group rules are specified, a default rule will be created to allow inbound access to the specified backendPort. If the maximum number of network security group rules is exceeded the request fails with HTTP status code 400.
Returns
A new BatchInboundNatPool instance for mocking.