< Back

Get-AzureRmLoadBalancerInboundNatRuleConfig

Tue Jan 29, 2019 9:54 pm

NAME Get-AzureRmLoadBalancerInboundNatRuleConfig



SYNOPSIS

Gets an inbound NAT rule configuration for a load balancer.





SYNTAX

Get-AzureRmLoadBalancerInboundNatRuleConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> [-Name <String>]

[<CommonParameters>]





DESCRIPTION

The Get-AzureRmLoadBalancerInboundNatRuleConfig cmdlet gets one or more inbound network address translation (NAT) rules in an Azure load balancer.





PARAMETERS

-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



-LoadBalancer <PSLoadBalancer>

Specifies the load balancer that is associated with the inbound NAT rule configuration to get.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Name <String>

Specifies the name of the inbound NAT rule configuration to get.



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

PSLoadBalancer

Parameter 'LoadBalancer' accepts value of type 'PSLoadBalancer' from the pipeline





OUTPUTS

Microsoft.Azure.Commands.Network.Models.PSInboundNatRule







NOTES









Example 1: Get an inbound NAT rule configuration



PS C:\\>$slb = Get-AzureRmLoadBalancer -Name "MyLoadBalancer" -ResourceGroupName "MyResourceGroup"

PS C:\\> Get-AzureRmLoadBalancerInboundNatRuleConfig -Name "MyInboundNatRule1" -LoadBalancer $slb



The first command gets the load balancer named MyLoadBalancer, and stores it in the variable $slb.



The second command gets the associated NAT rule named MyInboundNatRule1 from the load balancer in $slb.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ruleconfig

Get-AzureRmLoadBalancer

New-AzureRmLoadBalancerInboundNatRuleConfig

Remove-AzureRmLoadBalancerInboundNatRuleConfig

Set-AzureRmLoadBalancerInboundNatRuleConfig