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-AzureLoadBalancerFrontendIpConfig

Add-AzureLoadBalancerFrontendIpConfig

microsoft.azure.commands.network.dll

Synopsis

Add a new Frontend Ip for an Azure Load Balancer

Syntax

Add-AzureLoadBalancerFrontendIpConfig [-Name] [-LoadBalancer] [-PrivateIpAddress] [-SubnetId] [-PublicIpAddressId] [-Profile] [<CommonParameters>]

Add-AzureLoadBalancerFrontendIpConfig [-Name] [-LoadBalancer] [-PrivateIpAddress] [-Subnet] [-PublicIpAddress] [-Profile] [<CommonParameters>]

Detailed Description

Add a new Frontend Ip for an Azure Load Balancer

Parameters

-Name <String>

The name of the Frontend Ip.

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 Frontend Ip will be created.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-PrivateIpAddress <String>

The Public Ip Address object to associate with this Frontend.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-SubnetId <String>

The Id of the Subnet in which this Frontend Ip will be created.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PublicIpAddressId <String>

The Id of the Public Ip Address to associate with this Frontend Ip.

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

-Subnet <PSSubnet>

The Subnet object which this Frontend Ip will be created.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PublicIpAddress <PSPublicIpAddress>

The Public Ip Address to associate with this Frontend Ip.

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 --------------------------

Adds a FrontendIpConfig to the loadbalancer with a dynamic privateIPAddress from the specified subnet

PS C:\> $subnet = Get-AzureVirtualNetwork -Name "myVnet" -ResourceGroupName "myRg" | Get-AzureVirtualNetworkSubnetConfig -name "mysubnet"

          Get-AzureLoadBalancer -Name "myLB" -ResourceGroupName "NrpTest" | Add-AzureLoadBalancerFrontendIpConfig -Name "frontendName" -Subnet $subnet | Set-AzureLoadBalancer

-------------------------- Example 2 --------------------------

Adds a FrontendIpConfig to the loadbalancer with a static privateIPAddress from the specified subnet

PS C:\> $subnet = Get-AzureVirtualNetwork -Name "myVnet" -ResourceGroupName "myRg" | Get-AzureVirtualNetworkSubnetConfig -name "mysubnet"

          Get-AzureLoadBalancer -Name "myLB" -ResourceGroupName "NrpTest" | Add-AzureLoadBalancerFrontendIpConfig -Name "frontendName" -Subnet $subnet -PrivateIpAddress "10.0.1.6" | Set-AzureLoadBalancer

-------------------------- Example 3 --------------------------

Adds a FrontendIpConfig to the loadbalancer with a publicIP address

PS C:\> $publicip = Get-AzurePublicIpAddress -ResourceGroupName "myRG" -name "myPub"
          Get-AzureLoadBalancer -Name "myLB" -ResourceGroupName "NrpTest" | Add-AzureLoadBalancerFrontendIpConfig -Name "frontendName" -PublicIpAddress $publicip | Set-AzureLoadBalancer