Azure has two different deployment models for creating and working with resources: Resource Manager and classic. This article covers using the classic deployment model. Microsoft recommends that most new deployments use the Resource Manager model.
Here's a video walkthrough of the steps in this tutorial. It also covers endpoints and public and private ports used for connecting to a Windows VM in Azure.
Connect to the virtual machine
Sign in to the Azure classic portal.
Click Virtual Machines, and then select the virtual machine.
On the command bar at the bottom of the page, click Connect.
If the Connect button isn't available, see the troubleshooting tips at the end of this article.
Log on to the virtual machine
Clicking Connect creates and downloads a Remote Desktop Protocol file (.rdp file). Click Open to use this file.
You will get a warning that the .rdp is from an unknown publisher. This is normal. In the Remote Desktop window, click Connect to continue.
In the Windows Security window, type the credentials for an account on the virtual machine and then click OK.
Local account - this is usually the local account user name and password that you specified when you created the virtual machine. In this case, the domain is the name of the virtual machine and it is entered as vmname\username.
Domain joined VM - if the VM belongs to a domain, enter the user name in the format Domain\Username. The account also needs to either be in the Administrators group or have been granted remote access privileges to the VM.
Domain controller - if the VM is a domain controller, type the user name and password of a domain administrator account for that domain.
Click Yes to verify the identity of the virtual machine and finish logging on.
If the Connect button is inactive or you are having other problems with the Remote Desktop connection, try resetting the configuration. From the virtual machine dashboard, under Quick Glance, click Reset remote configuration.
For problems with your password, try resetting it. From the virtual machine dashboard, under Quick Glance, click Reset password.