官术网_书友最值得收藏!

Browsing resource groups

When you have created some resource groups, they will be available in your subscription. We can quickly display them using either the Azure CLI or PowerShell window. Both commands are pretty straightforward. The result for Azure CLI is as follows:

$ az group list --subscription "Pay-As-You-Go"

The result of running the preceding command will look like this:

[
{
"id": "/subscriptions/.../resourceGroups/azureadministrator-euw-rg",
"location": "westeurope",
"managedBy": null,
"name": "azureadministrator-euw-rg",
"properties": {
"provisioningState": "Succeeded"
},
"tags": {}
}
{
...
}
]

You will get a similar effect for the PowerShell cmdlet, as shown here. Note that it returns a similar result containing information about the resource group's location, its tags, and its identifier:

PS C:\Users\kamz> Get-AzResourceGroup

The result of running the preceding PowerShell cmdlet should look like this:

ResourceGroupName : azureadministrator-euw-rg
Location : westeurope
ProvisioningState : Succeeded
Tags :
ResourceId : /subscriptions/.../resourceGroups/azureadministrator-euw-rg

(...)

Note that both commands provide additional parameters. The following is the result of running the Azure CLI command with an additional switch that determines the output's format (which is --output table):

$ az group list --subscription "Pay-As-You-Go" --output "table"

With an additional parameter, the output will change from its default JSON representation to a table:

Name Location Status
---------------------------- ---------- ---------
azureadministrator-euw-rg westeurope Succeeded
azureadministratornew-euw-rg westeurope Succeeded
azureadminstration-euw-rg westeurope Succeeded
azurecli-euw-rg westeurope Succeeded
azurepowershell-eue-rg westeurope Succeeded
azurepowershell-euw-rg westeurope Succeeded
Remember that for the Azure CLI, you can always use the  -h switch to get help regarding a command.

Now that we've got some information about the available resource groups, we can dive deeper and check out the resources they contain.

主站蜘蛛池模板: 阿克苏市| 霞浦县| 凤城市| 宣城市| 阳春市| 三穗县| 芦山县| 沙河市| 洪江市| 渑池县| 湟中县| 新河县| 德惠市| 共和县| 桃江县| 香格里拉县| 石棉县| 汉中市| 新泰市| 万年县| 宁河县| 上犹县| 汝南县| 腾冲县| 广河县| 丹寨县| 尉犁县| 台中县| 兴安盟| 寻乌县| 枣阳市| 阳春市| 资溪县| 望城县| 蕉岭县| 莒南县| 丹棱县| 昭觉县| 中卫市| 信阳市| 扶绥县|