azure_preview_modules icon indicating copy to clipboard operation
azure_preview_modules copied to clipboard

ansible lookup plugin errors out with azure_keyvault_secret

Open DevOpsEngineer opened this issue 4 years ago • 0 comments

Hello Team,

Looking for a solution using azure_keyvault_secret module with in ansible lookup plugin (https://docs.ansible.com/ansible/latest/plugins/lookup.html). When fetching secret from a KV, receiving MSI connection timeout error. Please let me know if anyone has experienced the similar issue before.

"{{lookup('azure_keyvault_secret',secret_name,vault_url=keyvault_url)}}"

fatal: [hostname.domain.com]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'azure_keyvault_secret'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Failed to fetch secret:XXXXX via MSI endpoint."}

Thank you,

Emre

DevOpsEngineer avatar Sep 04 '20 17:09 DevOpsEngineer