Monday, 18 April 2016

Can’t RDP to Azure VM?

I ran into an interesting problem early this month. I was spinning up an Azure VM with SQL Server 2016 RC0 on it. For testing purposes. Looking at Stretch databases a new feature in SQL Server 2016

I run through the usual wizard to spin up a VM but I wasn't able to connect to it via RDP.

It didn't seem to make sense.

Then I realised that the port RDP was using on my VM is not necessarily a standard port. I had a look and it was using 3389. It seems the network I was on was only allowing outbound traffic on certain ports. It probably had some sort of white lists for ports you could get out on and blocked the rest.

To test this theory, using the Azure portal I changed the public port RDP was using to a common one - 443 and bang straight in.