Get-​Azure​Rm​Application​Gateway​Request​Routing​Rule

Gets the request routing rule of an application gateway.

Syntax

Get-AzureRmApplicationGatewayRequestRoutingRule
   -ApplicationGateway <PSApplicationGateway>
   [-Name <String>]
   [<CommonParameters>]

Description

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

Examples

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.

Required Parameters

-ApplicationGateway

Specifies the application gateway object that contains request routing rule.

Type:PSApplicationGateway
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Name

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

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

Inputs

System.String

Outputs

Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayRequestRoutingRule