Azure Virtual Machine to auto reboot and log back in with specific resolution

Copper Contributor

Hi,

 

I would like to set up an Azure VM to run UiPath and RPA processes. 

 

In order for this to work I require the VM to be able to reboot, and log itself back in as Admin at a specific screen resolution.

 

What would be the best way to achieve this please?  In the past I was led to believe that the cheaper Azure VM's do not come with a graphics card so the resolution was only set upon RDP'ing into the VM.

 

Any advice would be much appreciated.

 

Thanks

2 Replies

@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

Hi Rohan,

Thanks so much for the comprehensive reply. I'll give it a try and report back if there are any further questions.

Thanks!