New-AzFrontDoorWafManagedRuleObject
Membuat Objek ManagedRule untuk pembuatan kebijakan WAF
New-AzFrontDoorWafManagedRuleObject
-Type <String>
-Version <String>
[-Action <String>]
[-RuleGroupOverride <PSAzureRuleGroupOverride[]>]
[-Exclusion <PSManagedRuleExclusion[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Membuat Objek ManagedRule untuk pembuatan kebijakan WAF
$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
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 |
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 |
Pengecualian
Jenis: | PSManagedRuleExclusion[] |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
Daftar konfigurasi penggantian penyedia terkelola azure
Jenis: | PSAzureRuleGroupOverride[] |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
Jenis set aturan
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
Versi set aturan
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
None
Umpan balik Azure PowerShell
Azure PowerShell adalah proyek sumber terbuka. Pilih tautan untuk memberikan umpan balik: