你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzApplicationSecurityGroup
获取应用程序安全组。
语法
Get-AzApplicationSecurityGroup
[-ResourceGroupName <String>]
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzApplicationSecurityGroup cmdlet 获取应用程序安全组。
示例
示例 1:检索所有应用程序安全组。
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
上述命令返回订阅中的所有应用程序安全组。
示例 2:检索资源组中的应用程序安全组。
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
上述命令返回属于资源组 MyResourceGroup 的所有应用程序安全组。
示例 3:检索特定的应用程序安全组。
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
上述命令返回资源组 MyResourceGroup 下的应用程序安全组 MyApplicationSecurityGroup。
示例 4:使用筛选检索应用程序安全组。
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
上述命令返回以“MyApplicationSecurityGroup”开头的所有应用程序安全组。
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
资源名称。
类型: | String |
别名: | ResourceName |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | True |
-ResourceGroupName
资源组名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | True |