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

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.

主站蜘蛛池模板: 商城县| 谷城县| 德惠市| 雷山县| 武隆县| 奉贤区| 吴桥县| 临夏县| 临沧市| 柘城县| 黔东| 和林格尔县| 淄博市| 琼中| 远安县| 宝鸡市| 军事| 临泉县| 广饶县| 襄樊市| 毕节市| 湖口县| 德昌县| 千阳县| 久治县| 阿城市| 巴楚县| 石河子市| 天长市| 大冶市| 许昌市| 赤水市| 台江县| 洛隆县| 巫溪县| 德阳市| 绥宁县| 南汇区| 亚东县| 思南县| 莱西市|