New-AzApplicationGatewayRewriteRuleActionSet
Creates a rewrite rule action set for an application gateway.
Syntax
Default (Default)
New-AzApplicationGatewayRewriteRuleActionSet
[-RequestHeaderConfiguration <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayHeaderConfiguration]>]
[-ResponseHeaderConfiguration <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayHeaderConfiguration]>]
[-UrlConfiguration <PSApplicationGatewayUrlConfiguration>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzApplicationGatewayRewriteRuleActionSet cmdlet creates a rewrite rule action set for an Azure application gateway.
Examples
Example 1
$action = New-AzApplicationGatewayRewriteRuleActionSet -ResponseHeaderConfiguration $hc -UrlConfiguration $urlConfiguration
This command creates a rewrite rule action set and stores the result in the variable named $action.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: | IAzureContextContainer |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-RequestHeaderConfiguration
List of request header configurations
Parameter properties
Type: | |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ResponseHeaderConfiguration
List of response header configurations
Parameter properties
Type: | |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-UrlConfiguration
Url Configuration for action set
Parameter properties
Type: | PSApplicationGatewayUrlConfiguration |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
None
Outputs
PSApplicationGatewayRewriteRuleActionSet
Related Links
- Add-AzApplicationGatewayRewriteRuleSet
- Get-AzApplicationGatewayRewriteRuleSet
- New-AzApplicationGatewayRewriteRuleSet
- Remove-AzApplicationGatewayRewriteRuleSet
- Set-AzApplicationGatewayRewriteRuleSet
- New-AzApplicationGatewayRewriteRule
- New-AzApplicationGatewayRewriteRuleHeaderConfiguration
- New-AzApplicationGatewayRewriteRuleUrlConfiguration