New-​Azure​Rm​Load​Balancer​Frontend​Ip​Config

Creates a front-end IP configuration for a load balancer.

Syntax

New-AzureRmLoadBalancerFrontendIpConfig
   -Name <String>
   [-PrivateIpAddress <String>]
   -Subnet <PSSubnet>
   [<CommonParameters>]
New-AzureRmLoadBalancerFrontendIpConfig
   -Name <String>
   [-PrivateIpAddress <String>]
   -SubnetId <String>
   [<CommonParameters>]
New-AzureRmLoadBalancerFrontendIpConfig
   -Name <String>
   -PublicIpAddress <PSPublicIpAddress>
   [<CommonParameters>]
New-AzureRmLoadBalancerFrontendIpConfig
   -Name <String>
   -PublicIpAddressId <String>
   [<CommonParameters>]

Description

The New-AzureRmLoadBalancerFrontendIpConfig cmdlet creates a front-end IP configuration for an Azure load balancer.

Examples

Example 1: Create a front-end IP configuration for a load balancer

PS C:\>$publicip = New-AzureRmPublicIpAddress -ResourceGroupName "MyResourceGroup" -Name "MyPublicIP" -Location "West US" -AllocationMethod "Dynamic"
PS C:\> New-AzureRmLoadBalancerFrontendIpConfig -Name "FrontendIpConfig01" -PublicIpAddress $publicip

The first command creates a dynamic 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.

Required Parameters

-Name

Specifies the front-end IP configuration that this cmdlet creates.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PublicIpAddress

Specifies the PublicIpAddress object to associate with a front-end IP configuration.

Type:PSPublicIpAddress
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PublicIpAddressId

Specifies the ID of the PublicIpAddress object to associate with a front-end IP configuration.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Subnet

Specifies the Subnet object in which to create a front-end IP configuration.

Type:PSSubnet
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SubnetId

Specifies the ID of the subnet in which to create a front-end IP configuration.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-PrivateIpAddress

Specifies the private IP address of the load balancer. Specify this parameter only if you also specify the Subnet parameter.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False