Bastion

What is Azure Bastion? (Preview)

Recently I took sometime to test the Azure Bastion (Preview)

What is Azure Bastion?

Azure Bastion is a PaaS that allows you to connect securely and seamlessly to your virtual machines running on Azure directly from the Azure portal over SSL, without assigning or exposing public IP for the machine. 

architecture

Key features

  • You can RDP and SSH to your virtual machine directly from the Azure portal.
  • The RDP and SSH session are over SSL on port 443 therefore no changes to corporate firewalls are needed.
  • Azure VM does not require a public IP.
  • No need to harden with NSG.
  • Since there is no public IP you are protected against port scanning.
  • Since Azure Bastion is offered as PaaS its protected against zero-day exploits by the Microsoft team.

Prerequisites/Notes

You must use the preview link to access Azure Bastion.

https://aka.ms/BastionHost

Azure Bastion is currently only offered in the following regions.

West US
East US
West Europe
South Central US
Australia East
Japan East

How to setup Azure Bastion

  1. Login to Azure portal using the preview link https://aka.ms/BastionHost
  2. Search for Bastions in your Azure portal
  3. Add a new Bastion service.
  4. Region: you VM and Bastion instance must be in the same region
  5. Virtual network: would be the network assigned to the VM later
  6. Subnet: Subnet must contain the name AzureBastionSubnet
  7. When creating new virtual network the subnet name must contain AzureBastionSubnet.
  8. New create a new virtual machine 
  9. Region: must be the same as the Bastion service
  10. Virtual network: assign the network created for Bastion
  11. Public IP: none
  12. Connect to the new VM
  13. Enter the username and password for the VM
  14. You would be connect to the new VM
  15. On the left you will see the clipboard
  16. You could copy and paste text from your local machine to this VM

 

Assign Network Security Groups (NSG) to Bastion

You can assign NSG to the AzureBastionSubnet however the following 3 rules must be allowed on the inbound security rules.

 

Source

https://docs.microsoft.com/en-us/azure/bastion/bastion-overview