Adjust the file `variables.tf` to your needs to choose
- location / region
- DNS prefix and suffix
- size of the VM's, default is `Standard_D2_v3`
- size of the VM's, default is `Standard_D2_v3` which is needed for nested virtualization
- username and password
## Plan
### Plan
```bash
terraform plan
```
## Create / Apply
### Create / Apply
Create the Azure VM with. After 5 minutes the VM should be up and running, and the provision.ps1 script will run inside the VM to install Packer, Vagrant, HyperV and then reboots the VM.
```bash
terraform apply
```
## Destroy
## Stage 2: Packer build
Now RDP into the Azure VM. Open a PowerShell terminal and clone my packer-windows repo or any other repo with a Packer template for HyperV.
Packer creates an external Hyper-V virtual switch with name "ext". It downloads the eval ISO file and boots a Hyper-V VM to run the whole packer build configuration.
You could also try to run it in this Azure VM with