Skip to content

Commit 0340bdd

Browse files
authored
Merge pull request #89319 from mr-oliva/patch-1
Fix a request example using user-assigned identity
2 parents 7a698c3 + 7619f03 commit 0340bdd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ az container exec \
168168
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:
169169

170170
```bash
171-
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
171+
client_id="CLIENT ID (xxxxxxxx-5523-45fc-9f49-xxxxxxxxxxxx)"
172+
curl "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fvault.azure.net&client_id=$client_id" -H Metadata:true -s
172173
```
173174

174175
Output:

0 commit comments

Comments
 (0)