Don't have Telegram yet? Try it now!
https://cloudenius.com/2015/02/18/azure-deploy-and-automatically-domain-join-a-vm-in-azure-runbook/
Azure - Deploy and automatically domain join a VM with Azure Automation Runbooks