How to change Azure VM (Windows) resolution

BinLIN12 1 Reputation point
2022-10-11T06:28:48.74+00:00

we are using Azure VM with Windows to run our E2E UI tests.

The problem is: if we are not connected to the machine with RDP the tests always failed, because the screen of the application (exe) is not matching the resolution of Azure VM.

The VM screen resolution is 1024 x 768, we need to adjust it.. can this be done?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,282 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Sreeju Nair 11,856 Reputation points
    2022-10-11T06:35:24.643+00:00

    You can handle this by modifying the registry. Update XResolution and YResolution in the hexadecimal units.

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Video\GUID\0000\DefaultSettings.XResolution  
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Video\GUID\0000\DefaultSettings.YResolution  
    

    Note: GUID will be some randomly generated GUID.

    Hope this helps


  2. rafalzak 3,216 Reputation points
    2022-10-11T06:56:47.307+00:00

    Hi @BinLIN12 ,

    Please try these:
    Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configuration\XXXXXX\XX\XX

    249253-image.png

    249262-image.png

    0 comments No comments

  3. BinLIN12 1 Reputation point
    2022-10-11T07:19:10.75+00:00

    I have the following:

    249200-image.png

    What can I change here?