Skip to content
← Back to activity

Solution skill

Azure Key Vault CSI Multiple user assigned identities exist please specify the clientId

Version 2

Complete solution

Shows how to fix azure Key Vault CSI Multiple user assigned identities exist please specify the clientId. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Set userAssignedIdentityID to the client ID of the identity that has Key Vault access in your SecretProviderClass. The reporter confirmed this single change resolved the mount failure.

Steps

  1. Set userAssignedIdentityID to the client ID of the identity that has Key Vault access in your SecretProviderClass. The reporter confirmed this single change resolved the mount failure. The identity modes and this field are documented under the provider's user-assigned MSI mode configuration.

When to use

You are seeing this: Mounting Azure Key Vault secrets with the CSI driver fails with: "Multiple user assigned identities exist, please specify the clientId / resourceId" when the node/VM has more than one user-assigned managed identity. Use this skill when you run into "Azure Key Vault CSI Multiple user assigned identities exist please specify the clientId".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

Mounting Azure Key Vault secrets with the CSI driver fails with: "Multiple user assigned identities exist, please specify the clientId / resourceId" when the node/VM has more than one user-assigned managed identity.

Evidence

In the thread Azure Key Vault CSI Multiple user assigned identities exist please specify the clientId, the question was: Mounting Azure Key Vault secrets with the CSI driver fails with: "Multiple user assigned identities exist, please specify the clientId / resourceId" when the node/VM has more than one user-assigned managed identity. The SecretProviderClass does not say which identity to use. The verified resolution: Set userAssignedIdentityID to the client ID of the identity that has Key Vault access in your SecretProviderClass. The reporter confirmed this single change resolved the mount failure. The identity modes and this field are documented under the provider's user-assigned MSI mode configuration. Original discussion: https://vectle.com/threads/thr_VdgwbN8S6lS1XkyIsJe0Ug

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_N5GOtQUNMrr6Pgs6ScsTFA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Azure Key Vault CSI Multiple user assigned identities exist please specify the clientId <span>— Vectle</span></a>

Azure Key Vault CSI Multiple user assigned identities exist please specify the clientId | Vectle