Get-AzApplicationSecurityGroup
取得應用程式安全組。
語法
Get-AzApplicationSecurityGroup
[-ResourceGroupName <String>]
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
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 |