< Back
Get-AzureRmLoadBalancerRuleConfig
Post
NAME Get-AzureRmLoadBalancerRuleConfig
SYNOPSIS
Gets the rule configuration for a load balancer.
SYNTAX
Get-AzureRmLoadBalancerRuleConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> [-Name <String>] [<CommonParameters>]
DESCRIPTION
The Get-AzureRmLoadBalancerRuleConfig cmdlet gets one or more rule configurations for a 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 load balancer that is associated with the rule configuration to get.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Name <String>
Specifies the name of the rule configuration to get.
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.PSLoadBalancingRule
NOTES
Example 1: Get the rule configuration of a load balancer
PS C:\\>$slb = Get-AzureRmLoadBalancer -Name "MyLoadBalancer" -ResourceGroupName "MyResourceGroup"
PS C:\\> Get-AzureRmLoadBalancerRuleConfig -Name "MyLBrulename" -LoadBalancer $slb
The first command gets the load balancer named MyLoadBalancer, and then stores it in the variable $slb.
The second command gets the associated rule configuration named MyLBrulename from the load balancer in $slb.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ruleconfig
Add-AzureRmLoadBalancerRuleConfig
Get-AzureRmLoadBalancer
Remove-AzureRmLoadBalancerRuleConfig
Set-AzureRmLoadBalancerRuleConfig
SYNOPSIS
Gets the rule configuration for a load balancer.
SYNTAX
Get-AzureRmLoadBalancerRuleConfig [-DefaultProfile <IAzureContextContainer>] -LoadBalancer <PSLoadBalancer> [-Name <String>] [<CommonParameters>]
DESCRIPTION
The Get-AzureRmLoadBalancerRuleConfig cmdlet gets one or more rule configurations for a 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 load balancer that is associated with the rule configuration to get.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Name <String>
Specifies the name of the rule configuration to get.
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.PSLoadBalancingRule
NOTES
Example 1: Get the rule configuration of a load balancer
PS C:\\>$slb = Get-AzureRmLoadBalancer -Name "MyLoadBalancer" -ResourceGroupName "MyResourceGroup"
PS C:\\> Get-AzureRmLoadBalancerRuleConfig -Name "MyLBrulename" -LoadBalancer $slb
The first command gets the load balancer named MyLoadBalancer, and then stores it in the variable $slb.
The second command gets the associated rule configuration named MyLBrulename from the load balancer in $slb.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ruleconfig
Add-AzureRmLoadBalancerRuleConfig
Get-AzureRmLoadBalancer
Remove-AzureRmLoadBalancerRuleConfig
Set-AzureRmLoadBalancerRuleConfig