< Back

Set-AzureRmLoadBalancerFrontendIpConfig

Tue Jan 29, 2019 9:58 pm

NAME Set-AzureRmLoadBalancerFrontendIpConfig



SYNOPSIS

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





SYNTAX

Set-AzureRmLoadBalancerFrontendIpConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> -Name <String>

[-PrivateIpAddress <String>] -Subnet <PSSubnet> [-Zone <System.Collections.Generic.List`1[System.String]>] [<CommonParameters>]



Set-AzureRmLoadBalancerFrontendIpConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> -Name <String>

[-PrivateIpAddress <String>] -SubnetId <String> [-Zone <System.Collections.Generic.List`1[System.String]>] [<CommonParameters>]



Set-AzureRmLoadBalancerFrontendIpConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> -Name <String> -PublicIpAddress

<PSPublicIpAddress> [-Zone <System.Collections.Generic.List`1[System.String]>] [<CommonParameters>]



Set-AzureRmLoadBalancerFrontendIpConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> -Name <String>

-PublicIpAddressId <String> [-Zone <System.Collections.Generic.List`1[System.String]>] [<CommonParameters>]





DESCRIPTION

The Set-AzureRmLoadBalancerFrontendIpConfig cmdlet sets the goal state for a front-end IP configuration 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 a load balancer. This cmdlet sets the goal state for a front-end configuration for the load balancer that this parameter specifies.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Name <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PrivateIpAddress <String>

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.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PublicIpAddress <PSPublicIpAddress>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PublicIpAddressId <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Subnet <PSSubnet>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-SubnetId <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Zone <System.Collections.Generic.List`1[System.String]>

A list of availability zones denoting the IP allocated for the resource needs to come from.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

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







NOTES









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.







RELATED LINKS

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

Add-AzureRmLoadBalancerFrontendIpConfig

Get-AzureRmLoadBalancer

Get-AzureRmLoadBalancerFrontendIpConfig

Get-AzureRmVirtualNetwork

New-AzureRmLoadBalancerFrontendIpConfig

Remove-AzureRmLoadBalancerFrontendIpConfig