Cant RDP into Azure VM

Hi, I am having problems remoting in to a machine I have failed over into azure using site recovery services.

The machine boots, I have given it a remote IP. But it wont RDP.

I have booted another machine up in the same subnet and using command prompt I create a new PS-Session then imported it. Ran all the powershell commands I could think of and they all completed without issue. However I still cant RDP in.

I can browse to it using \\ipaddress\c$ and see all the files etc.

Having some real issues trying to get into this and its pretty time sensitive.

Any help is really appreciated.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CaptainGibletsAuthor Commented:
Never mind I sorted it- I have to use Enter-PS instead of import.
Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
You need to check a couple of things.

1. The default port is 3389, check by running:
Get-ItemProperty "HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\" -NAME PORTNUMBER | select -ExpandProperty Portnumber

Open in new window

2. Open windows firewall port on VM
Windows Firewall/Advanced settings and open port TCP 3389

3. Check the NSG (Network Security Group) that should be with your VM, and create an input rule for TCP 3389.

if you want to change it for security reasons I have a script for that:

Just make sure to change the port in the windows firewall rule (2) and in the NSG (3).


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.