@@ -20,7 +20,7 @@ and run your first Resource Graph query.
20
20
If you don't have an Azure subscription, create a [ free] ( https://azure.microsoft.com/free/ ) account
21
21
before you begin.
22
22
23
- [ !INCLUDE [ cloud-shell-try-it.md] ( ../../../includes/cloud-shell-try-it.md )]
23
+ <!-- [!INCLUDE [cloud-shell-try-it.md](../../../includes/cloud-shell-try-it.md)] -->
24
24
25
25
## Add the Resource Graph extension
26
26
@@ -34,14 +34,14 @@ Docker image](https://hub.docker.com/_/microsoft-azure-cli), or locally installe
34
34
35
35
1 . In your Azure CLI environment of choice, import it with the following command:
36
36
37
- ``` azurecli-interactive
37
+ ``` azurecli
38
38
# Add the Resource Graph extension to the Azure CLI environment
39
39
az extension add --name resource-graph
40
40
```
41
41
42
42
1 . Validate that the extension has been installed and is the expected version (at least ** 1.0.0** ):
43
43
44
- ``` azurecli-interactive
44
+ ``` azurecli
45
45
# Check the extension list (note that you may have other extensions installed)
46
46
az extension list
47
47
@@ -59,7 +59,7 @@ or `--subscriptions` arguments.
59
59
60
60
1 . Run your first Azure Resource Graph query using the ` graph ` extension and ` query ` command:
61
61
62
- ``` azurecli-interactive
62
+ ``` azurecli
63
63
# Login first with az login if not using Cloud Shell
64
64
65
65
# Run Azure Resource Graph query
@@ -72,7 +72,7 @@ or `--subscriptions` arguments.
72
72
73
73
1 . Update the query to ` order by ` the ** Name** property:
74
74
75
- ``` azurecli-interactive
75
+ ``` azurecli
76
76
# Run Azure Resource Graph query with 'order by'
77
77
az graph query -q 'Resources | project name, type | limit 5 | order by name asc'
78
78
```
@@ -86,7 +86,7 @@ or `--subscriptions` arguments.
86
86
1 . Update the query to first ` order by ` the ** Name** property and then ` limit ` to the top five
87
87
results:
88
88
89
- ``` azurecli-interactive
89
+ ``` azurecli
90
90
# Run Azure Resource Graph query with `order by` first, then with `limit`
91
91
az graph query -q 'Resources | project name, type | order by name asc | limit 5'
92
92
```
@@ -100,7 +100,7 @@ top five results.
100
100
If you wish to remove the Resource Graph extension from your Azure CLI environment, you can do so by
101
101
using the following command:
102
102
103
- ``` azurecli-interactive
103
+ ``` azurecli
104
104
# Remove the Resource Graph extension from the Azure CLI environment
105
105
az extension remove -n resource-graph
106
106
```
0 commit comments