New-AzFrontDoorCdnProfileScrubbingRulesObject
Create an in-memory object for ProfileScrubbingRules.
Syntax
Default (Default)
New-AzFrontDoorCdnProfileScrubbingRulesObject
-MatchVariable <String>
[-Selector <String>]
[-State <String>]
[<CommonParameters>]
Description
Create an in-memory object for ProfileScrubbingRules.
Examples
Example 1: Create an in-memory object for ProfileScrubbingRules and the value of matchVariable is RequestIPAddress
New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestIPAddress -State Enabled
MatchVariable Selector SelectorMatchOperator State
------------- -------- --------------------- -----
RequestIPAddress EqualsAny Enabled
Create an in-memory object for ProfileScrubbingRules and the value of matchVariable is RequestIPAddress
Example 2: Create an in-memory object for ProfileScrubbingRules and disable the Scrubbing rule
New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestUri -State Disabled
MatchVariable Selector SelectorMatchOperator State
------------- -------- --------------------- -----
RequestUri EqualsAny Disabled
Create an in-memory object for ProfileScrubbingRules and disable the Scrubbing rule
Parameters
-MatchVariable
The variable to be scrubbed from the logs.
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 |
-Selector
When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.
Parameter properties
Type: | String |
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 |
-State
Defines the state of a log scrubbing rule. Default value is enabled.
Parameter properties
Type: | String |
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 |
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.