Installing the Azure Python SDK
To interact with Azure with Ansible, you need to use Azure’s Ansible collection and the dependent Azure Python libraries.
Following the next steps, you will ensure your Ansible Python environment is ready to go:
- Check that the
azure.azcollectionAnsible collection is installed:root@cookbook-lab:~/cookbook-lab# ansible-galaxy collection list azure.azcollection # /usr/local/lib/python3.10/dist-packages/ansible_collections Collection Version ------------------ ------- azure.azcollection 2.7.0 - In this case, we suggest upgrading to the latest version (3.0.0) to match the Azure SDK requirements:
root@cookbook-lab:~/cookbook-lab# ansible-galaxy collection install -U azure.azcollection ... output omitted ... azure.azcollection:3.0.0 was installed successfully - You can verify that the Ansible...