New-AzFrontDoorCdnRuleUrlRedirectActionObject
Create an in-memory object for UrlRedirectAction.
Syntax
New-AzFrontDoorCdnRuleUrlRedirectActionObject
-ParameterRedirectType <RedirectType>
-Name <DeliveryRuleAction>
[-ParameterCustomFragment <String>]
[-ParameterCustomHostname <String>]
[-ParameterCustomPath <String>]
[-ParameterCustomQueryString <String>]
[-ParameterDestinationProtocol <DestinationProtocol>]
[<CommonParameters>]
Description
Create an in-memory object for UrlRedirectAction.
Examples
Example 1: Create an in-memory object for UrlRedirectAction
New-AzFrontDoorCdnRuleUrlRedirectActionObject -Name UrlRedirect -ParameterRedirectType Moved -ParameterDestinationProtocol MatchRequest
Name
----
UrlRedirect
Create an in-memory object for UrlRedirectAction
Parameters
-Name
The name of the action for the delivery rule.
Type: | DeliveryRuleAction |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ParameterCustomFragment
Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ParameterCustomHostname
Host to redirect. Leave empty to use the incoming host as the destination host.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ParameterCustomPath
The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ParameterCustomQueryString
The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in <key>=<value> format. ? and & will be added automatically so do not include them.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ParameterDestinationProtocol
Protocol to use for the redirect. The default value is MatchRequest.
Type: | DestinationProtocol |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ParameterRedirectType
The redirect type the rule will use when redirecting traffic.
Type: | RedirectType |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |