Bearbeiten

Freigeben über


New-AzApplicationGatewayRewriteRuleHeaderConfiguration

Creates a rewrite rule header configuration for an application gateway.

Syntax

New-AzApplicationGatewayRewriteRuleHeaderConfiguration
   -HeaderName <String>
   [-HeaderValue <String>]
   [-HeaderValueMatcher <PSApplicationGatewayHeaderValueMatcher>]
   [-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

-HeaderValueMatcher

An optional field under 'Rewrite Action'. It lets you capture and modify the value(s) of a specific header when multiple headers with the same name exist. Currently supported for Set-Cookie Response header only. For more details, visit https://aka.ms/appgwheadercrud

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

Inputs

None

Outputs

PSApplicationGatewayHeaderConfiguration