When deploying a new VM in Azure we noticed that some of them failed to Activate their license as it was not able to locate the KMS service (Microsoft’s KMS, not an internal server.
Microsoft support advised me to create a User Defined Route (UDR) for their KMS server which has an IP of 188.8.131.52.
In Azure browse to ‘Route Tables’ and click ‘Add’
Here you create the route table – In this case I named it rt-kms-activation, once created click on it > click ‘Routes’ > click Add
Now we add the individual routes – I name it ‘kms-traffic’ and configured it as below:
So here we are defining the route to say any traffic destined for 184.108.40.206 will take the next hop to the Internet and in our case Egressed straight out of the Azure Data Center Internet connection.
I then ‘Associated’ the route table to a test subnet I had a inactivated VM in:
Now it was time to test if I could activate the VM by using the Slmgr.vbs /ato command
As you can see the product activated successfully, as this point you an unassociate the Route from the subnet if you wish.