< Back
Remove-AzureRmLoadBalancerRuleConfig
Post
NAME Remove-AzureRmLoadBalancerRuleConfig
SYNOPSIS
Removes a rule configuration for a load balancer.
SYNTAX
Remove-AzureRmLoadBalancerRuleConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> [-Name <String>]
[<CommonParameters>]
DESCRIPTION
The Remove-AzureRmLoadBalancerRuleConfig cmdlet removes a rule configuration for 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 the LoadBalancer object that contains the rule configuration that this cmdlet removes.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Name <String>
Specifies the name of the load balancer rule configuration that this cmdlet removes.
Required? false
Position? named
Default value None
Accept pipeline input? False
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: Remove a rule configuration from a load balancer
PS C:\\>$loadbalancer = Get-AzureRmLoadBalancer -Name "MyLoadBalancer" -ResourceGroupName "MyResourceGroup"
PS C:> Remove-AzureRmLoadBalancerRuleConfig -Name "MyLBruleName" -LoadBalancer $loadbalancer
The first command gets the load balancer named MyLoadBalancer, and then stores it in the $loadbalancer variable.
The second command removes the rule configuration named MyLBruleName from the load balancer in $loadbalancer.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ruleconfig
Add-AzureRmLoadBalancerRuleConfig
Get-AzureRmLoadBalancer
Get-AzureRmLoadBalancerRuleConfig
New-AzureRmLoadBalancerRuleConfig
Set-AzureRmLoadBalancerRuleConfig
SYNOPSIS
Removes a rule configuration for a load balancer.
SYNTAX
Remove-AzureRmLoadBalancerRuleConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> [-Name <String>]
[<CommonParameters>]
DESCRIPTION
The Remove-AzureRmLoadBalancerRuleConfig cmdlet removes a rule configuration for 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 the LoadBalancer object that contains the rule configuration that this cmdlet removes.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Name <String>
Specifies the name of the load balancer rule configuration that this cmdlet removes.
Required? false
Position? named
Default value None
Accept pipeline input? False
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: Remove a rule configuration from a load balancer
PS C:\\>$loadbalancer = Get-AzureRmLoadBalancer -Name "MyLoadBalancer" -ResourceGroupName "MyResourceGroup"
PS C:> Remove-AzureRmLoadBalancerRuleConfig -Name "MyLBruleName" -LoadBalancer $loadbalancer
The first command gets the load balancer named MyLoadBalancer, and then stores it in the $loadbalancer variable.
The second command removes the rule configuration named MyLBruleName from the load balancer in $loadbalancer.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ruleconfig
Add-AzureRmLoadBalancerRuleConfig
Get-AzureRmLoadBalancer
Get-AzureRmLoadBalancerRuleConfig
New-AzureRmLoadBalancerRuleConfig
Set-AzureRmLoadBalancerRuleConfig