Skip to content

Commit 3382954

Browse files
authored
Merge pull request #199940 from dbradish-microsoft/dbradish_addLinksToLearningBashWithAzureCLI
adding links to updated CLI articles
2 parents d5bdfb5 + b18d9ef commit 3382954

13 files changed

+53
-21
lines changed

articles/aks/kubernetes-service-principal.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ ls -la $HOME/.azure/aksServicePrincipal.json
241241

242242
The default expiration time for the service principal credentials is one year. If your *aksServicePrincipal.json* file is older than one year, delete the file and retry deploying the AKS cluster.
243243

244+
**General Azure CLI troubleshooting**
245+
246+
[!INCLUDE [azure-cli-troubleshooting.md](../../includes/azure-cli-troubleshooting.md)]
247+
244248
### [Azure PowerShell](#tab/azure-powershell)
245249

246250
The service principal credentials for an AKS cluster are cached by Azure PowerShell. If these credentials have expired, you encounter errors during deployment of the AKS cluster. The following error message when running [New-AzAksCluster][new-azakscluster] may indicate a problem with the cached service principal credentials:

articles/app-service/deploy-ftp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ In the same management page for your app where you copied the deployment credent
4242

4343
# [Azure CLI](#tab/cli)
4444

45-
Run the [az webapp deployment list-publishing-profiles](/cli/azure/webapp/deployment#az-webapp-deployment-list-publishing-profiles) command. The following example uses a [JMES path](https://jmespath.org/) to extract the FTP/S endpoints from the output.
45+
Run the [az webapp deployment list-publishing-profiles](/cli/azure/webapp/deployment#az-webapp-deployment-list-publishing-profiles) command. The following example uses a [JMESPath query](/cli/azure/query-azure-cli) to extract the FTP/S endpoints from the output.
4646

4747
```azurecli-interactive
4848
az webapp deployment list-publishing-profiles --name <app-name> --resource-group <group-name> --query "[?ends_with(profileName, 'FTP')].{profileName: profileName, publishUrl: publishUrl}"

articles/batch/batch-cli-get-started.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ To get help with any Batch command, add `-h` to the end of your command. Don't a
123123

124124
To return verbose command output, add `-v` or `-vv` to the end of your command. Use these switches to display the full error output. The `-vv` flag returns the actual REST requests and responses.
125125

126-
To view the command output in JSON format, add `--json` to the end of your command. For example, to display the properties of a pool named **pool001**, run `az batch pool show pool001 --json`. Then, copy and modify the output to [create Batch resources using a JSON configuration file](#create-resources-with-json).
126+
To view the command output in JSON format, add `--json` to the end of your command. For example, to display the properties of a pool named **pool001**, run `az batch pool show pool001 --json`. Then, copy and modify the output to [create Batch resources using a JSON configuration file](#create-resources-with-json).
127+
128+
**General Azure CLI troubleshooting**
129+
130+
[!INCLUDE [azure-cli-troubleshooting.md](../../includes/azure-cli-troubleshooting.md)]
131+
127132
## Next steps
128133

129134
> [!div class="nextstepaction"]

articles/cosmos-db/table/create-table-java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ To access your table(s) in Cosmos DB, your app will need the table connection st
172172

173173
### [Azure CLI](#tab/azure-cli)
174174

175-
To get the primary table storage connection string using Azure CLI, use the [az Cosmos DB keys list](/cli/azure/cosmosdb/keys#az-cosmosdb-keys-list) command with the option `--type connection-strings`. This command uses a [JMESPath query](https://jmespath.org/) to display only the primary table connection string.
175+
To get the primary table storage connection string using Azure CLI, use the [az Cosmos DB keys list](/cli/azure/cosmosdb/keys#az_cosmosdb_keys_list) command with the option `--type connection-strings`. This command uses a [JMESPath query](/cli/azure/query-azure-cli) to display only the primary table connection string.
176176

177177
```azurecli
178178
# This gets the primary Table connection string

articles/cosmos-db/table/create-table-nodejs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ To access your table(s) in Cosmos DB, your app will need the table connection st
168168

169169
### [Azure CLI](#tab/azure-cli)
170170

171-
To get the primary table storage connection string using Azure CLI, use the [az cosmosdb keys list](/cli/azure/cosmosdb/keys#az-cosmosdb-keys-list) command with the option `--type connection-strings`. This command uses a [JMESPath query](https://jmespath.org/) to display only the primary table connection string.
171+
To get the primary table storage connection string using Azure CLI, use the [az cosmosdb keys list](/cli/azure/cosmosdb/keys#az-cosmosdb-keys-list) command with the option `--type connection-strings`. This command uses a [JMESPath query](/cli/azure/query-azure-cli) to display only the primary table connection string.
172172

173173
```azurecli
174174
# This gets the primary Table connection string

articles/cosmos-db/table/how-to-use-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ To access your table(s) in Cosmos DB, your app will need the table connection st
164164

165165
### [Azure CLI](#tab/azure-cli)
166166

167-
To get the primary connection string using Azure CLI, use the [az cosmosdb keys list](/cli/azure/cosmosdb/keys#az-cosmosdb-keys-list) command with the option `--type connection-strings`. This command uses a [JMESPath query](https://jmespath.org/) to display only the primary table connection string.
167+
To get the primary connection string using Azure CLI, use the [az cosmosdb keys list](/cli/azure/cosmosdb/keys#az-cosmosdb-keys-list) command with the option `--type connection-strings`. This command uses a [JMESPath query](/cli/azure/query-azure-cli) to display only the primary table connection string.
168168

169169
```azurecli
170170
# This gets the primary connection string

articles/dms/tutorial-postgresql-azure-postgresql-online.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ To complete all the database objects like table schemas, indexes and stored proc
344344
az dms project task show --service-name PostgresCLI --project-name PGMigration --resource-group PostgresDemo --name runnowtask --expand output
345345
```
346346
347-
* You can also use [JMESPATH](https://jmespath.org/) query format to only extract the migrationState from the expand output:
347+
* You can also use [JMESPath](/cli/azure/query-azure-cli) query format to only extract the migrationState from the expand output:
348348
349349
```azurecli
350350
az dms project task show --service-name PostgresCLI --project-name PGMigration --resource-group PostgresDemo --name runnowtask --expand output --query 'properties.output[].migrationState'

articles/network-watcher/network-watcher-troubleshoot-manage-cli.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ The action text provides general guidance on how to resolve the issue. If an act
8888

8989
For instructions on downloading files from azure storage accounts, refer to [Get started with Azure Blob storage using .NET](../storage/blobs/storage-quickstart-blobs-dotnet.md). Another tool that can be used is Storage Explorer. More information about Storage Explorer can be found here at the following link: [Storage Explorer](https://storageexplorer.com/)
9090

91+
## Azure CLI troubleshooting
92+
93+
[!INCLUDE [azure-cli-troubleshooting.md](../../includes/azure-cli-troubleshooting.md)]
94+
9195
## Next steps
9296

9397
If settings have been changed that stop VPN connectivity, see [Manage Network Security Groups](../virtual-network/manage-network-security-group.md) to track down the network security group and security rules that may be in question.

articles/route-server/quickstart-configure-route-server-cli.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ This article helps you configure Azure Route Server to peer with a Network Virtu
1919

2020
[!INCLUDE [route server preview note](../../includes/route-server-note-preview-date.md)]
2121

22-
## Prerequisites
22+
## Prerequisites
2323

24-
* An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
25-
* Make sure you have the latest Azure CLI, or you can use Azure Cloud Shell in the portal.
26-
* Review the [service limits for Azure Route Server](route-server-faq.md#limitations).
24+
* An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
25+
* [Install the latest Azure CLI](/cli/azure/install-azure-cli), or make sure you can use [Azure Cloud Shell](/azure/cloud-shell/quickstart) in the portal.
26+
* Review the [service limits for Azure Route Server](route-server-faq.md#limitations).
2727

28-
## Sign in to your Azure account and select your subscription.
28+
## Sign in to your Azure account and select your subscription.
2929

3030
To begin your configuration, sign in to your Azure account. If you use the Cloud Shell "Try It", you're signed in automatically. Use the following examples to help you connect:
3131

@@ -205,7 +205,9 @@ az network routeserver peering list-learned-routes \
205205
--name myNVA \
206206
--routeserver myRouteServer
207207
--resource-group myRouteServerRG \
208-
```
208+
```
209+
210+
[!INCLUDE [azure-cli-troubleshooting.md](../../includes/azure-cli-troubleshooting.md)]
209211

210212
## Clean up resources
211213

articles/storage/blobs/blob-containers-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Use the `az storage container list` command to retrieve a list of storage contai
8484

8585
The `--num-results` parameter can be used to limit the number of containers returned by the request. Azure Storage limits the number of containers returned by a single listing operation to 5000. This limit ensures that manageable amounts of data are retrieved. If the number of containers returned exceeds either the `--num-results` value or the service limit, a continuation token is returned. This token allows you to use multiple requests to retrieve any number of containers.
8686

87-
You can also use the `--query` parameter to execute a [JMESPath query](https://jmespath.org/) on the results of commands. JMESPath is a query language for JSON that allows you to select and modify data returned from CLI output. Queries are executed on the JSON output before it can be formatted. For more information, see [How to query Azure CLI command output using a JMESPath query](/cli/azure/query-azure-cli).
87+
You can also use the `--query` parameter to execute a [JMESPath query](/cli/azure/query-azure-cli) on the results of commands. JMESPath is a query language for JSON that allows you to select and modify data returned from CLI output. Queries are executed on the JSON output before it can be formatted. For more information, see [How to query Azure CLI command output using a JMESPath query](/cli/azure/query-azure-cli).
8888

8989
The following example first lists the maximum number of containers (subject to the service limit). Next, it lists three containers whose names begin with the prefix *container-* by supplying values for the `--num-results` and `--prefix` parameters. Finally, a single container is listed by supplying a known container name to the `--prefix` parameter.
9090

0 commit comments

Comments
 (0)