Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Add-AzureLoadBalancerInboundNatRuleConfig

Add-AzureLoadBalancerInboundNatRuleConfig

microsoft.azure.commands.network.dll

Synopsis

Add a new Inbound NAT Rule to an Azure Load Balancer

Syntax

Add-AzureLoadBalancerInboundNatRuleConfig [-Name] [-LoadBalancer] [-FrontendIpConfigurationId] [-Protocol] [-FrontendPort] [-BackendPort] [-IdleTimeoutInMinutes] [-EnableFloatingIP] [-Profile] [<CommonParameters>]

Add-AzureLoadBalancerInboundNatRuleConfig [-Name] [-LoadBalancer] [-FrontendIpConfiguration] [-Protocol] [-FrontendPort] [-BackendPort] [-IdleTimeoutInMinutes] [-EnableFloatingIP] [-Profile] [<CommonParameters>]

Detailed Description

Add a new Inbound NAT Rule to an Azure Load Balancer

Parameters

-Name <String>

The name of the Inbound NAT Rule.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-LoadBalancer <PSLoadBalancer>

The Load Balancer in which this Inbound NAT Rule will be created.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-FrontendIpConfigurationId <String>

A list of Frontend Ip Id's to associate with this Inbound NAT Rule.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Protocol <String>

The protocol matched by this Inbound NAT Rule.

Options: Tcp or Udp.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-FrontendPort <Int32>

The frontend port matched by this rule.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-BackendPort <Int32>

The backend port for traffic matched by this rule.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-IdleTimeoutInMinutes <Int32>

The length of time in minutes for which state of conversations is maintained within the Load Balancer.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-EnableFloatingIP <SwitchParameter>

Enables Direct Server Return for this Load Balancer NAT Rule.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Profile <AzureProfile>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-FrontendIpConfiguration <PSFrontendIPConfiguration>

A list of Frontend Ips to associate with this Inbound NAT Rule.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-BackendIpConfigurationId <string>

The Id of a Backend Ip Configuration to associate with this Inbound NAT Rule.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-BackendIpConfiguration <psnetworkinterfaceipconfiguration>

The Backend Ip Configuration to associate with this Inbound NAT Rule.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1 --------------------------

PS C:\> $lb = Get-AzureLoadBalancer -Name "myLb" -ResourceGroupName "myRg"

          $lb | Add-AzureLoadBalancerInboundNatRuleConfig -Name "natRule" -FrontendIPConfiguration$lb.FrontendIPConfigurations[0] -BackendIpConfiguration $nic.IpConfigurations[0] -Protocol Tcp -FrontendPort 3350 -BackendPort 3350 -IdleTimeoutInSeconds 17 -EnableFloatingIP | Set-AzureLoadBalancer