Connect to your Azure-based virtual machine
This article explains how to connect to and sign into the virtual machines (VMs) you created on Azure. Once you have successfully connected, you can work with the VM as if you were locally logged on to its host server.
Connect to a Windows-based VM
You will use the remote desktop client to connect to the Windows-based VM hosted on Azure. Most versions of Windows natively contain support for the remote desktop protocol (RDP). For other machines, you can find more information about clients in Remote Desktop clients.
The following article details how to use the built-in Windows RDP support to connect to your VM: How to connect and log on to an Azure virtual machine running Windows.
You may get security warnings during the process, for example that the .rdp file is from an unknown publisher or that your user credentials cannot be verified. It is safe to ignore these warnings.
Connect to a Linux-based VM
In order to connect the Linux-based VM, you need a secure shell protocol (SSH) client. This discussion will use the free PuTTY SHH terminal.
In the Virtual machines blade of the Azure portal, select the VM you want to connect to.
Start the VM if it is not already running.
Click on the name of the VM to open its Overview page.
Note the Public IP address and DNS name of your VM. (If these values are not set, then you must Create a network interface
Open the PuTTY application.
In the PuTTY Configuration dialog, enter the IP address or DNS name of your VM.
Click Open to open a PuTTY terminal.
When you are prompted, enter the account name and password of your Linux VM account.
If you are having connection problems, refer to the documentation for your SSH client, for example Chapter 10: Common error messages.
For more information, including how to add a desktop to a provisioned Linux VM, see Install and configure Remote Desktop to connect to a Linux VM in Azure.
Stop unused VMs
Azure bills for VM hosting when a VM is running or idle. Therefore it is best practice to stop VMs that are not currently being used. For example, test, backup, or retired VMs are candidates for shutdown. To shut down a VM, perform the following steps:
On the Virtual machines blade, select the VM you want to stop.
In the toolbar near the top of the page, click on the Stop button.
Azure quickly stops the VM in a process called deallocation, which not only shuts down the operating system on the VM, but also frees the hardware and network resources previously provisioned for it.
If you want to later reactivate a stopped VM, select it and click the Start button.
After you are remotely connected, you are ready to configure your VM.