> For the complete documentation index, see [llms.txt](https://docs.p0.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.p0.dev/integrations/resource-integrations/rdp/installation.md).

# Installing RDP

Install the P0 RDP integration on an Azure subscription that already has IAM management and an Azure Bastion host configured.

You install RDP on each Azure subscription whose Windows VMs people should reach. RDP builds on the Microsoft Azure integration, so most of the setup happens there.

## Before you begin

Complete these steps of the [Microsoft Azure](https://docs.p0.dev/integrations/resource-integrations/microsoft-azure.md) integration for the subscription, in order:

1. [Azure app registration](https://docs.p0.dev/integrations/resource-integrations/microsoft-azure/azure-app-registration.md)
2. [IAM management](https://docs.p0.dev/integrations/resource-integrations/microsoft-azure/iam-management.md)
3. [Configure bastion host integration](https://docs.p0.dev/integrations/resource-integrations/microsoft-azure/configure-bastion-host-integration.md), with **Azure bastion host** as the connection type. Follow [Azure bastion host](https://docs.p0.dev/integrations/resource-integrations/microsoft-azure/configure-bastion-host-integration/azure-bastion-host.md). RDP doesn't work through a custom jump host.

When you configure the bastion host, the **Standard user role id** you enter is the role P0 gives each person on the Bastion host during an RDP session. RDP doesn't use the **Admin user role id**.

You don't need to install SSH access for RDP.

Each person who requests RDP access must be a user in the Microsoft Entra ID directory that you connected to P0. See [Microsoft Entra ID](https://docs.p0.dev/integrations/directory-integrations/microsoft-entra-id.md).

### Prepare each VM

Install the `AADLoginForWindows` extension on each Windows VM that people should reach. It lets people sign in to the VM with Microsoft Entra ID, and P0 lists a VM only when the extension is installed on it. See [Microsoft's guide to Entra ID sign-in for Windows VMs](https://learn.microsoft.com/en-us/entra/identity/devices/howto-vm-sign-in-azure-ad-windows).

The VM doesn't need to be in the Bastion host's virtual network. If it's in a different one, P0 peers the two networks while a session needs it.

## Install RDP on a subscription

1. Open the P0 dashboard at [p0.app](https://p0.app) and log in to your organization.
2. In the sidebar, click **Integrations**. Under **Resources**, click **Remote Desktop Protocol (RDP)**.
3. Select the **RDP access control** component, and click **Add subscription**.
4. Select the subscription. The list shows the subscriptions where Azure IAM management is installed.
5. Click **Next**. P0 checks that the subscription's bastion host is an Azure Bastion host.
6. Click **Finish**.

{% hint style="success" %}
People can now request RDP sessions to the subscription's Windows VMs. See [Requesting RDP access](https://docs.p0.dev/integrations/resource-integrations/rdp/requesting-access.md).
{% endhint %}

## Troubleshooting

| Message                                                                                                                                                                                  | What to do                                                                                                                                                                                                                               |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Azure RDP requires an Azure Bastion host. Install and configure the bastion host for this subscription as an "Azure bastion host" before enabling RDP.`                                 | Configure the subscription's bastion host, as in [Azure bastion host](https://docs.p0.dev/integrations/resource-integrations/microsoft-azure/configure-bastion-host-integration/azure-bastion-host.md), then add the subscription again. |
| `Azure RDP is only supported with an Azure Bastion host. This subscription's bastion host is configured as a custom jump host; reconfigure it as an "Azure bastion host" to enable RDP.` | Reconfigure the subscription's bastion host with **Azure bastion host** as the connection type, then add the subscription again.                                                                                                         |
| A VM doesn't appear in the request form                                                                                                                                                  | Install the `AADLoginForWindows` extension on the VM.                                                                                                                                                                                    |
