< Back
New-AzureRmLoadBalancerInboundNatRuleConfig
Post
NAME New-AzureRmLoadBalancerInboundNatRuleConfig
SYNOPSIS
Creates an inbound NAT rule configuration for a load balancer.
SYNTAX
New-AzureRmLoadBalancerInboundNatRuleConfig [-BackendPort <Int32>] [-DefaultProfile <IAzureContextContainer>] [-EnableFloatingIP]
[-FrontendIpConfiguration <PSFrontendIPConfiguration>] [-FrontendPort <Int32>] [-IdleTimeoutInMinutes <Int32>] -Name <String> [-Protocol {Tcp |
Udp}] [<CommonParameters>]
New-AzureRmLoadBalancerInboundNatRuleConfig [-BackendPort <Int32>] [-DefaultProfile <IAzureContextContainer>] [-EnableFloatingIP]
[-FrontendIpConfigurationId <String>] [-FrontendPort <Int32>] [-IdleTimeoutInMinutes <Int32>] -Name <String> [-Protocol {Tcp | Udp}]
[<CommonParameters>]
DESCRIPTION
The New-AzureRmLoadBalancerInboundNatRuleConfig cmdlet creates an inbound network address translation (NAT) rule configuration for an Azure load
balancer.
PARAMETERS
-BackendPort <Int32>
Specifies the backend port for traffic that is matched by this rule configuration.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-EnableFloatingIP [<SwitchParameter>]
Indicates that this cmdlet enables a floating IP address for a rule configuration.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-FrontendIpConfiguration <PSFrontendIPConfiguration>
Specifies a list of front-end IP addresses to associate with a load balancer rule configuration.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-FrontendIpConfigurationId <String>
Specifies the ID for a front-end IP address configuration.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-FrontendPort <Int32>
Specifies the front-end port that is matched by a load balancer rule configuration.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-IdleTimeoutInMinutes <Int32>
Specifies the length of time, in minutes, for which the state of conversations is maintained in a load balancer.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the rule configuration that this cmdlet creates.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Protocol <String>
Specifies a protocol. The acceptable values for this parameter are:
- Tcp
- Udp
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Network.Models.PSInboundNatRule
NOTES
Example 1: Create an inbound NAT rule configuration for a load balancer
PS C:\\>$publicip = New-AzureRmPublicIpAddress -ResourceGroupName "MyResourceGroup" -Name "MyPublicIP" -Location "West US" -AllocationMethod
"Dynamic"
PS C:\\> $frontend = New-AzureRmLoadBalancerFrontendIpConfig -Name "FrontendIpConfig01" -PublicIpAddress $publicip
PS C:\\> New-AzureRmLoadBalancerInboundNatRuleConfig -Name "MyInboundNatRule" -FrontendIPConfiguration $frontend -Protocol "Tcp" -FrontendPort 3389
-BackendPort 3389
The first command creates a public IP address named MyPublicIP in the resource group named MyResourceGroup, and then stores it in the $publicip
variable.
The second command creates a front-end IP configuration named FrontendIpConfig01 using the public IP address in $publicip, and then stores it in
the $frontend variable.
The third command creates an inbound NAT rule configuration named MyInboundNatRule using the front-end object in $frontend. The TCP protocol is
specified and the front-end port is 3389, the same as the backend port in this case. The FrontendIpConfiguration , Procotol , FrontendPort , and
BackendPort parameters are all required to create an inbound NAT rule configuration.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ruleconfig
Add-AzureRmLoadBalancerInboundNatRuleConfig
Get-AzureRmLoadBalancerInboundNatRuleConfig
New-AzureRmLoadBalancerFrontendIpConfig
New-AzureRmPublicIpAddress
Remove-AzureRmLoadBalancerInboundNatRuleConfig
Set-AzureRmLoadBalancerInboundNatRuleConfig
SYNOPSIS
Creates an inbound NAT rule configuration for a load balancer.
SYNTAX
New-AzureRmLoadBalancerInboundNatRuleConfig [-BackendPort <Int32>] [-DefaultProfile <IAzureContextContainer>] [-EnableFloatingIP]
[-FrontendIpConfiguration <PSFrontendIPConfiguration>] [-FrontendPort <Int32>] [-IdleTimeoutInMinutes <Int32>] -Name <String> [-Protocol {Tcp |
Udp}] [<CommonParameters>]
New-AzureRmLoadBalancerInboundNatRuleConfig [-BackendPort <Int32>] [-DefaultProfile <IAzureContextContainer>] [-EnableFloatingIP]
[-FrontendIpConfigurationId <String>] [-FrontendPort <Int32>] [-IdleTimeoutInMinutes <Int32>] -Name <String> [-Protocol {Tcp | Udp}]
[<CommonParameters>]
DESCRIPTION
The New-AzureRmLoadBalancerInboundNatRuleConfig cmdlet creates an inbound network address translation (NAT) rule configuration for an Azure load
balancer.
PARAMETERS
-BackendPort <Int32>
Specifies the backend port for traffic that is matched by this rule configuration.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-EnableFloatingIP [<SwitchParameter>]
Indicates that this cmdlet enables a floating IP address for a rule configuration.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-FrontendIpConfiguration <PSFrontendIPConfiguration>
Specifies a list of front-end IP addresses to associate with a load balancer rule configuration.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-FrontendIpConfigurationId <String>
Specifies the ID for a front-end IP address configuration.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-FrontendPort <Int32>
Specifies the front-end port that is matched by a load balancer rule configuration.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-IdleTimeoutInMinutes <Int32>
Specifies the length of time, in minutes, for which the state of conversations is maintained in a load balancer.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the rule configuration that this cmdlet creates.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Protocol <String>
Specifies a protocol. The acceptable values for this parameter are:
- Tcp
- Udp
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Network.Models.PSInboundNatRule
NOTES
Example 1: Create an inbound NAT rule configuration for a load balancer
PS C:\\>$publicip = New-AzureRmPublicIpAddress -ResourceGroupName "MyResourceGroup" -Name "MyPublicIP" -Location "West US" -AllocationMethod
"Dynamic"
PS C:\\> $frontend = New-AzureRmLoadBalancerFrontendIpConfig -Name "FrontendIpConfig01" -PublicIpAddress $publicip
PS C:\\> New-AzureRmLoadBalancerInboundNatRuleConfig -Name "MyInboundNatRule" -FrontendIPConfiguration $frontend -Protocol "Tcp" -FrontendPort 3389
-BackendPort 3389
The first command creates a public IP address named MyPublicIP in the resource group named MyResourceGroup, and then stores it in the $publicip
variable.
The second command creates a front-end IP configuration named FrontendIpConfig01 using the public IP address in $publicip, and then stores it in
the $frontend variable.
The third command creates an inbound NAT rule configuration named MyInboundNatRule using the front-end object in $frontend. The TCP protocol is
specified and the front-end port is 3389, the same as the backend port in this case. The FrontendIpConfiguration , Procotol , FrontendPort , and
BackendPort parameters are all required to create an inbound NAT rule configuration.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ruleconfig
Add-AzureRmLoadBalancerInboundNatRuleConfig
Get-AzureRmLoadBalancerInboundNatRuleConfig
New-AzureRmLoadBalancerFrontendIpConfig
New-AzureRmPublicIpAddress
Remove-AzureRmLoadBalancerInboundNatRuleConfig
Set-AzureRmLoadBalancerInboundNatRuleConfig