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

PS C:\> $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:Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-HeaderName

Name of the Header to rewrite

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

Inputs

None

Outputs

Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayHeaderConfiguration