Skip to content

Commit 403025c

Browse files
authored
Merge pull request #192144 from timwarner-msft/patch-6
Remove "Try-It" button from Azure CLI code examples
2 parents b443bb8 + 05c9454 commit 403025c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/governance/resource-graph/first-query-azurecli.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ and run your first Resource Graph query.
2020
If you don't have an Azure subscription, create a [free](https://azure.microsoft.com/free/) account
2121
before you begin.
2222

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)] -->
2424

2525
## Add the Resource Graph extension
2626

@@ -34,14 +34,14 @@ Docker image](https://hub.docker.com/_/microsoft-azure-cli), or locally installe
3434

3535
1. In your Azure CLI environment of choice, import it with the following command:
3636

37-
```azurecli-interactive
37+
```azurecli
3838
# Add the Resource Graph extension to the Azure CLI environment
3939
az extension add --name resource-graph
4040
```
4141

4242
1. Validate that the extension has been installed and is the expected version (at least **1.0.0**):
4343

44-
```azurecli-interactive
44+
```azurecli
4545
# Check the extension list (note that you may have other extensions installed)
4646
az extension list
4747
@@ -59,7 +59,7 @@ or `--subscriptions` arguments.
5959

6060
1. Run your first Azure Resource Graph query using the `graph` extension and `query` command:
6161

62-
```azurecli-interactive
62+
```azurecli
6363
# Login first with az login if not using Cloud Shell
6464
6565
# Run Azure Resource Graph query
@@ -72,7 +72,7 @@ or `--subscriptions` arguments.
7272
7373
1. Update the query to `order by` the **Name** property:
7474

75-
```azurecli-interactive
75+
```azurecli
7676
# Run Azure Resource Graph query with 'order by'
7777
az graph query -q 'Resources | project name, type | limit 5 | order by name asc'
7878
```
@@ -86,7 +86,7 @@ or `--subscriptions` arguments.
8686
1. Update the query to first `order by` the **Name** property and then `limit` to the top five
8787
results:
8888

89-
```azurecli-interactive
89+
```azurecli
9090
# Run Azure Resource Graph query with `order by` first, then with `limit`
9191
az graph query -q 'Resources | project name, type | order by name asc | limit 5'
9292
```
@@ -100,7 +100,7 @@ top five results.
100100
If you wish to remove the Resource Graph extension from your Azure CLI environment, you can do so by
101101
using the following command:
102102

103-
```azurecli-interactive
103+
```azurecli
104104
# Remove the Resource Graph extension from the Azure CLI environment
105105
az extension remove -n resource-graph
106106
```

0 commit comments

Comments
 (0)