Ansible interacts with the Azure resource manager's REST APIs to manage infrastructure components using Python SDK provided by Microsoft Azure, which requires credentials of an authorized user to interact with Azure REST APIs.
Preparing Ansible to work with Azure
How to do it...
Ansible packages cloud modules to interact with Azure resource manager. These modules require Azure Python SDK to interact with the Azure resource manager's APIs. We will now prepare our host to run Ansible using Azure cloud modules and put it together so that it can create and manage Azure resources:
- We should start by installing Azure SDK on a host running Ansible:
$ pip install ansible[azure]
- We need to set up credentials for the Azure...