How do you set up a VM with GPU?

Steven Dorling 26 Reputation points
2022-03-23T17:51:05.927+00:00

I am trying to set up a virtual VM to try out as a gaming PC but I the few GPU options I can see in the lists of VM sizes are not selectable. Is it because I am on a PAYG account? Or was it the region I was selecting? (UK South)??

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

Accepted answer
  1. kobulloc-MSFT 26,801 Reputation points Microsoft Employee Moderator
    2022-03-24T00:17:35.72+00:00

    Hello, @Steven Dorling !

    You can set up a VM with a GPU using several account types, including Pay-as-you-go. There has been a recent surge in demand for GPU VMs (I know that simulations in particular have been popular) so finding hardware availability may take some effort, especially in light of recent supply chain challenges around the globe. I've noticed that some regions tend to have better availability than others so if you are flexible, I would check surrounding regions.

    Finding a VM with a GPU
    GPU optimized virtual machine sizes are going to be the N series. To find what specific sizes are offered in each region, you can check the products available by region page (and depending on current availability, you may need to look at neighboring regions):

    https://azure.microsoft.com/en-us/global-infrastructure/services/?products=virtual-machines

    186234-image.png

    Setting up your GPU drivers
    For first time setup, you will likely want to consult the documentation to make sure your drivers are properly configured on a VM. We have instructions for both NVIDIA and AMD GPU drivers:

    Choosing an OS (and a note about Windows 10)
    There are a lot of different OS options to choose from depending on what your goals are. As a quick note for Windows 10 VMs, the licensing is more complicated than with Windows Server and Linux VMs. Windows 10 VMs require that you bring a license with you and that license depends on what the VM will be used for (generally this falls into personal/dev/test and production):

    A quick note about ping
    If you're interested in gaming, you're probably also interested in ping. While the latency within Azure is extremely low (62ms on average round trip from a sample taken in 2021 when going from West US to East US, for example), you'll want to experiment with your personal connection to see which region gives you the best latency.

    How do I set up a VM?
    You can set up a VM using a variety of techniques including Azure CLI, the Azure Portal, Azure PowerShell, Bicep, and ARM templates. For first time setup I usually recommend using the portal:

    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-portal

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Steven Dorling 26 Reputation points
    2022-03-24T15:31:32.557+00:00

    Hi again,

    I have tried different regions, all display the same info message:
    186489-image.png

    Could it be because the region of my PAYG subscription is set to Australia Central, which is a region that doesn't have GPU enabled VMs?


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.