How to fetch certificate from azure key vault using Ansible

Ankita Rani Patro 176 Reputation points
2023-12-07T01:28:57.44+00:00

Hello,Currently we are storing certificate in azure key vault.and manually binding certificate to iis service.but need a way to automate fetch certificate from azure key vault using Ansible and then automate binding.

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,310 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 57,431 Reputation points
    2023-12-07T03:07:34.4733333+00:00

    Hello,

    Please see the following tutorial for storing VM secrets with Ansible in Azure Key Vault:

    Tutorial: Use Azure Key Vault to store VM secrets with Ansible

    https://learn.microsoft.com/en-us/azure/developer/ansible/key-vault-configure-secrets?tabs=ansible

    Note: Ansible 2.9 (or later) is required to run the sample playbooks in this article.

    Get secrets from key vault

    Secrets stored in Azure key vault can be used to populate Ansible variables.

    https://learn.microsoft.com/en-us/azure/developer/ansible/key-vault-configure-secrets?tabs=ansible#get-secrets-from-key-vault


    If this is helpful please accept answer.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.