In this recipe, we will create a virtual machine using the azure_rm_virtualmachine module. Azure provides two types of virtual machines: Windows and Linux. In this recipe, we will be spawning a Linux virtual machine.
Before we jump into creating a Linux VM, we should know the following terms with respect to Azure:
- Resource groups: These are logical containers where Azure resources are deployed. We can deploy resources into a specific resource group for a specific use case. For example, we can have resource groups named production for all the production resources and staging for all the resources required for staging.
- Image: Azure Marketplace has various images for creating virtual machines. We can select ...