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.
If this is helpful please accept answer.