InboundNatRule Class
A rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load balancer.
Constructor
InboundNatRule(*, transport_protocol: str | TransportProtocol | None = None, frontend_port: int | None = None, backend_port: int | None = None, **kwargs)
Parameters
Name | Description |
---|---|
transport_protocol
Required
|
The transport protocol for the endpoint. Possible values include: "Tcp", "Udp". |
frontend_port
Required
|
The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically. |
backend_port
Required
|
The port to which the external traffic will be redirected. |
Keyword-Only Parameters
Name | Description |
---|---|
transport_protocol
|
Default value: None
|
frontend_port
|
Default value: None
|
backend_port
|
Default value: None
|