If you manage a remote server or virtual machine, I am sure you are familiar with RDP and SSH. RDP and SSH, both are used to remotely access virtual machines and servers. RDP and SSH are also used to access virtual machines in a cloud such as Azure and AWS.
When you login to your Azure account, click on Connect in the Settings, you will see three ways to connect to your virtual machine, RDP, SSH, and BASTION. See below. In this article, let’s learn about what is Azure Bastion and when and why you should use Azure Bastion to connect to your Azure virtual machine.
Azure Bastion
Virtual Private Networks (VPNs) are used to provide a secure connectivity to a remote server or remote VM from a client machines, but most VPNs require you to install a VPN client application on a machine. VPN uses a public IP on a remote machine to connect to the machine.
Azure Bastion is a PaaS service of Azure that allows you connect to an Azure virtual machine using your browser and provides secure and seamless RDP/SSH connectivity directly from the Azure portal over TLS. In a typical RDP connection, a virtual machine needs to configure a public IP that is exposed to the world and a client machine uses that IP and login credentials to connect and login to the virtual machine. When you connect via Azure Bastion, your virtual machines do not need a public IP address, agent, or special client software.
Bastion provides secure RDP and SSH connectivity to all of the VMs in the virtual network in which it is 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.
Role of Virtual Private Network (VPN) in remote connectivity
A Virtual Private Network or VPN allows a client device to connect to a remote server or machine via a private network, The private network ensures that the data transferred over the network is encrypted and a third party will be unable to decrypt it. A VPN also ensures that people connected to the remote machine are authenticated and the data sent over the network is difficult to change and if data is tempered, it can be detected.
Several companies provide VPN clients as their service. Most of these companies are IT security companies.
Some of the common enterprise VPNs are Cisco AnyConnect, FortiClient by Fortinet, GlobalProtect by Palo Alto Networks, CloudVPN by Google, Citrix Gateway, SonicWall Global VPN Client, Zscaler Private Access, Enterprise Application Access by Akamai, IKEv2 by Apple, and many more. There are also some popular VPNs for individuals such as ExpressVPN, NordVPN, and IPVanish.
RDP vs SSH vs Bastian
RDP (Remote Desktop Protocol) is a Windows protocol that is used to access remote Windows virtual machines and Windows servers. RDP requires a port to be opened on the remote machine, VM or physical server. Because RDP ports are often opened to the Internet and available publicly, they are often attacked by the hackers and bots. To protect RDP instances, companies often use a virtual private network (VPN) and a form of multi factor authentication (MFA).
Note
For security reasons, it is highly recommended not to use RDP without VPN connections. Also, make sure RDP sessions are not active when you are done by manually logging off RDP sessions.
SSH (Secure Shell) protocol similar to RDP allows a client machine to communicate to another machine (server) and transfer data. The advantage of SSH is it protects the communications security and integrity with strong encryption.
SSH protocol is used in corporate networks for,
- Providing secure access for users and automated processes
- Interactive and automated file transfers
- Issuing remote commands
- Managing network infrastructure and other mission-critical system components.
The following diagram shows SSH communication between a client and a server (two computers).
Azure Bastion is a new fully platform-managed PaaS service you provision inside your virtual network. It provides secure and seamless RDP/SSH connectivity to your VMs directly in the Azure portal over SSL. When you connect via Azure Bastion, your virtual machines do not need a public IP address.
Why use Azure Bastion?
Azure Bastion makes remote connection more secure by creating a private virtual network that is more secure and restricts access to remove machines and hence limits threats such as port scanning and other types of malware targeting your VMs
How does Azure Bastion work?
Watch Microsoft’s Ashish Jain and Scott Hanselman to show how Azure Bastion gives you secure and seamless RDP and SSH access to your virtual machines. Now you can securely access your VMs over SSL from the Azure portal and without exposing public IP addresses.
Azure Bastion Architecture
Here is how Azure Bastion works according to Azure docs.
Azure Bastion deployment is per virtual network, not per subscription/account or virtual machine. Once you provision an Azure Bastion service in your virtual network, the RDP/SSH experience is available to all your VMs in the same virtual network.
RDP and SSH are some of the fundamental means through which you can connect to your workloads running in Azure. Exposing RDP/SSH ports over the Internet isn't desired and is seen as a significant threat surface. This is often due to protocol vulnerabilities. To contain this threat surface, you can deploy bastion hosts (also known as jump-servers) at the public side of your perimeter network. Bastion host servers are designed and configured to withstand attacks. Bastion servers also provide RDP and SSH connectivity to the workloads sitting behind the bastion, as well as further inside the network.
This figure shows the architecture of an Azure Bastion deployment. In this diagram,
The Bastion host is deployed in the virtual network.
The user connects to the Azure portal using any HTML5 browser.
The user selects the virtual machine to connect to.
With a single click, the RDP/SSH session opens in the browser.
No public IP is required on the Azure VM.
Key features of Azure Bastion
The following features are available,
RDP and SSH directly in Azure portal: You can directly get to the RDP and SSH session directly in the Azure portal using a single click seamless experience.



Join the conversation! Your thoughts help the community grow.