Get-AzFrontDoorWafPolicy
Mendapatkan kebijakan WAF
Sintaks
Get-AzFrontDoorWafPolicy
-ResourceGroupName <String>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Get-AzFrontDoorWafPolicyGet mendapatkan kebijakan WAF dalam grup sumber daya di bawah langganan saat ini
Contoh
Contoh 1
Get-AzFrontDoorWafPolicy -Name $policyName -ResourceGroupName $resourceGroupName
Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl
---- ---------- ------------------ ----------------------------- -----------
{policyName} Prevention Enabled 403 https://www.bing.com/
Dapatkan kebijakan WAF yang disebut $policyName di $resourceGroupName
Contoh 2
Get-AzFrontDoorWafPolicy -ResourceGroupName $resourceGroupName
Name PolicyMode PolicyEnabledState CustomBlockResponseStatusCode RedirectUrl
---- ---------- ------------------ ----------------------------- -----------
{policyName} Prevention Disabled
{policyName} Detection Enabled 403 https://www.bing.com/
{policyName} Detection Enabled 404
Mendapatkan semua kebijakan WAF di $resourceGroupName
Parameter
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Nama FireWallPolicy.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Nama grup sumber daya.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Input
None