Lately, Azure is becoming one of the biggest clouds, mainly in some companies.
As you may imagine, Ansible has Azure-specific modules to create Azure environments without pain.
The first thing we will need on Azure, after having created the account, is to set up the authorization.
There are several ways to do it, but the easiest one is probably creating the ~/.azure/credentials file in the INI format containing a [default] section with subscription_id and, alternatively, client_id and secret or ad_user and password.
An example of this would be the following file:
[default]
subscription_id: __AZURE_SUBSCRIPTION_ID__
client_id: __AZURE_CLIENT_ID__
secret: __AZURE_SECRET__
After this, we need a resource group in which we then will create all our resources.
To do so, we can use the azure_rm_resourcegroup, with the following syntax:
- name: Create resource...