Remove-AzureRmLoadBalancerBackendAddressPoolConfig

Removes a backend address pool configuration from a load balancer.

Syntax

Remove-AzureRmLoadBalancerBackendAddressPoolConfig
      [-Name <String>]
      -LoadBalancer <PSLoadBalancer>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]

Description

The Remove-AzureRmLoadBalancerBackendAddressPoolConfig cmdlet removes a backend address pool from a load balancer.

Examples

Example 1: Remove a backend address pool configuration from a load balancer

PS C:\>Get-AzureRmLoadBalancer -Name "MyLoadBalancer" -ResourceGroupName "MyResourceGroup" | Remove-AzureRmLoadBalancerBackendAddressPoolConfig -Name "BackendAddressPool02" | Set-AzureRmLoadBalancer

This command gets the load balancer named MyLoadBalancer and passes it to Remove-AzureRmLoadBalancerBackendAddressPoolConfig, which removes the BackendAddressPool02 configuration from MyLoadBalancer. Finally, the Set-AzureRmLoadBalancer cmdlet updates MyLoadBalancer. Note that a backend address pool configuration must exist before you can delete it.

Required Parameters

-LoadBalancer

Specifies the load balancer that contains the backend address pool to remove.

Type:Microsoft.Azure.Commands.Network.Models.PSLoadBalancer
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the backend address pool that this cmdlet removes.

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

Inputs

PSLoadBalancer

Parameter 'LoadBalancer' accepts value of type 'PSLoadBalancer' from the pipeline

Outputs

Microsoft.Azure.Commands.Network.Models.PSLoadBalancer