< Back

Get-AzureRmApplicationGatewayRequestRoutingRule

Tue Jan 29, 2019 9:53 pm

NAME Get-AzureRmApplicationGatewayRequestRoutingRule



SYNOPSIS

Gets the request routing rule of an application gateway.





SYNTAX

Get-AzureRmApplicationGatewayRequestRoutingRule -ApplicationGateway <PSApplicationGateway> [-DefaultProfile <IAzureContextContainer>] [-Name

<String>] [<CommonParameters>]





DESCRIPTION

The Get-AzureRmApplicationGatewayRequestRoutingRule cmdlet gets the request routing rule of an application gateway.





PARAMETERS

-ApplicationGateway <PSApplicationGateway>

Specifies the application gateway object that contains request routing rule.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-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



-Name <String>

Specifies the name of the request routing rule which this cmdlet gets.



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

System.String







OUTPUTS

Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayRequestRoutingRule







NOTES









Example 1: Get a specific request routing rule



PS C:\\>$AppGW = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"

PS C:\\> $Rule = Get-AzureRmApplicationGatewayRequestRoutingRule -"Rule01" -ApplicationGateway $AppGW



The first command gets the Application Gateway named ApplicationGateway01 and stores the result in the variable named $AppGW. The second command

gets the request routing rule named Rule01 from the Application Gateway stored in the variable named $AppGW.





Example 2: Get a list of request routing rules



PS C:\\>$AppGW = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"

PS C:\\> $Rules = Get-AzureRmApplicationGatewayRequestRoutingRule -ApplicationGateway $AppGW



The first command gets the Application Gateway named ApplicationGateway01 and stores the result in the variable named $AppGW. The second command

gets a list of request routing rules from the Application Gateway stored in the variable named $AppGW.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... outingrule

Add-AzureRmApplicationGatewayRequestRoutingRule

New-AzureRmApplicationGatewayRequestRoutingRule

Remove-AzureRmApplicationGatewayRequestRoutingRule

Set-AzureRmApplicationGatewayRequestRoutingRule