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

Modifies a request routing rule for an application gateway.

Syntax

Set-AzureRmApplicationGatewayRequestRoutingRule
   -ApplicationGateway <PSApplicationGateway>
   [-BackendAddressPool <PSApplicationGatewayBackendAddressPool>]
   [-BackendHttpSettings <PSApplicationGatewayBackendHttpSettings>]
   [-HttpListener <PSApplicationGatewayHttpListener>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <String>
   -RuleType <String>
   [-UrlPathMap <PSApplicationGatewayUrlPathMap>]
   [<CommonParameters>]
Set-AzureRmApplicationGatewayRequestRoutingRule
   -ApplicationGateway <PSApplicationGateway>
   [-BackendAddressPoolId <String>]
   [-BackendHttpSettingsId <String>]
   [-HttpListenerId <String>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <String>
   -RuleType <String>
   [-UrlPathMapId <String>]
   [<CommonParameters>]

Description

The Set-AzureRmApplicationGatewayRequestRoutingRule cmdlet modifies a request routing rule.

Examples

Example 1: Update a request routing rule

PS C:\>$AppGw = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> $AppGw = Set-AzureRmApplicationGatewayRequestRoutingRule -ApplicationGateway $AppGw -Name "Rule01" -RuleType Basic -BackendHttpSettings $Setting -HttpListener $Listener -BackendAddressPool $Pool

The first command gets the application gateway named ApplicationGateway01 and stores it in the $AppGw variable.

The second command modifies the request routing rule for the application gateway to use back-end HTTP settings specified in the $Setting variable, an HTTP listener specified in the $Listener variable, and a back-end address pool specified in the $Pool variable.

Required Parameters

-ApplicationGateway

Specifies the application gateway object with which this cmdlet associates a request routing rule.

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

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

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

Specifies the type of request routing rule.

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

Optional Parameters

-BackendAddressPool

Specifies the application gateway back-end address pool.

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

Specifies the application gateway back-end address pool ID.

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

Specifies the application gateway backend HTTP settings.

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

Specifies the application gateway back-end HTTP settings ID.

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

Specifies the application gateway HTTP listener.

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

Specifies the application gateway HTTP listener ID.

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.PSApplicationGateway