cancel
Showing results for 
Search instead for 
Did you mean: 
  • 825 Views

Ansible Automation Platform 2.5 - Azure key vault integration

Hello Team,

I need some help with Ansible Automation Platform (AAP) 2.5. I'm working on a project and have a question.

If we have certain variables, such as passwords or secrets, stored in Azure Key Vault, how can we integrate Key Vault with AAP to retrieve those values and use them within a playbook?

Looking forward to your guidance.

Thanks!

Labels (1)
2 Replies
Wasim_Raja
Moderator
Moderator
  • 771 Views

  • 27 Views

In case others stumble across this, you need to create a credential using the credential type of Microsoft Azure Key Vault using a service principal in Azure that has access to the key vault you want to retrieve secrets from.

Once that's created, create a Machine credential and click the key next to the password text box and choose the Microsoft Azure Key Vault credential you created previously.  Provide the secret name who's value you want to retrieve, and test.  If successful, you can save and then use that machine credential to retrieve the value from your Azure key vault upon template runs.

If anyone else knows, I'm curious if this same process could be replicated to retrieve an Azure Key Vault key rather than a secret.

0 Kudos
Join the discussion
You must log in to join this conversation.