New-AzFrontDoorWafManagedRuleObject
Membuat Objek ManagedRule untuk pembuatan kebijakan WAF
Sintaks
New-AzFrontDoorWafManagedRuleObject
-Type <String>
-Version <String>
[-Action <String>]
[-RuleGroupOverride <PSAzureRuleGroupOverride[]>]
[-Exclusion <PSManagedRuleExclusion[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Membuat Objek ManagedRule untuk pembuatan kebijakan WAF
Contoh
Contoh 1
$ruleOverride1 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log
$ruleOverride2 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942251" -Action Log
$override1 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName SQLI -ManagedRuleOverride $ruleOverride1,$ruleOverride2
$ruleOverride3 = New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "941280" -Action Log
$override2 = New-AzFrontDoorWafRuleGroupOverrideObject -RuleGroupName XSS -ManagedRuleOverride $ruleOverride3
New-AzFrontDoorWafManagedRuleObject -Type DefaultRuleSet -Version "preview-0.1" -RuleGroupOverride $override1,$override2
RuleGroupOverrides RuleSetType RuleSetVersion
------------------ ----------- --------------
{SQLI, XSS} DefaultRuleSet preview-0.1
Membuat Objek ManagedRule
Parameter
-Action
Tindakan Seperangkat Aturan. Nilai yang mungkin termasuk: 'Izinkan', 'Blokir', 'Log', 'Alihkan'.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan Azure.
Jenis: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Exclusion
Pengecualian
Jenis: | PSManagedRuleExclusion[] |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-RuleGroupOverride
Daftar konfigurasi penggantian penyedia terkelola azure
Jenis: | PSAzureRuleGroupOverride[] |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Type
Jenis set aturan
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Version
Versi set aturan
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
Input
None