Seamless automation integration with Azure
Another global cloud that Ansible can manage is Microsoft Azure.
Azure integration, like AWS integration, requires quite a few steps to be performed in Playbooks.
The first thing you will need to do is set up the authentication so that Ansible is allowed to control your Azure account.
Installation
To let Ansible manage the Azure cloud, you need to install the Azure SDK for Python. Do this by executing the following command:
$ pip install -r ~/.ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt
We can now proceed to install the Azure collection:
$ ansible-galaxy collection install azure.azcollection
Now that you have all the dependencies present, you can start the authentication process.
Authentication
There are different ways to ensure that Ansible is able to manage Azure for you, based on the way your Azure account is set up, but they can all be configured in the ~/.
azure/credentials...