Get-AzApplicationSecurityGroup
Hämtar en programsäkerhetsgrupp.
Syntax
Get-AzApplicationSecurityGroup
[-ResourceGroupName <String>]
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Cmdleten Get-AzApplicationSecurityGroup hämtar en programsäkerhetsgrupp.
Exempel
Exempel 1: Hämta alla programsäkerhetsgrupper.
Get-AzApplicationSecurityGroup
ProvisioningState : Succeeded
ResourceGroupName : MyResourceGroup
Location : southcentralus
ResourceGuid :
Type : Microsoft.Network/applicationSecurityGroups
Tag : {}
TagsTable :
Name : MyApplicationSecurityGroup1
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsof
t.Network/applicationSecurityGroups/MyApplicationSecurityGroup1
ProvisioningState : Succeeded
ResourceGroupName : MyResourceGroup
Location : southcentralus
ResourceGuid :
Type : Microsoft.Network/applicationSecurityGroups
Tag : {}
TagsTable :
Name : MyApplicationSecurityGroup2
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsof
t.Network/applicationSecurityGroups/MyApplicationSecurityGroup2
Kommandot ovan returnerar alla programsäkerhetsgrupper i prenumerationen.
Exempel 2: Hämta programsäkerhetsgrupper i en resursgrupp.
Get-AzApplicationSecurityGroup -ResourceGroupName MyResourceGroup
ProvisioningState : Succeeded
ResourceGroupName : MyResourceGroup
Location : southcentralus
ResourceGuid :
Type : Microsoft.Network/applicationSecurityGroups
Tag : {}
TagsTable :
Name : MyApplicationSecurityGroup1
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsof
t.Network/applicationSecurityGroups/MyApplicationSecurityGroup1
ProvisioningState : Succeeded
ResourceGroupName : MyResourceGroup
Location : southcentralus
ResourceGuid :
Type : Microsoft.Network/applicationSecurityGroups
Tag : {}
TagsTable :
Name : MyApplicationSecurityGroup2
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsof
t.Network/applicationSecurityGroups/MyApplicationSecurityGroup2
Kommandot ovan returnerar alla programsäkerhetsgrupper som tillhör resursgruppen MyResourceGroup.
Exempel 3: Hämta en specifik programsäkerhetsgrupp.
Get-AzApplicationSecurityGroup -ResourceGroupName MyResourceGroup -Name MyApplicationSecurityGroup1
ProvisioningState : Succeeded
ResourceGroupName : MyResourceGroup
Location : southcentralus
ResourceGuid :
Type : Microsoft.Network/applicationSecurityGroups
Tag : {}
TagsTable :
Name : MyApplicationSecurityGroup1
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsof
t.Network/applicationSecurityGroups/MyApplicationSecurityGroup1
Kommandot ovan returnerar programsäkerhetsgruppen MyApplicationSecurityGroup under resursgruppen MyResourceGroup.
Exempel 4: Hämta programsäkerhetsgrupper med filtrering.
Get-AzApplicationSecurityGroup -Name MyApplicationSecurityGroup*
ProvisioningState : Succeeded
ResourceGroupName : MyResourceGroup
Location : southcentralus
ResourceGuid :
Type : Microsoft.Network/applicationSecurityGroups
Tag : {}
TagsTable :
Name : MyApplicationSecurityGroup1
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsof
t.Network/applicationSecurityGroups/MyApplicationSecurityGroup1
ProvisioningState : Succeeded
ResourceGroupName : MyResourceGroup
Location : southcentralus
ResourceGuid :
Type : Microsoft.Network/applicationSecurityGroups
Tag : {}
TagsTable :
Name : MyApplicationSecurityGroup2
Etag : W/"00000000-0000-0000-0000-000000000000"
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsof
t.Network/applicationSecurityGroups/MyApplicationSecurityGroup2
Kommandot ovan returnerar alla programsäkerhetsgrupper som börjar med "MyApplicationSecurityGroup".
Parametrar
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Typ: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Name
Resursnamnet.
Typ: | String |
Alias: | ResourceName |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | True |
-ResourceGroupName
Resursgruppens namn.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | True |
Indata
Utdata
Relaterade länkar
Azure PowerShell