New-AzFrontDoorCdnProfileScrubbingRulesObject
Create an in-memory object for ProfileScrubbingRules.
Syntax
New-AzFrontDoorCdnProfileScrubbingRulesObject
-MatchVariable <ScrubbingRuleEntryMatchVariable>
[-Selector <String>]
[-State <ScrubbingRuleEntryState>]
[<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 disbale the Scrubbing rule
New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestUri -State Disabled
MatchVariable Selector SelectorMatchOperator State
------------- -------- --------------------- -----
RequestUri EqualsAny Disabled
Create an in-memory object for ProfileScrubbingRules and disbale the Scrubbing rule
Parameters
-MatchVariable
The variable to be scrubbed from the logs.
Type: | ScrubbingRuleEntryMatchVariable |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Selector
When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-State
Defines the state of a log scrubbing rule. Default value is enabled.
Type: | ScrubbingRuleEntryState |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |