Skip to content

Commit

Permalink
docs: Update quick start doc for user assigned identity (#692)
Browse files Browse the repository at this point in the history
* docs: update quick start doc for user assigned identity

Previous code will return `Unable to get object id from principal name.`

* fixup! docs: update quick start doc for user assigned identity
  • Loading branch information
karataliu committed Jan 11, 2023
1 parent 257fd5d commit cba0c38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/book/src/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ if using user-assigned managed identity:

```bash
export USER_ASSIGNED_IDENTITY_CLIENT_ID="$(az identity show --name "${USER_ASSIGNED_IDENTITY_NAME}" --resource-group "${RESOURCE_GROUP}" --query 'clientId' -otsv)"
export USER_ASSIGNED_IDENTITY_OBJECT_ID="$(az identity show --name "${USER_ASSIGNED_IDENTITY_NAME}" --resource-group "${RESOURCE_GROUP}" --query 'principalId' -otsv)"
az keyvault set-policy --name "${KEYVAULT_NAME}" \
--secret-permissions get \
--spn "${USER_ASSIGNED_IDENTITY_CLIENT_ID}"
--object-id "${USER_ASSIGNED_IDENTITY_OBJECT_ID}"
```

## 5. Create a Kubernetes service account
Expand Down

0 comments on commit cba0c38

Please sign in to comment.