"subscription_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"client_secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"client_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"tenant_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"object_id" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"resource_group_name" : "DR-Citrix",
"storage_account": "xxxxxxxxxx",
"capture_container_name": "images",
"capture_name_prefix": "packer",
"temp_compute_name" : "SDI2016packer",
"build_resource_group_name" : "Packer-Builds",
"image_publisher": "MicrosoftWindowsServer",
"image_offer": "WindowsServer",
"image_sku": "2016-Datacenter",
"winrm_insecure": "true",
"winrm_username": "packer",
"builders": [{
"type": "hyperv-iso",
"iso_url": "c:\\hyper-v\\SW_DVD9_Win_Server_STD_CORE_2016_64Bit_English_-4_DC_STD_MLF_X21-70526.ISO",
"iso_checksum": "E3779D4B1574BF711B063FE457B3BA63",
"iso_checksum_type": "md5",
"generation": 1,
"ram_size": 4096,
"cpu": 2,
"disk_size": 131072,
"output_directory": "c:\\packer\\output1_SDI",
"communicator":"winrm",
"winrm_username": "Admin",
"winrm_password": "xxxxxxxxxxxxx",
"winrm_timeout" : "4h",
"winrm_use_ssl": true,
"winrm_insecure": true,
"shutdown_command": "shutdown /s",
"switch_name":"External",
"floppy_files": [
"Autounattend.xml",
"..\\common\\config-winrm.ps1"
]
}],
Both builders use this provisioner script to join the domain and then do a windows-restart