Azure - Create a Dynamic Inventory
Create a dynamic inventory of the deployed Linux and Windows hosts on Azure.
We'll cover the following
Ansible has a built-in inventory plugin for Azure called azure_rm
. This plugin queries Azure Resource Manager for the VM details and constructs an Ansible inventory from that information.
Virtual machines in Azure populate host entries, and groups and group memberships are determined by host variables assigned to each host.
We have created a file named hosts_azure_rm.yml
.
Get hands-on with 1200+ tech skills courses.