Get-AzLoadBalancerOutboundRuleConfig
Gets an outbound rule configuration in a load balancer.
Syntax
Default (Default)
Get-AzLoadBalancerOutboundRuleConfig
-LoadBalancer <PSLoadBalancer>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzLoadBalancerOutboundRuleConfig cmdlet gets an outbound rule configuration or a list of outbound rule configurations in a load balancer.
Examples
Example 1: Get an outbound rule configuration in a load balancer
$slb = Get-AzLoadBalancer -ResourceGroupName "MyResourceGroup" -Name "MyLoadBalancer"
Get-AzLoadBalancerOutboundRuleConfig -LoadBalancer $slb -Name "MyRule"
The first command gets the load balancer named MyLoadBalancer, and then stores it in the variable $slb. The second command gets the outbound rule configuration named MyRule associated with that load balancer.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: | IAzureContextContainer |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-LoadBalancer
The reference of the load balancer resource.
Parameter properties
Type: | PSLoadBalancer |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Name
Name of the outbound rule.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.