Modifier

Partager via


New-AzFrontDoorHeaderActionObject

Create PSHeaderAction object.

Syntax

New-AzFrontDoorHeaderActionObject
   -HeaderName <String>
   -HeaderActionType <PSHeaderActionType>
   [-Value <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Creates PSHeaderAction object for the creation of PSRulesEngineAction object.

Examples

Example 1

New-AzFrontDoorHeaderActionObject -HeaderName headername -HeaderActionType Append

HeaderName HeaderActionType Value
---------- ---------------- -----
headername           Append

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

-HeaderActionType

Which type of manipulation to apply to the header.

Type:PSHeaderActionType
Accepted values:Append, Delete, Overwrite
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-HeaderName

The name of the header this action will apply to.

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

-Value

The value to update the given header name with. This value is not used if the actionType is Delete.

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

Inputs

None

Outputs

PSHeaderAction