< Back
Add-AzureRmLoadBalancerFrontendIpConfig
Post
NAME Add-AzureRmLoadBalancerFrontendIpConfig
SYNOPSIS
Adds a front-end IP configuration to a load balancer.
SYNTAX
Add-AzureRmLoadBalancerFrontendIpConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> -Name <String>
[-PrivateIpAddress <String>] -Subnet <PSSubnet> [-Zone <System.Collections.Generic.List`1[System.String]>] [<CommonParameters>]
Add-AzureRmLoadBalancerFrontendIpConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> -Name <String>
[-PrivateIpAddress <String>] -SubnetId <String> [-Zone <System.Collections.Generic.List`1[System.String]>] [<CommonParameters>]
Add-AzureRmLoadBalancerFrontendIpConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> -Name <String> -PublicIpAddress
<PSPublicIpAddress> [-Zone <System.Collections.Generic.List`1[System.String]>] [<CommonParameters>]
Add-AzureRmLoadBalancerFrontendIpConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> -Name <String>
-PublicIpAddressId <String> [-Zone <System.Collections.Generic.List`1[System.String]>] [<CommonParameters>]
DESCRIPTION
The Add-AzureRmLoadBalancerFrontendIpConifg cmdlet adds a front-end IP configuration to 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 LoadBalancer object. This cmdlet adds a front-end IP configuration to 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 add.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrivateIpAddress <String>
Specifies the private IP address to associate with a front-end IP configuration.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PublicIpAddress <PSPublicIpAddress>
Specifies the public IP address to associate with a front-end IP configuration.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PublicIpAddressId <String>
Specifes the ID of the public IP address in which to add a front-end IP configuration.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Subnet <PSSubnet>
Specifies the subnet object in which to add a front-end IP configuration.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-SubnetId <String>
Specifies the ID of the subnet in which to add a front-end IP configuration.
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 Add a front-end IP configuration with a dynamic IP address
PS C:\\>$Subnet = Get-AzureRmVirtualNetwork -Name "MyVnet" -ResourceGroupName "MyRg" | Get-AzureRmVirtualNetworkSubnetConfig -Name "MySubnet"
PS C:\\> Get-AzureRmLoadBalancer -Name "MyLB" -ResourceGroupName "NrpTest" | Add-AzureRmLoadBalancerFrontendIpConfig -Name "FrontendName" -Subnet
$Subnet | Set-AzureRmLoadBalancer
The first command gets the Azure virtual network named MyVnet and passes the result using the pipeline to the
Get-AzureRmVirtualNetworkSubnetConfig cmdlet to get the subnet named MySubnet. The command then stores the result in the variable named $Subnet.
The second command gets the load balancer named MyLB and passes the result to the Add-AzureRmLoadBalancerFrontendIpConfig cmdlet that adds a
front-end IP configuration to the load balancer with a dynamic private IP address from the subnet stored in the variable named $MySubnet.
Example 2 Add a front-end IP configuration with a static IP address
PS C:\\>$Subnet = Get-AzureRmVirtualNetwork -Name "MyVnet" -ResourceGroupName "RG001" | Get-AzureRmVirtualNetworkSubnetConfig -Name "MySubnet"
PS C:\\> Get-AzureRmLoadBalancer -Name "MyLB" -ResourceGroupName "NrpTest" | Add-AzureRmLoadBalancerFrontendIpConfig -Name "FrontendName" -Subnet
$Subnet -PrivateIpAddress "10.0.1.6" | Set-AzureRmLoadBalancer
The first command gets the Azure virtual network named MyVnet and passes the result using the pipeline to the
Get-AzureRmVirtualNetworkSubnetConfig cmdlet to get the subnet named MySubnet. The command then stores the result in the variable named $Subnet.
The second command gets the load balancer named MyLB and passes the result to the Add-AzureRmLoadBalancerFrontendIpConfig cmdlet that adds a
front-end IP configuration to the load balancer with a static private IP address from the subnet stored in the variable named $Subnet.
Example 3 Add a front-end IP configuration with a public IP address
PS C:\\>$PublicIp = Get-AzureRmPublicIpAddress -ResourceGroupName "myRG" -Name "MyPub"
PS C:\\> Get-AzureRmLoadBalancer -Name "MyLB" -ResourceGroupName "NrpTest" | Add-AzureRmLoadBalancerFrontendIpConfig -Name "FrontendName"
-PublicIpAddress $PublicIp | Set-AzureRmLoadBalancer
The first command gets the Azure public IP address named MyPub and stores the result in the variable named $PublicIp. The second command gets the
load balancer named MyLB and passes the result to the Add-AzureRmLoadBalancerFrontendIpConfig cmdlet that adds a front-end IP configuration to the
load balancer with public IP address stored in the variable named $PublicIp.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ndipconfig
Get-AzureRmLoadBalancerFrontendIpConfig
Get-AzureRmVirtualNetwork
Get-AzureRmVirtualNetworkSubnetConfig
New-AzureRmLoadBalancerFrontendIpConfig
Remove-AzureRmLoadBalancerFrontendIpConfig
Set-AzureRmLoadBalancerFrontendIpConfig
SYNOPSIS
Adds a front-end IP configuration to a load balancer.
SYNTAX
Add-AzureRmLoadBalancerFrontendIpConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> -Name <String>
[-PrivateIpAddress <String>] -Subnet <PSSubnet> [-Zone <System.Collections.Generic.List`1[System.String]>] [<CommonParameters>]
Add-AzureRmLoadBalancerFrontendIpConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> -Name <String>
[-PrivateIpAddress <String>] -SubnetId <String> [-Zone <System.Collections.Generic.List`1[System.String]>] [<CommonParameters>]
Add-AzureRmLoadBalancerFrontendIpConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> -Name <String> -PublicIpAddress
<PSPublicIpAddress> [-Zone <System.Collections.Generic.List`1[System.String]>] [<CommonParameters>]
Add-AzureRmLoadBalancerFrontendIpConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> -Name <String>
-PublicIpAddressId <String> [-Zone <System.Collections.Generic.List`1[System.String]>] [<CommonParameters>]
DESCRIPTION
The Add-AzureRmLoadBalancerFrontendIpConifg cmdlet adds a front-end IP configuration to 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 LoadBalancer object. This cmdlet adds a front-end IP configuration to 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 add.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrivateIpAddress <String>
Specifies the private IP address to associate with a front-end IP configuration.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PublicIpAddress <PSPublicIpAddress>
Specifies the public IP address to associate with a front-end IP configuration.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PublicIpAddressId <String>
Specifes the ID of the public IP address in which to add a front-end IP configuration.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Subnet <PSSubnet>
Specifies the subnet object in which to add a front-end IP configuration.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-SubnetId <String>
Specifies the ID of the subnet in which to add a front-end IP configuration.
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 Add a front-end IP configuration with a dynamic IP address
PS C:\\>$Subnet = Get-AzureRmVirtualNetwork -Name "MyVnet" -ResourceGroupName "MyRg" | Get-AzureRmVirtualNetworkSubnetConfig -Name "MySubnet"
PS C:\\> Get-AzureRmLoadBalancer -Name "MyLB" -ResourceGroupName "NrpTest" | Add-AzureRmLoadBalancerFrontendIpConfig -Name "FrontendName" -Subnet
$Subnet | Set-AzureRmLoadBalancer
The first command gets the Azure virtual network named MyVnet and passes the result using the pipeline to the
Get-AzureRmVirtualNetworkSubnetConfig cmdlet to get the subnet named MySubnet. The command then stores the result in the variable named $Subnet.
The second command gets the load balancer named MyLB and passes the result to the Add-AzureRmLoadBalancerFrontendIpConfig cmdlet that adds a
front-end IP configuration to the load balancer with a dynamic private IP address from the subnet stored in the variable named $MySubnet.
Example 2 Add a front-end IP configuration with a static IP address
PS C:\\>$Subnet = Get-AzureRmVirtualNetwork -Name "MyVnet" -ResourceGroupName "RG001" | Get-AzureRmVirtualNetworkSubnetConfig -Name "MySubnet"
PS C:\\> Get-AzureRmLoadBalancer -Name "MyLB" -ResourceGroupName "NrpTest" | Add-AzureRmLoadBalancerFrontendIpConfig -Name "FrontendName" -Subnet
$Subnet -PrivateIpAddress "10.0.1.6" | Set-AzureRmLoadBalancer
The first command gets the Azure virtual network named MyVnet and passes the result using the pipeline to the
Get-AzureRmVirtualNetworkSubnetConfig cmdlet to get the subnet named MySubnet. The command then stores the result in the variable named $Subnet.
The second command gets the load balancer named MyLB and passes the result to the Add-AzureRmLoadBalancerFrontendIpConfig cmdlet that adds a
front-end IP configuration to the load balancer with a static private IP address from the subnet stored in the variable named $Subnet.
Example 3 Add a front-end IP configuration with a public IP address
PS C:\\>$PublicIp = Get-AzureRmPublicIpAddress -ResourceGroupName "myRG" -Name "MyPub"
PS C:\\> Get-AzureRmLoadBalancer -Name "MyLB" -ResourceGroupName "NrpTest" | Add-AzureRmLoadBalancerFrontendIpConfig -Name "FrontendName"
-PublicIpAddress $PublicIp | Set-AzureRmLoadBalancer
The first command gets the Azure public IP address named MyPub and stores the result in the variable named $PublicIp. The second command gets the
load balancer named MyLB and passes the result to the Add-AzureRmLoadBalancerFrontendIpConfig cmdlet that adds a front-end IP configuration to the
load balancer with public IP address stored in the variable named $PublicIp.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ndipconfig
Get-AzureRmLoadBalancerFrontendIpConfig
Get-AzureRmVirtualNetwork
Get-AzureRmVirtualNetworkSubnetConfig
New-AzureRmLoadBalancerFrontendIpConfig
Remove-AzureRmLoadBalancerFrontendIpConfig
Set-AzureRmLoadBalancerFrontendIpConfig