Auf Englisch lesen

Freigeben über


New-AzFrontDoorCdnProfileLogScrubbingObject

Erstellen Sie ein Speicherobjekt für ProfileLogScrubbing.

Syntax

PowerShell
New-AzFrontDoorCdnProfileLogScrubbingObject
   [-ScrubbingRule <IProfileScrubbingRules[]>]
   [-State <ProfileScrubbingState>]
   [<CommonParameters>]

Beschreibung

Erstellen Sie ein Speicherobjekt für ProfileLogScrubbing.

Beispiele

Beispiel 1: Erstellen eines Speicherobjekts für ProfileUpgradeParameters für zwei LogScrubbingRules

PowerShell
$scrubbingRule1 = New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestIPAddress -State Enabled
$scrubbingRule2 = New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestUri -State Enabled
New-AzFrontDoorCdnProfileLogScrubbingObject -ScrubbingRule @($scrubbingRule1, $scrubbingRule2) -State Enabled

State
-----
Enabled

Erstellen eines In-Memory-Objekts für ProfileUpgradeParameters für zwei LogScrubbingRules

Parameter

-ScrubbingRule

Liste der Protokollbereinigungsregeln, die auf die Azure Front Door-Profilprotokolle angewendet werden. Informationen zum Erstellen finden Sie im Abschnitt "NOTES" für SCRUBBINGRULE-Eigenschaften und erstellen eine Hashtabelle.

Typ:IProfileScrubbingRules[]
Position:Named
Standardwert:None
Erforderlich:False
Pipelineeingabe akzeptieren:False
Platzhalterzeichen akzeptieren:False

-State

Status der Protokollbereinigungskonfiguration. Der Standardwert ist aktiviert.

Typ:ProfileScrubbingState
Position:Named
Standardwert:None
Erforderlich:False
Pipelineeingabe akzeptieren:False
Platzhalterzeichen akzeptieren:False

Ausgaben