Search
StarWind is a hyperconverged (HCI) vendor with focus on Enterprise ROBO, SMB & Edge

Overview of Microsoft Azure Bastion

  • December 10, 2019
  • 6 min read
IT and Virtualization Consultant. Romain is specializing in Microsoft technologies such as Hyper-V, System Center, storage, networking, and MS Azure. He is a Microsoft MVP and MCSE in Server Infrastructure and Private Cloud.
IT and Virtualization Consultant. Romain is specializing in Microsoft technologies such as Hyper-V, System Center, storage, networking, and MS Azure. He is a Microsoft MVP and MCSE in Server Infrastructure and Private Cloud.

Last week, Microsoft released Azure Bastion in GA. This feature enables us to connect to VMs (Linux or Windows) through Azure Portal.

We all know that connecting production VMs directly to the Internet via a public IP is a huge concern from a cybersecurity standpoint. Therefore, usually, all critical VMs don’t have public IPs, and they are managed either from a site-to-site VPN or a console VM that holds a public IP. In both cases, managing your Azure VMs is not easy since cybersecurity is a concern.

Thanks to Azure Bastion, you don’t need a site-to-site VPN or a console VM to manage all your Azure VMs anymore. Azure Bastion is a PaaS connected between the Internet (through a public IP) and a virtual network. When this service is enabled, you can connect to your VMs through Azure Bastion. By doing this, you will be able to open a console RDS or SSH directly inside the Azure Portal. In this topic, we will see how to deploy and use Azure Bastion.

Azure Bastion

Requirements

Before deploying Azure Bastion, you need a virtual network with a subnet called exactly AzureBastionSubnet.

AzureBastionSubnet

Deployment

To deploy Azure Bastion, open the Azure Marketplace and search for Azure Bastion.

Azure Marketplace

Then click on Create to start the process of Azure Bastion deployment.

Azure Bastion deployment

Next, specify the following information:

  • Name: provide a name for the resource
  • Resource Group: choose a resource group where Azure bastion will belong
  • Region: a few regions are currently available, select a region that fit your needs
  • Virtual Network: select the virtual network where you created AzureBastionSubnet
  • Subnet: Select AzureBastionSubnet
  • Public IP Address: you can use an existing static public IP or you can create a new one.

Create the bastion

At the end of the process, you can review the settings you specified. If all is good, just click on Create.

A screenshot of a cell phone screen with text Description automatically generated

Connect to VM through Azure Bastion

Now, when you click on Connect in an Azure VM, you have an additional option called Bastion. In order to get this option, the Azure VM must belong to the same virtual network as the Azure Bastion.

Connect to VM through Azure Bastion

For a Windows VM, specify the credentials to connect. You can open the console in a new tab or directly inside the Azure Portal:

Specify the credentials to connect

For a Linux VM, you will be asked to specify SSH credentials instead of Windows credentials.

Session logs

Azure Bastion is now able to log an active RDS / SSH session. You can check who is connected and where. You also have the option to disconnect them.

Session logs

Moreover, Azure Bastion can be connected to a Log Analytics workspace to centralize event logs.

Hey! Found Romain’s insights useful? Looking for a cost-effective, high-performance, and easy-to-use hyperconverged platform?
Taras Shved
Taras Shved StarWind HCI Appliance Product Manager
Look no further! StarWind HCI Appliance (HCA) is a plug-and-play solution that combines compute, storage, networking, and virtualization software into a single easy-to-use hyperconverged platform. It's designed to significantly trim your IT costs and save valuable time. Interested in learning more? Book your StarWind HCA demo now to see it in action!