How to Add the latest AMD GPU driver to Azure Template

After following the Customer Advisory: Update your AMD GPU Drivers, how do I apply it to my latest template. Installing the driver to the template may not install on the new provisioned VMs. Installing the driver during the VM provisioning process will allow the driver to install on the every single time it is created.

After the new template is cloned, log into the template operating system.

Download or copy of the latest AMD GPU driver from Microsoft’s website.

Install or extract the .ZIP file to the C:\Installs\AMD folder on the template.

Create a new WsSetupComplete.cmd file with Notepad. Insert the following lines into the text file:

@echo About to install AMD Drivers at %time% START /MIN /wait "AMD Setup" "C:\Installs\AMD\AMD-Azure-NVv4-Driver-21Q2\setup" -install @echo Finished installing AMD at %time%

Be sure the path and version of the driver is correct in the line that starts with “Start”.

Save this .CMD file into the C:\Programdata\WorkspotAgent\Config folder.

Apply the template to the pool or preview pool to test it.