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>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <String>
   -RuleType <String>
   [-UrlPathMap <PSApplicationGatewayUrlPathMap>]
   [<CommonParameters>]
New-AzureRmApplicationGatewayRequestRoutingRule
   [-BackendAddressPoolId <String>]
   [-BackendHttpSettingsId <String>]
   [-HttpListenerId <String>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <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
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
-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
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