Cloud service · Azure · Updated

Azure Bastion - Azure Bastion is a managed service that provides RDP and SSH access to virtual machines over their private IP addresses without requiring public IP addresses on the target machines.

In short

Azure Bastion provides browser-based and, on supported tiers, native-client remote administration for Azure virtual machines. It replaces customer-managed jump hosts with a managed access service and offers tier-dependent capabilities including host scaling, private-only deployment, session recording, and tunneling to AKS API servers.

Cloud Services Hub →

10 key features of Azure Bastion

01
Browser-based RDP and SSH

Connect to Windows and Linux VMs from the Azure portal without installing a Bastion-specific client or VM agent. Target machines can remain on private IP addresses with no internet-facing RDP or SSH rules.

02
Native clients and file transfer

Standard and Premium support connections using locally installed RDP and SSH clients. Enable the appropriate native-client capability and use a supported connection workflow when administrators need local tooling or file transfer.

03
Shared development and dedicated production tiers

Developer provides free, shared access to one VM at a time in supported regions. Basic, Standard, and Premium provide dedicated deployments, with higher tiers adding capacity and access controls.

04
Configurable host capacity

Standard and Premium allow administrators to adjust scale units for concurrent connections. Capacity depends on session activity, and scale-unit changes interrupt active sessions, so schedule changes during maintenance windows.

05
Private-only access

Premium can be deployed without a public IP address. Administrators must have a private network path to the deployment, making this suitable for environments that prohibit public-facing management endpoints.

06
Session monitoring and recording

Use session management to inspect active connections and disconnect users when necessary. Premium adds recording for supported RDP and SSH sessions, with recordings stored in a configured Azure Storage container.

07
Shareable connection links

Standard and Premium can provide VM connection links that do not require users to navigate the Azure portal. Configure an expiration date and time for temporary access, and remember that possession of a link does not replace guest authentication.

08
AKS API server tunneling

Establish a local tunnel through Bastion to an AKS API server and use standard Kubernetes tools such as kubectl. This supports private clusters and applicable public clusters protected by API server authorized IP ranges.

09
Dual-stack client connectivity

IPv4 and IPv6 dual-stack support is available in preview for newly created deployments. IPv6 applies to the user-to-Bastion connection; connections from Bastion to target VMs continue to use IPv4, and existing IPv4-only deployments cannot currently be converted.

10
AI-assisted session investigation

RDP and SSH vision, available in preview, provides summaries and insights into noteworthy or risky activity in recorded privileged sessions. Investigators can prioritize sessions for review and use the underlying recordings and available SSH command logs for follow-up.

Where Azure Bastion is used

  1. 01
    Remove public VM management endpoints

    Use Bastion to administer application servers while removing their public IP addresses or internet-facing RDP and SSH rules. Allow management traffic from the Bastion subnet and keep application ingress separate.

  2. 02
    Centralize administration across peered networks

    Deploy a dedicated Bastion instance in a management hub and connect to VMs in supported peered spokes. Validate peering, routing, and target NSGs for each spoke rather than assuming that deploying Bastion creates connectivity.

  3. 03
    Provide lightweight development access

    Use the Developer tier for occasional browser-based access to development VMs in supported regions. Choose a dedicated tier when teams need additional capabilities or capacity beyond the shared, one-VM-at-a-time experience.

  4. 04
    Support audited production maintenance

    Combine Premium session recording, diagnostic logs, and time-bound privileged role assignments for maintenance of sensitive servers. Define recording access and retention procedures before operators begin using the environment.

  5. 05
    Operate within private management boundaries

    Use Premium private-only deployment when administrators already connect through a corporate private network, VPN, or ExpressRoute. This avoids exposing a public Bastion endpoint while preserving managed RDP and SSH access.

  6. 06
    Administer private Kubernetes clusters

    Tunnel local Kubernetes tooling through Bastion to an AKS API server instead of maintaining a separate jump VM. Kubernetes authentication and authorization remain necessary after the network tunnel is established.

How Azure Bastion is priced

Developer: free shared tier

The Developer tier has no Bastion service charge and uses shared infrastructure in supported regions. It supports one VM connection at a time and does not provide the dedicated capacity or advanced features of paid tiers; other Azure resource charges still apply.

Basic: hourly dedicated deployment

Basic is charged while the dedicated Bastion resource is provisioned, regardless of whether sessions are active. It provides fixed capacity for browser-based administration.

Standard: hourly deployment and additional capacity

Standard has an hourly tier charge and supports additional scale units with corresponding capacity charges. Budget for provisioned capacity rather than treating billing as a per-session or active-user model.

Premium: hourly advanced-security tier

Premium has its own hourly rate and supports additional scale units. Choose it when session recording or private-only deployment is required, and include recording storage costs in the estimate.

Data transfer and supporting resources

Outbound data transfer is charged according to applicable Azure rates. Public IP resources, recording storage, diagnostic log ingestion and retention, and network services used for private access can add separate charges; rates vary by region and configuration.

Services Azure Bastion works with

A common architecture places a dedicated Bastion deployment in a management virtual network and connects it to workload networks through peering. Administrators reach Windows and Linux VMs over private addresses, while target NSGs allow only the required management traffic from the Bastion subnet. For Premium private-only deployments, an existing VPN or ExpressRoute path provides private reachability for administrators.

Identity controls should span both Azure resource access and guest sign-in. Microsoft Entra ID, Azure RBAC, and Privileged Identity Management can restrict who can use or change Bastion and when those permissions are available. Azure Key Vault can hold SSH private keys for supported connection workflows, avoiding unmanaged copies on administrator workstations.

Operational visibility normally combines Azure Monitor diagnostic logs with Azure Activity Log events. Premium session recordings add a separate evidence source in Azure Storage, requiring explicit storage permissions, compatible settings, and retention procedures. Teams managing AKS can also tunnel local Kubernetes tooling through Bastion to private API servers, while retaining normal cluster authentication and authorization controls.

Virtual Machines

Bastion connects to Windows and Linux VMs using private IP addresses and their configured RDP or SSH services. For example, remove the public IP from a production Linux VM and allow SSH from AzureBastionSubnet in the target NSG. Guest credentials, operating-system configuration, and patching remain the VM administrator's responsibility.

Azure Virtual Network

Dedicated Bastion deployments reside in AzureBastionSubnet and can access targets in the local VNet and supported peered VNets. For example, place Bastion in a management hub and permit RDP or SSH to selected workload subnets in directly peered spokes. Configure the required subnet rules and routing explicitly; Bastion does not make VNet peering transitive.

Microsoft Entra ID (formerly Azure AD)

Microsoft Entra ID and Azure RBAC control access to Bastion resources, while Privileged Identity Management can make required role assignments time-bound. For example, let an operations group activate scoped Reader access to the Bastion resource, VM, NIC, and any additional required network resources during maintenance. Guest sign-in is a separate authorization step; portal-based Entra ID authentication for Windows RDP is available in preview.

Azure Key Vault

Supported SSH connection workflows can retrieve a private key stored as a Key Vault secret. For example, store a maintenance key centrally and grant the approved operations group the required secret read permissions instead of distributing key files manually. Ensure the corresponding public key is configured on the target VM and coordinate key rotation with guest configuration.

Azure Monitor

Bastion diagnostic settings can send resource logs to a Log Analytics workspace for investigation and operational reporting. For example, query connection activity during an incident and correlate it with Azure Activity Log changes to the Bastion resource. Diagnostic session metadata is not a substitute for Premium session recordings.

Azure Storage

Premium uses Azure Storage to retain session recordings. For example, place recordings in a dedicated container with tightly controlled read access and an agreed retention policy. Do not enable incompatible immutable storage policies or blob versioning on recording storage; managed identity authorization for writing graphical recordings is available in preview.

Azure Kubernetes Service (AKS)

Bastion can tunnel traffic from an administrator's local machine to an AKS API server. For example, establish the tunnel to a private cluster and run kubectl locally without exposing the cluster API publicly or operating a jump VM. The administrator still needs valid cluster credentials and the appropriate Kubernetes or Azure RBAC permissions.

Azure Blob Storage

Azure Bastion Premium saves graphical session recordings to a configured blob container. Bastion diagnostic settings can also archive audit logs to a storage account for retention.

Azure DDoS Protection

Azure Bastion's public IP can be protected by Azure DDoS Network Protection on its virtual network or by Azure DDoS IP Protection on the public IP itself. This protects the Bastion endpoint that accepts client connections, rather than requiring public IPs on the target VMs.

Azure DevTest Labs

Azure Bastion provides browser-based RDP and SSH access to lab VMs on a Bastion-enabled virtual network. Lab users can connect without assigning public IP addresses to individual lab VMs.

Alternatives to Azure Bastion in other clouds

AWS

AWS Systems ManagerAWS Systems Manager

AWS Systems Manager Session Manager and Azure Bastion both provide remote administration without a customer-managed jump host. Session Manager requires the SSM Agent on target machines, while Azure Bastion provides RDP and SSH access to Azure VMs without a Bastion-specific VM agent.

Compare fact by fact
Azure BastionAWS Systems Manager
Target machinesAzure virtual machinesEC2, on-premises, and multicloud nodes
Agent on targetNo Bastion-specific agent requiredSSM Agent required
Remote access billingHourly for dedicated deployments$0.05/session on hybrid/multicloud nodes

What is Azure Bastion

2 min read

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.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.