Edit

Share via


New-AzCdnUrlRewriteActionObject

Create an in-memory object for UrlRewriteAction.

Syntax

Default (Default)

New-AzCdnUrlRewriteActionObject
    -ParameterDestination <String>
    -ParameterSourcePattern <String>
    -ParameterTypeName <String>
    [-ParameterPreserveUnmatchedPath <Boolean>]
    [<CommonParameters>]

Description

Create an in-memory object for UrlRewriteAction.

Examples

Example 1: Create an in-memory object for UrlRewriteAction

New-AzCdnUrlRewriteActionObject -Name rewrite01 -ParameterDestination dest01 -ParameterSourcePattern pattern01
Name
----
rewrite01

Create an in-memory object for UrlRewriteAction

Parameters

-ParameterDestination

Define the relative URL to which the above requests will be rewritten by.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ParameterPreserveUnmatchedPath

Whether to preserve unmatched path. Default value is true.

Parameter properties

Type:Boolean
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

-ParameterSourcePattern

define a request URI pattern that identifies the type of requests that may be rewritten. If value is blank, all strings are matched.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ParameterTypeName

Create an in-memory object for UrlRewriteAction.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Name

Parameter sets

(All)
Position:Named
Mandatory:True
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.

Outputs

UrlRewriteAction