The packer script which provide and implementation the windows server in Azure Cloud, access via winrm
and self configuration for powershell
script
More information about Packer:
You can took the script to put on provisioner
in Build Azure Agent with .NET Core by Powershell