How to Secure Connect to Azure VMs using Bastion

Table of Contents

This article shows you how to securely and seamlessly create an RDP connection to your Windows VMs located in an Azure virtual network directly through the Azure portal. 

When you use Azure Bastion, your VMs don’t require a client, agent, or additional software. You can also connect to a Linux VM using SSH using any web browsers.

Azure Bastion provides secure connectivity to all of the VMs in the virtual network in which it’s provisioned. Using Azure Bastion protects your virtual machines from exposing RDP/SSH ports to the outside world, while still providing secure access using RDP/SSH.

How to Secure Connect to Azure VMs using Bastion

Create Azure Bastion and connect to a Windows VM

1. Select any VM in a resource group then select Bastion in the Connect option.

How to Secure Connect to Azure VMs using Bastion

2. Click Deploy Bastion to create Bastion for this VM. If you want create a Bastion host to connect to any VMs within the vNet, let’s see Create a Bastion host.

How to Secure Connect to Azure VMs using Bastion

3. It could take a while, once done, you can connect to the VM using Bastion. The following image show the connection to a Windows VM.

How to Secure Connect to Azure VMs using Bastion

4. In the first time, you need allow pop-ups to open the console in the new tab.

How to Secure Connect to Azure VMs using Bastion

5. Connecting to a Windows Azure VM using Bastion.

How to Secure Connect to Azure VMs using Bastion

Finally, you can access the VM using browser instead of RDP over public IP. It’s more secure and convenient.

How to Secure Connect to Azure VMs using Bastion

Connect to a Linux VM using Bastion

In the same way, you can connect to a Azure Linux VM using Bastion without SSH over public IP address. Bastion supports authentication using password and key.

How to Secure Connect to Azure VMs using Bastion

As you can see, you’ve connect to a Linux VM using Bastion through a browser.

How to Secure Connect to Azure VMs using Bastion

Leave a Comment

Required fields are marked *