Score:0

How to access keyvault data from azure kubernetes?

kr flag

I am trying to access keyvault data from aks cluster.

By following this link

The system managed identity section below link is showing for vm scale set instead of aks. So I am trying with user managed identity section.

az aks show -g devtest-large -n devtest-large-cluster --query addonProfiles.azureKeyvaultSecretsProvider.identity.clientId -o tsv

gave me output as below value

 9d0d9e08-a9f2-4085-a9d2-d61ae7624943

So for below command template

 # set policy to access keys in your key vault
 az keyvault set-policy -n <keyvault-name> --key-permissions get --spn <identity-client-id>

Below is the value I passed, but I am getting error there.

 az keyvault set-policy -n devtest-large-keyvault --key-permissions get --spn d0d9e08-a9f2-4085-a9d2-d61ae7624943
 Unable to find user with spn 'd0d9e08-a9f2-4085-a9d2-d61ae7624943'
 Unable to get object id from principal name.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.