Automate Provisioning Azure Infrastructure with Packer and Terraform
Refer the below blog for complete demo on provisioning windows custom pre configured Image and VM in a Azure Resource Group using packer and terraform tool from HashiCorp
https://technicalvegeta.blogspot.com/2018/06/automate-provisioning-immutable-cloud.html