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

Creates a request routing rule for an application gateway.

Syntax

New-AzureRmApplicationGatewayRequestRoutingRule
   [-BackendAddressPool <PSApplicationGatewayBackendAddressPool>]
   [-BackendHttpSettings <PSApplicationGatewayBackendHttpSettings>]
   [-HttpListener <PSApplicationGatewayHttpListener>]
   -Name <String>
   [-RedirectConfiguration <PSApplicationGatewayRedirectConfiguration>]
   -RuleType <String>
   [-UrlPathMap <PSApplicationGatewayUrlPathMap>]
   [<CommonParameters>]
New-AzureRmApplicationGatewayRequestRoutingRule
   [-BackendAddressPoolId <String>]
   [-BackendHttpSettingsId <String>]
   [-HttpListenerId <String>]
   -Name <String>
   [-RedirectConfigurationId <String>]
   -RuleType <String>
   [-UrlPathMapId <String>]
   [<CommonParameters>]

Description

The Add-AzureRmApplicationGatewayRequestRoutingRule cmdlet creates a request routing rule for an Azure application gateway.

Examples

Example 1: Create a request routing rule for an application gateway

PS C:\>$Rule = New-AzureRmApplicationGatewayRequestRoutingRule -Name "Rule01" -RuleType Basic -BackendHttpSettings $Setting -HttpListener $Listener -BackendAddressPool $Pool

This command creates a basic request routing rule named Rule01 and stores the result in the variable named $Rule.

Required Parameters

-Name

Specifies the name of the request routing rule that this cmdlet creates.

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

Specifies type of the request routing rule.

Type:String
Parameter Sets:Basic, PathBasedRouting
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-BackendAddressPool

Specifies the back-end address pool, as an object, for the request routing rule to create.

Type:PSApplicationGatewayBackendAddressPool
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-BackendAddressPoolId

Specifies the back-end address pool ID of the request routing rule to create.

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

Specifies the back-end HTTP settings, as an object, for the request routing rule to create.

Type:PSApplicationGatewayBackendHttpSettings
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-BackendHttpSettingsId

Specifies the back-end HTTP settings ID of the request routing rule to create.

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

Specifies the back-end HTTP listener for the request routing rule to create.

Type:PSApplicationGatewayHttpListener
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-HttpListenerId

Specifies the backend HTTP listener ID for the request routing rule to create.

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

Application gateway RedirectConfiguration

Type:PSApplicationGatewayRedirectConfiguration
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RedirectConfigurationId

ID of the application gateway RedirectConfiguration

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UrlPathMap
Type:PSApplicationGatewayUrlPathMap
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UrlPathMapId
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