/azure-gaming

Azure Cloud Gaming

Primary LanguagePowerShellMIT LicenseMIT

Azure Gaming

Tested 2023-11-28, and to be honest projhject can be used for different GPU Windows workloads - just gaming is example.

About

The setup script configures everything that's needed to run or develop games via Remote Desktop. It use Standard NV12s v3 (12 vcpus, 112 GiB memory) VM machine (VM) with a single NVIDIA Tesla V100 GPUs.

These scripts Deploy Azure VMs Optimised for Gaming. It is based on https://github.com/ecalder6/azure-gaming and removed some functionality like Zero VPN, Steam.

Orginal project was inspired by this (https://lg.io/2016/10/12/cloudy-gamer-playing-overwatch-on-azures-new-monster-gpu-instances.html).

Disclaimer

This software comes with no warranty of any kind.

Pricing

To game on the cloud on Azure, you will have to pay for the virtual machine, outgoing data bandwidth from the VM, and managed disk space.

Currently there is high demand on GPU instances, so you need to request quota for GPU from Microsoft via HELP.

Usage

Just push the button Deploy To Azure. If you Open Device Manager and you can not see NVIDIA Tesla M60 Graphics Card just open PowerShell and type:

Start-Process -FilePath "C:\NVIDIA\DisplayDriver\391.03\Win10_64\International\setup.exe" -ArgumentList "-s", "-noreboot" -Wait

After that please restart computer and open PowerShell in Admin mode agian and issue:

$nvsmi = "C:\Program Files\NVIDIA Corporation\NVSMI\nvidia-smi.exe" $gpu = & $nvsmi --format=csv,noheader --query-gpu=pci.bus_id & $nvsmi -g $gpu -fdm 0

and restart computer just again.

Check

Verify GPU-accelerated frame encoding

To verify that Remote Desktop is using GPU-accelerated encoding:

Connect to the desktop of the VM by using the Azure Virtual Desktop client.
Open Event Viewer and go to the following node: Applications and Services Logs > Microsoft > Windows > RemoteDesktopServices-RdpCoreCDV > Operational.
Look for event ID 170. If you see AVC hardware encoder enabled: 1, Remote Desktop is using GPU-accelerated encoding.

Verify full-screen video encoding

To verify that Remote Desktop is using full-screen video encoding:

Connect to the desktop of the VM by using the Azure Virtual Desktop client.
Open Event Viewer and go to the following node: Applications and Services Logs > Microsoft > Windows > RemoteDesktopServices-RdpCoreCDV > Operational.
Look for event ID 162. If you see AVC Available: 1 Initial Profile: 2048, Remote Desktop is using full-screen video encoding (AVC 444).

II. Automatically Deploy Your Azure VM

Automated Standard

Automated Low Priority

Currently only Standard, non Low-Priority, Spot template are updated, but after compare to standard one it should work also.