Administering VMs Securely with Azure Bastion
This lesson explains how Azure Bastion provides RDP and SSH without public IPs, its SKUs and its permissions.
Learning outcomes
After completing this lesson, you will be able to:
- Describe how Azure Bastion connects to VMs.
- Distinguish between the Developer, Basic, Standard and Premium SKUs.
- Identify the subnet and permission requirements.
How Bastion works
Azure Bastion is a fully managed PaaS service deployed into a virtual network. An administrator selects Connect > Bastion on a VM in the Azure portal and opens an RDP or SSH session in the browser over HTTPS (TCP 443); Bastion then connects to the VM over its private IP address. VMs need no public IP and no agent, and their NSGs only need to allow RDP or SSH from the Bastion subnet. One Bastion host serves VMs in its own VNet and in peered VNets.
The following diagram compares public IP addresses on each VM with one Azure Bastion host serving VMs in three peered virtual networks.

What Bastion needs
SKUs
Bastion is offered in four SKUs. The comparison below summarizes them.
Dedicated SKUs need a subnet named exactly AzureBastionSubnet of at least /26, and a Standard public IP unless deployed private-only in Premium. The SKU can be upgraded but not downgraded. With Standard or Premium, az network bastion rdp and az network bastion ssh connect from the local RDP or SSH client (native client support).
Which Bastion SKU?
Permissions
A user needs Reader on the VM, on its network interface (with its private IP) and on the Bastion resource, plus Reader on the peered VNet when the VM is in a peered network, and valid credentials for the operating system. Microsoft Entra ID authentication can be used for Windows and Linux VMs that support it.
Permissions to connect
Closing RDP to the internet
Twenty Windows VMs in three peered VNets have public IPs with RDP open to the internet. Security requires removing all public IPs from the VMs. Administrators must keep using their local RDP client and copy files to the VMs. Costs must be minimized. What should you deploy?
Deploy one Azure Bastion Standard host in an AzureBastionSubnet of /26 or larger in the hub (or one of the peered VNets), which reaches all peered VNets, then remove the VMs' public IPs and restrict NSGs to allow RDP only from the Bastion subnet. Standard is needed for native client connections and file transfer; Basic supports only browser sessions, and the Developer SKU serves only its own VNet, one connection at a time.
What is the minimum size of AzureBastionSubnet for dedicated Bastion SKUs?
Show answer
/26.
Exam Tips
Remember for the exam
- Bastion connects over TLS 443 to VMs' private IPs; VMs need no public IP.
- Dedicated SKUs need AzureBastionSubnet of /26 or larger.
- Native client and file transfer need Standard or Premium; session recording needs Premium.
- One Bastion serves peered VNets (not the Developer SKU).