This is a sample usage of Packer to build a Windows image on Azure.
The simple flow creates a ready-to-use image, that when deployed, will auto-join a domain on an already prepared VNET.
It is utilizing SetupComplete2.cmd https://docs.microsoft.com/en-us/dynamics-nav/setupcomplete2.cmd-file-example