Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ Here are some of the benefits of using managed identities:

Signing in with the resource's identity is done through the `--identity` flag.

To sign in with a system-assigned managed identity:

```azurecli-interactive
az login --identity
```

If the resource has multiple user assigned managed identities and no system assigned identity, you must specify the client ID or object ID or resource ID of the user assigned managed identity with `--username` for login.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Even if the resource has only one user-assigned managed identity, an ID should be specified.
  2. This is not related to system-assigned managed identity. Even if the resource has a system-assigned managed identity, we can still use the user-assigned managed identity by specifying an ID.

To sign in with a user-assigned managed identity, you must specify the client ID, object ID or resource ID of the user-assigned managed identity with `--username`:

```azurecli-interactive
az login --identity --username <client_id|object_id|resource_id>
Expand Down