Recently i have been assigned a task to create virtual machine and using existing virtual network in Azure using Terraform that will be used to create multiple vms with different names but same existing vNet.
To achieve that goal, i came up to use terraform module where you can use same module multiple times by calling it in your main.tf file.
You can grab this templates from Github Repo: Azure VM Terraform Module