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.
8,794 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. rafalzak 3,246 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

    1 person found this answer helpful.
    0 comments No comments

  2. Sreeju Nair 12,656 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


  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?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.