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

%3CLINGO-SUB%20id%3D%22lingo-sub-1482658%22%20slang%3D%22en-US%22%3EAzure%20Virtual%20Machine%20to%20auto%20reboot%20and%20log%20back%20in%20with%20specific%20resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1482658%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20set%20up%20an%20Azure%20VM%20to%20run%20UiPath%20and%20RPA%20processes.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20order%20for%20this%20to%20work%20I%20require%20the%20VM%20to%20be%20able%20to%20reboot%2C%20and%20log%20itself%20back%20in%20as%20Admin%20at%20a%20specific%20screen%20resolution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20would%20be%20the%20best%20way%20to%20achieve%20this%20please%3F%26nbsp%3B%20In%20the%20past%20I%20was%20led%20to%20believe%20that%20the%20cheaper%20Azure%20VM's%20do%20not%20come%20with%20a%20graphics%20card%20so%20the%20resolution%20was%20only%20set%20upon%20RDP'ing%20into%20the%20VM.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20advice%20would%20be%20much%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1482658%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1483222%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Virtual%20Machine%20to%20auto%20reboot%20and%20log%20back%20in%20with%20specific%20resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1483222%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F707388%22%20target%3D%22_blank%22%3E%40TWest1150%3C%2FA%3E%26nbsp%3BIf%20I%20understood%20correctly%2C%20you%20have%20the%20following%203%20requirements%20-%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20%3CSTRONG%3EAuto%20stop%2Fstart%20of%20your%20Azure%20VM%3A%3C%2FSTRONG%3E%20You%20can%20easily%20achieve%20this%20by%20using%20Azure%20Automation%20account%20runbook.%20Refer%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fautomation%2Fautomation-solution-vm-management%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fautomation%2Fautomation-solution-vm-management%3C%2FA%3E%3C%2FP%3E%3CP%3E2.%20%3CSTRONG%3EAuto%20admin%20logon%20to%20the%20VM%20during%20start-up%3A%3C%2FSTRONG%3E%20This%20can%20be%20done%20by%20changing%20couple%20of%20registry%20setting%20(I%20am%20assuming%20you%20are%20using%20Windows%20VM).%20Refer%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F324737%2Fhow-to-turn-on-automatic-logon-in-windows%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F324737%2Fhow-to-turn-on-automatic-logon-in-windows%3C%2FA%3E%3C%2FP%3E%3CP%3E3.%20%3CSTRONG%3EAdjust%20screen%20resolution%20of%20your%20Azure%20VM%3A%3C%2FSTRONG%3E%20You%20should%20be%20able%20to%20change%20the%20default%20screen%20resolution%20of%20the%20VM%20by%20changing%26nbsp%3B%3CSPAN%3EDefaultSettings.XResolution%20and%26nbsp%3BDefaultSettings.YResolution%20value%20under%20the%20following%20registry%20key%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHKEY_LOCAL_MACHINE%2FSYSTEM%2FCurrentControlSet%2FHardware%20Profiles%2FCurrent%2FSystem%2FCurrentControlSet%2FVideo%2F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EPlease%20give%20it%20a%20try%20on%20your%20test%20VM%20and%20let%20me%20know%20how%20it%20goes.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ERohan%20Islam%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1485164%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Virtual%20Machine%20to%20auto%20reboot%20and%20log%20back%20in%20with%20specific%20resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1485164%22%20slang%3D%22en-US%22%3EHi%20Rohan%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20so%20much%20for%20the%20comprehensive%20reply.%20I'll%20give%20it%20a%20try%20and%20report%20back%20if%20there%20are%20any%20further%20questions.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks!%3C%2FLINGO-BODY%3E
Highlighted
New 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
Highlighted

@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

Highlighted
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!