Skip to content

Commit b4cc6df

Browse files
Corrected typo in resource name
Resource name should not end with slash. If the slash is present at the end of the resource, token will still be generated but all subsequent calls to vault API with this token will result in 401 HTTP Error
1 parent 28b89f6 commit b4cc6df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/container-instances/container-instances-managed-identity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ az container exec --resource-group myResourceGroup --name mycontainer --exec-com
150150
Run the following commands in the bash shell in the container. To get an access token to use Azure Active Directory to authenticate to Key Vault, run the following command:
151151

152152
```bash
153-
curl 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fvault.azure.net%2F' -H Metadata:true -s
153+
curl 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fvault.azure.net' -H Metadata:true -s
154154
```
155155

156156
Output:

0 commit comments

Comments
 (0)