Skip to content

Commit c4245c9

Browse files
authored
Merge pull request #39244 from qbikez/patch-1
service-to-service-authentication.md: Add `--resource` argument to `az account get-access-key`
2 parents 1a8e11e + 9bdc262 commit c4245c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/key-vault/service-to-service-authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ To use Azure CLI:
8484

8585
1. Sign in to the Azure portal: *az login* to sign in to Azure.
8686

87-
1. Verify access by entering *az account get-access-token*. If you receive an error, check that the right version of Azure CLI is correctly installed.
87+
1. Verify access by entering *az account get-access-token --resource https://vault.azure.net*. If you receive an error, check that the right version of Azure CLI is correctly installed.
8888

8989
If Azure CLI isn't installed to the default directory, you may receive an error reporting that `AzureServiceTokenProvider` can't find the path for Azure CLI. Use the **AzureCLIPath** environment variable to define the Azure CLI installation folder. `AzureServiceTokenProvider` adds the directory specified in the **AzureCLIPath** environment variable to the **Path** environment variable when necessary.
9090

0 commit comments

Comments
 (0)