Connect to Azure
Connect your Ansible container with Azure.
In this lesson, you will connect your Ansible container with Azure. Following are the steps to connect to Azure:
- Sign in with Azure CLI.
- Create a Service Principal.
- Assign a role to the Service Principal.
- Create Environment Variables.
- Install the Azure Python module.
Prerequisites
You need to create an account on Azure. You can subscribe to Azure here.
Sign in with Azure CLI
You will use Azure CLI to create a service principal for Azure. Before you can do that, you will need a few tools to be installed and updated first. To set up Azure CLI
in your development container, run the following command:
Get hands-on with 1200+ tech skills courses.