Azure Bastion provides an administrative connection path to Windows and Linux virtual machines without exposing their RDP or SSH ports to the internet. Administrators can connect through an HTML5 client in the Azure portal, with the client-to-Bastion connection protected by TLS on port 443. Bastion connects onward to the target machine using its private IP address and the configured remote-access protocol. The target still requires a working RDP or SSH service, appropriate operating-system credentials or supported identity authentication, and network rules that permit the connection.
The service has four tiers: Developer, Basic, Standard, and Premium. Developer uses shared infrastructure, is free in supported regions, and supports connecting to one VM at a time. Basic provides a dedicated deployment with fixed capacity. Standard adds configurable host capacity, native-client connections, custom target ports, IP-based connections, shareable links, and supported file-transfer workflows. Premium includes Standard capabilities and adds private-only deployment and session recording.
For dedicated deployments, reserve a subnet named AzureBastionSubnet with a /26 or larger address range. Public-facing deployments also require a Standard public IP address; Premium supports deployment without a public IP. Keep the Bastion subnet separate from workload subnets. If network security groups are attached, implement the complete required Bastion rule set, including service-management, internal communication, and outbound connectivity rules. On the target subnet or NIC, permit the required RDP or SSH port from the Bastion subnet rather than from the internet.
A dedicated Bastion deployment can serve machines in its own virtual network and supported peered virtual networks. This makes a hub-and-spoke management design practical, but peering, routing, and target security rules must provide reachability. Bastion is not a general-purpose VPN and does not automatically grant administrators unrestricted access to application networks. Private-only deployments require an existing private connection path for administrators, such as connectivity through a VPN or ExpressRoute.
Treat access to the Azure resource and authentication to the guest operating system as separate controls. Assign the minimum Azure RBAC permissions needed to use Bastion and discover the target resources, then configure the appropriate VM sign-in permissions or credentials. Microsoft Entra ID authentication for portal-based Windows RDP connections is available in preview. SSH private keys can also be retrieved from Azure Key Vault for supported connection workflows.
Enable diagnostic settings and review active sessions for operational visibility. Premium session recording stores supported session recordings in Azure Storage; recording storage must meet the service's configuration requirements. Managed identity authorization for writing graphical recordings is available in preview. RDP and SSH vision is also in preview and adds AI-assisted review of recorded sessions; retain and inspect the underlying recordings when investigating activity.
Size Standard and Premium deployments against expected concurrent sessions and workload intensity. File transfers and graphically intensive sessions reduce practical capacity, and changing scale units disconnects active sessions. Dedicated deployments incur hourly charges while provisioned, even when nobody is connected, so delete temporary environments when they are no longer needed.