Freigeben über


Get-AzFrontDoorCdnSecurityPolicy

Ruft eine vorhandene Sicherheitsrichtlinie innerhalb eines Profils ab.

Syntax

Get-AzFrontDoorCdnSecurityPolicy
   -ProfileName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzFrontDoorCdnSecurityPolicy
   -Name <String>
   -ProfileName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzFrontDoorCdnSecurityPolicy
   -InputObject <ICdnIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Beschreibung

Ruft eine vorhandene Sicherheitsrichtlinie innerhalb eines Profils ab.

Beispiele

Beispiel 1: Auflisten von AzureFrontDoor-Sicherheitsrichtlinien innerhalb des angegebenen AzureFrontDoor-Profils

Get-AzFrontDoorCdnSecurityPolicy -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6

Name      ResourceGroupName
----      -----------------
policy001 testps-rg-da16jm

Auflisten von AzureFrontDoor-Sicherheitsrichtlinien innerhalb des angegebenen AzureFrontDoor-Profils

Beispiel 2: Abrufen einer AzureFrontDoor-Sicherheitsrichtlinie innerhalb des angegebenen AzureFrontDoor-Profils

Get-AzFrontDoorCdnSecurityPolicy -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -Name policy001

Name      ResourceGroupName
----      -----------------
policy001 testps-rg-da16jm

Abrufen einer AzureFrontDoor-Sicherheitsrichtlinie innerhalb des angegebenen AzureFrontDoor-Profils

Beispiel 3: Abrufen einer AzureFrontDoor-Sicherheitsrichtlinie innerhalb des angegebenen AzureFrontDoor-Profils über Identität

$endpoint = Get-AzFrontDoorCdnEndpoint -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -EndpointName end001
$endpoint2 = Get-AzFrontDoorCdnEndpoint -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -EndpointName end002
$updateAssociation = New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject -PatternsToMatch @("/*") -Domain @(@{"Id"=$($endpoint.Id)})
$updateAssociation2 = New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject -PatternsToMatch @("/*") -Domain @(@{"Id"=$($endpoint2.Id)})            

$wafPolicyId = "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourcegroups/rgName01/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/waf01"
$updateWafParameter = New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject  -Association @($updateAssociation, $updateAssociation2) -WafPolicyId $wafPolicyId
Update-AzFrontDoorCdnSecurityPolicy -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -Name policy001 -Parameter $updateWafParameter | Get-AzFrontDoorCdnSecurityPolicy

Name      ResourceGroupName
----      -----------------
policy001 testps-rg-da16jm

Abrufen einer AzureFrontDoor-Sicherheitsrichtlinie innerhalb des angegebenen AzureFrontDoor-Profils über identität

Parameter

-DefaultProfile

Der Parameter DefaultProfile ist nicht funktionsfähig. Verwenden Sie den Parameter "SubscriptionId", wenn sie verfügbar ist, wenn Sie das Cmdlet für ein anderes Abonnement ausführen.

Typ:PSObject
Aliase:AzureRMContext, AzureCredential
Position:Named
Standardwert:None
Erforderlich:False
Pipelineeingabe akzeptieren:False
Platzhalterzeichen akzeptieren:False

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

Typ:ICdnIdentity
Position:Named
Standardwert:None
Erforderlich:True
Pipelineeingabe akzeptieren:True
Platzhalterzeichen akzeptieren:False

-Name

Name der Sicherheitsrichtlinie unter dem Profil.

Typ:String
Aliase:SecurityPolicyName
Position:Named
Standardwert:None
Erforderlich:True
Pipelineeingabe akzeptieren:False
Platzhalterzeichen akzeptieren:False

-ProfileName

Name des Azure Front Door Standard- oder Azure Front Door Premium-Profils, das innerhalb der Ressourcengruppe eindeutig ist.

Typ:String
Position:Named
Standardwert:None
Erforderlich:True
Pipelineeingabe akzeptieren:False
Platzhalterzeichen akzeptieren:False

-ResourceGroupName

Name der Ressourcengruppe innerhalb des Azure-Abonnements.

Typ:String
Position:Named
Standardwert:None
Erforderlich:True
Pipelineeingabe akzeptieren:False
Platzhalterzeichen akzeptieren:False

-SubscriptionId

Azure-Abonnement-ID.

Typ:String[]
Position:Named
Standardwert:(Get-AzContext).Subscription.Id
Erforderlich:False
Pipelineeingabe akzeptieren:False
Platzhalterzeichen akzeptieren:False

Eingaben

ICdnIdentity

Ausgaben

ISecurityPolicy