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 220.127.116.11.
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 18.104.22.168 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.