Get-AzAlbSecurityPolicy
This cmdlet is part of a Preview module. Preview versions aren't recommended for use in production environments. For more information, see https://aka.ms/azps-refstatus .
Syntax
List (Default)
Get-AzAlbSecurityPolicy
-AlbName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get
Get-AzAlbSecurityPolicy
-AlbName <String>
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentityTrafficController
Get-AzAlbSecurityPolicy
-Name <String>
-TrafficControllerInputObject <IAlbIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentity
Get-AzAlbSecurityPolicy
-InputObject <IAlbIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Examples
Example 1: Get a specified Application Gateway for Containers association resource
Get-AzAlbSecurityPolicy -Name test-securityPolicy -AlbName test-alb -ResourceGroupName test-rg
Name ResourceGroupName Location PolicyType WafPolicyId ProvisioningState
---- ----------------- -------- ---------- ----------- -----------------
test-frontend test-rg northcentralus waf /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/test-rg/providers/Microsoft.Networking/applicationGatewayWebApplicationFirewallPolicies/wp-0 Succeeded
This command shows a specific Application Gateway for Containers frontend resource.
Example 2: List associations for a given Application Gateway for Containers resource
Get-AzAlbSecurityPolicy -AlbName test-alb -ResourceGroupName test-rg
Name ResourceGroupName Location PolicyType WafPolicyId ProvisioningState
---- ----------------- -------- ---------- ----------- -----------------
test-frontend test-rg northcentralus waf /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/test-rg/providers/Microsoft.Networking/applicationGatewayWebApplicationFirewallPolicies/wp-0 Succeeded
This command lists all Application Gateway for Containers frontend resources belonging to a specific Application Gateway for Containers resource.
Parameters
-AlbName
traffic controller name for path
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
List
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
Type: PSObject
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzureRMContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
Type: IAlbIdentity
Default value: None
Supports wildcards: False
DontShow: False
GetViaIdentity
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-Name
SecurityPolicy
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
GetViaIdentityTrafficController
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
The name of the resource group.
The name is case insensitive.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
List
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-SubscriptionId
The ID of the target subscription.
Parameter properties
Type: String [ ]
Default value: (Get-AzContext).Subscription.Id
Supports wildcards: False
DontShow: False
Parameter sets
List
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
Type: IAlbIdentity
Default value: None
Supports wildcards: False
DontShow: False
GetViaIdentityTrafficController
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs
Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISecurityPolicy