Accessing Azure Key Vault via Ansible reports an error.

Aloysio Coutinho 0 Reputation points
2023-12-15T14:34:11.71+00:00

I have an Ansible playbook that connects to a Windows 2019 server via WinRM, transport NTLM.

I log into the machine without any problems, I execute processes remotely through Ansible and Powershell modules.

When I run a search for an SSL certificate in Azure Key Vault (Get-AzKeyVaultCertificate for example) it reports a connection error, even though I have already run a successful Connect-AzAccount.

In order for me to successfully execute my playbook, I need to access the server and log in to it. Once this is done, the playbook runs smoothly.

Could anyone tell me where this "blockage" is and how to solve this problem?

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,440 questions
{count} votes

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.