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

Sets the goal state for a front-end IP configuration in a load balancer.

Syntax

Set-AzureRmLoadBalancerFrontendIpConfig
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -LoadBalancer <PSLoadBalancer>
   -Name <String>
   [-PrivateIpAddress <String>]
   -Subnet <PSSubnet>
   [<CommonParameters>]
Set-AzureRmLoadBalancerFrontendIpConfig
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -LoadBalancer <PSLoadBalancer>
   -Name <String>
   [-PrivateIpAddress <String>]
   -SubnetId <String>
   [<CommonParameters>]
Set-AzureRmLoadBalancerFrontendIpConfig
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -LoadBalancer <PSLoadBalancer>
   -Name <String>
   -PublicIpAddress <PSPublicIpAddress>
   [<CommonParameters>]
Set-AzureRmLoadBalancerFrontendIpConfig
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -LoadBalancer <PSLoadBalancer>
   -Name <String>
   -PublicIpAddressId <String>
   [<CommonParameters>]

Description

The Set-AzureRmLoadBalancerFrontendIpConfig cmdlet sets the goal state for a front-end IP configuration in an Azure load balancer.

Examples

Example 1: Modify the front-end IP configuration of a load balancer

PS C:\>$Subnet = Get-AzureRmVirtualNetwork -Name "MyVnet" -ResourceGroupName "MyResourceGroup" | Get-AzureRmVirtualNetworkSubnetConfig -Name "Subnet"
PS C:\> $slb = Get-AzureRmLoadBalancer -Name "MyLoadBalancer" -ResourceGroupName "MyResourceGroup"
PS C:\> $slb | Add-AzureRmLoadBalancerFrontendIpConfig -Name "NewFrontend" -Subnet $Subnet
PS C:\> $slb | Set-AzureRmLoadBalancerFrontendIpConfig -Name "NewFrontend" -Subnet $Subnet

The first command gets the virtual subnet named Subnet, and then stores it in the $Subnet variable.

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

The third command uses the pipeline operator to pass the load balancer in $slb to Add-AzureRmLoadBalancerFrontendIpConfig, which creates a front-end IP configuration named NewFrontend for $slb.

The fourth command passes the load balancer in $slb to Set-AzureRmLoadBalancerFrontendIpConfig, which saves and updates the front-end IP configuration.

Required Parameters

-LoadBalancer

Specifies a load balancer. This cmdlet sets the goal state for a front-end configuration for the load balancer that this parameter specifies.

Type:PSLoadBalancer
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies the name of the front-end IP configuration to set.

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

Specifies the PublicIpAddress object that is associated with the front-end IP configuration to set.

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

Specifies the ID of the PublicIpAddress object that is associated with the front-end IP configuration that this cmdlet sets.

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

Specifies the Subnet object that contains the front-end IP configuration that this cmdlet sets.

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

Specifies the ID of the subnet that contains the front-end IP configuration that this cmdlet sets.

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

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PrivateIpAddress

Specifies the private IP address of the load balancer that is associated with the front-end IP configuration to set. 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