New-AzApplicationGatewayRewriteRuleHeaderConfiguration
Creates a rewrite rule header configuration for an application gateway.
Syntax
New-AzApplicationGatewayRewriteRuleHeaderConfiguration
-HeaderName <String>
[-HeaderValue <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The AzApplicationGatewayRewriteRuleHeaderConfiguration cmdlet creates a rewrite rule action set for an Azure application gateway.
Examples
Example 1
$hc = New-AzApplicationGatewayRewriteRuleHeaderConfiguration -HeaderName abc -HeaderValue def
This command creates a rewrite rule header configuration and stores the result in the variable named $hc.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HeaderName
Name of the Header to rewrite
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HeaderValue
Header value to the set for the given header name. Header will be deleted if this is omitted
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
PSApplicationGatewayHeaderConfiguration
Related Links
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for