Skip to content

Commit 9bdc262

Browse files
authored
Update service-to-service-authentication.md
Add `--resource https://vault.azure.net` argument to `az account get-access-key` - without it, the generated access key doesn't work with Key Vault (invalid audience error).
1 parent 8acbc26 commit 9bdc262

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)