Forum Discussion
Azure Virtual Machine to auto reboot and log back in with specific resolution
TWest1150 If I understood correctly, you have the following 3 requirements -
1. Auto stop/start of your Azure VM: You can easily achieve this by using Azure Automation account runbook. Refer https://docs.microsoft.com/en-us/azure/automation/automation-solution-vm-management
2. Auto admin logon to the VM during start-up: This can be done by changing couple of registry setting (I am assuming you are using Windows VM). Refer https://support.microsoft.com/en-us/help/324737/how-to-turn-on-automatic-logon-in-windows
3. Adjust screen resolution of your Azure VM: You should be able to change the default screen resolution of the VM by changing DefaultSettings.XResolution and DefaultSettings.YResolution value under the following registry key
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Hardware Profiles/Current/System/CurrentControlSet/Video/
Please give it a try on your test VM and let me know how it goes.
Thanks,
Rohan Islam
Thanks so much for the comprehensive reply. I'll give it a try and report back if there are any further questions.
Thanks!