> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/rdm/integrations/remote-access/azure-bastion.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Azure Bastion

Reach Azure virtual machines without a public IP address through Azure Bastion in Remote Desktop Manager, from RDP and SSH shell session entries.

Azure Bastion integrates with Remote Desktop Manager through the ***Azure Bastion*** VPN/tunnel/gateway entry, which connects ***RDP (Microsoft Remote Desktop)*** and ***SSH shell*** session entries to Azure virtual machines through the Azure Bastion native client feature, without exposing a public IP address on the machines.

## Prerequisites

* Available on Remote Desktop Manager Windows, macOS and Linux.
* An Azure Bastion resource deployed in the Azure virtual network of the virtual machines, on the Standard tier (SKU) or higher with Native Client Support enabled in the Configuration of the Bastion resource in the Azure portal. The Developer and Basic tiers do not support native client connections.
* To connect to a virtual machine by its private IP address, IP-based connection enabled on the Azure Bastion resource.
* An Azure account to sign in with, using one of the sign-in methods of the ***Authentication*** tab of the Azure Bastion entry.
* The name of the Azure Bastion resource, its subscription ID and its resource group. The tenant ID is optional.

## What you can do

* Connect to an Azure virtual machine from an ***RDP (Microsoft Remote Desktop)*** or ***SSH shell*** session entry through Azure Bastion.
* Use one Azure Bastion entry for many session entries, or configure Azure Bastion directly in the ***VPN/tunnel/gateway*** settings of a single session entry.
* Select the ***Connection mode***: ***TCP Tunnel*** opens a local tunnel to the virtual machine for RDP and SSH shell sessions, and ***RD Gateway*** connects RDP sessions through the Bastion as a Remote Desktop Gateway. ***Default*** uses the mode set in the application settings.
* Select the ***Azure Cloud*** that hosts the Bastion: ***Default***, ***Azure Public Cloud***, ***Azure China Cloud***, ***Azure US Government Cloud*** or ***Azure German Cloud***.
* Sign in to Azure with ***Use "My account settings"***, ***Use my current PowerShell login***, ***Use my current Azure CLI login*** or ***Prompt for credentials***. Several methods can be combined.
* Reach the Azure Bastion through an HTTP proxy in ***TCP Tunnel*** mode, with the settings of the ***Proxy*** tab.
* Connect to a virtual machine by its private IP address in ***TCP Tunnel*** mode.
* Override the ***Subscription ID*** and the ***Resource group*** in the ***Azure resource*** section of a session entry or of a folder, when a virtual machine is not in the same subscription or resource group as the Bastion. Both fields support variables.
* Target one instance of a virtual machine scale set with ***Scale set*** and ***Instance ID***, or use the entry name as the virtual machine name with ***Use entry name as Azure Resource name***.

## Configure Azure Bastion

### Create the Azure Bastion entry

1. Click ***Add new entry*** – ***VPN/tunnel/gateway*** – ***Other*** – ***Azure Bastion***. On Linux, the entry is in the ***Gateways*** group instead of ***Other***. On macOS, there is no group: click ***Add new entry*** – ***VPN/tunnel/gateway*** – ***Azure Bastion***.
2. Enter a name for the entry.
3. In the ***General*** tab, enter the ***Host***, which is the name of the Azure Bastion resource in the Azure portal. It is not the DNS name or the public IP address of the Bastion.
4. Enter the ***Subscription ID*** and the ***Resource group*** of the Azure Bastion resource.
5. Optionally, enter the ***Tenant ID***, as a tenant ID or a tenant domain name.
6. Select the ***Azure Cloud*** and the ***Connection mode***.
7. In the ***Authentication*** tab, select one or more sign-in methods. At least one method must be enabled. The ***Username*** on this tab is only a login hint for the Azure account. The username and password of the virtual machine are the ones of the session entry.
8. Optionally, in the ***Proxy*** tab, select the ***Proxy type*** and enter the proxy settings.
9. Click ***Save*** (***Create*** on macOS).

### Create the session entry

1. Click ***Add new entry*** – ***Session*** – ***General*** and select ***RDP (Microsoft Remote Desktop)*** or ***SSH shell***.
2. Enter a name for the entry.
3. In the ***General*** tab, enter the name of the virtual machine in Azure in the ***Host*** field, or its private IP address.
4. Enter the ***Username*** and ***Password*** of the virtual machine.
5. Open the ***VPN/tunnel/gateway*** settings of the entry.
6. In the ***Connect*** list, select ***Always connect***.
7. In the ***VPN provider*** list, under ***Existing***, select ***Existing Azure Bastion***.
8. In the ***Session*** field, select the Azure Bastion entry.
9. Click ***Save*** (***Create*** on macOS).

{% hint style="info" %}
On macOS, the PowerShell login is not supported, the Azure CLI login is not saved and the ***Tenant ID*** must be a tenant ID, not a domain name. The ***Search*** button next to the ***Tenant ID*** field, which replaces a tenant domain name with the tenant ID, is not available on macOS.
{% endhint %}

## Use Azure Bastion

1. Open the session entry linked to the Azure Bastion entry.
2. If ***Prompt for credentials*** is selected and no sign-in is cached, sign in to Azure in the web browser that opens (by default your system browser). The sign-in is kept in memory and reused until Remote Desktop Manager is closed.
3. Work in the session. The connection to the virtual machine goes through Azure Bastion.

## Integration level

Azure Bastion is an integration level 2 – Moderate support integration. See [Integration levels](https://docs.devolutions.net/resources/integration-levels).

#### See also

* [VPN/tunnel/gateway](https://docs.devolutions.net/rdm/knowledge-base/knowledge-base-articles/entry-settings/common-settings/vpn-tunnel-gateway.md)
* [Access and manage variables](https://docs.devolutions.net/rdm/knowledge-base/knowledge-base-articles/access-and-manage-variables.md)
* [My account settings](https://docs.devolutions.net/rdm/ribbon-menu-bar/file/my-account-settings.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/rdm/integrations/remote-access/azure-bastion.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
