Launching instances in Microsoft Azure
If you followed along in Chapter 7, Ansible Windows Modules, you will have already launched a virtual machine in Microsoft Azure using the Azure CLI.
Reminder
For instructions on how to install and configure the Azure CLI, please see the documentation at https://learn.microsoft.com/en-us/cli/azure/install-azure-cli/. Remember, if you are following along on a Windows host, then make sure to install the Azure CLI within your Windows Subsystem for Linux installation alongside where you installed Ansible.
When talking through launching the Windows virtual machine, we did the following:
- We created a resource group to collect all the resources for our virtual machine workload.
- We then created a virtual network and subnet to attach to the machine’s network interface.
- We then created a network security group to secure our virtual machine.
- Once we had the basics, we launched a Windows virtual machine, attaching a public...