Skip to content

Commit 78f293b

Browse files
authored
Merge pull request #192147 from timwarner-msft/patch-7
Remove "Try-It" button from CLI code examples
2 parents 403025c + 6ebe640 commit 78f293b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/governance/resource-graph/shared-query-azure-cli.md

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

22-
[!INCLUDE [cloud-shell-try-it.md](../../../includes/cloud-shell-try-it.md)]
22+
<!-- [!INCLUDE [cloud-shell-try-it.md](../../../includes/cloud-shell-try-it.md)] -->
2323

2424
## Add the Resource Graph extension
2525

@@ -35,15 +35,15 @@ Docker image](https://hub.docker.com/_/microsoft-azure-cli), or locally installe
3535
[az extension add](/cli/azure/extension#az_extension_add) to import the Resource Graph extension
3636
with the following command:
3737

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

4343
1. Validate that the extension has been installed and is the expected version (at least **1.1.0**)
4444
with [az extension list](/cli/azure/extension#az_extension_list):
4545

46-
```azurecli-interactive
46+
```azurecli
4747
# Check the extension list (note that you may have other extensions installed)
4848
az extension list
4949
@@ -62,7 +62,7 @@ _location_.
6262
Azure Resource Graph shared query. This resource group is named `resource-graph-queries` and the
6363
location is `westus2`.
6464

65-
```azurecli-interactive
65+
```azurecli
6666
# Login first with az login if not using Cloud Shell
6767
6868
# Create the resource group
@@ -73,7 +73,7 @@ _location_.
7373
[az graph shared-query create](/cli/azure/graph/shared-query#az_graph_shared_query_create)
7474
command:
7575

76-
```azurecli-interactive
76+
```azurecli
7777
# Create the Azure Resource Graph shared query
7878
az graph shared-query create --name 'Summarize resources by location' \
7979
--description 'This shared query summarizes resources by location for a pinnable map graphic.' \
@@ -85,7 +85,7 @@ _location_.
8585
[az graph shared-query list](/cli/azure/graph/shared-query#az_graph_shared_query_list)
8686
command returns an array of values.
8787

88-
```azurecli-interactive
88+
```azurecli
8989
# List all the Azure Resource Graph shared queries in a resource group
9090
az graph shared-query list --resource-group 'resource-graph-queries'
9191
```
@@ -94,7 +94,7 @@ _location_.
9494
[az graph shared-query show](/cli/azure/graph/shared-query#az_graph_shared_query_show)
9595
command.
9696

97-
```azurecli-interactive
97+
```azurecli
9898
# Show a specific Azure Resource Graph shared query
9999
az graph shared-query show --resource-group 'resource-graph-queries' \
100100
--name 'Summarize resources by location'
@@ -106,7 +106,7 @@ _location_.
106106
`shared-query-uri` text in the example with the value from the `id` field, but leave the
107107
surrounding `{{` and `}}` characters.
108108

109-
```azurecli-interactive
109+
```azurecli
110110
# Run a Azure Resource Graph shared query
111111
az graph query --graph-query "{{shared-query-uri}}"
112112
```
@@ -128,7 +128,7 @@ CLI environment, you can do so by using the following commands:
128128
- [az group delete](/cli/azure/group#az_group_delete)
129129
- [az extension remove](/cli/azure/extension#az_extension_remove)
130130

131-
```azurecli-interactive
131+
```azurecli
132132
# Delete the Azure Resource Graph shared query
133133
az graph shared-query delete --resource-group 'resource-graph-queries' \
134134
--name 'Summarize resources by location'

0 commit comments

Comments
 (0)