|
| 1 | +--- |
| 2 | +title: 'Connect to a VM - specified private IP address: Azure portal' |
| 3 | +titleSuffix: Azure Bastion |
| 4 | +description: Learn how to connect to your virtual machines using a specified private IP address via Azure Bastion. |
| 5 | +author: cherylmc |
| 6 | + |
| 7 | +ms.service: bastion |
| 8 | +ms.topic: how-to |
| 9 | +ms.date: 04/26/2022 |
| 10 | +ms.author: cherylmc |
| 11 | + |
| 12 | +--- |
| 13 | + |
| 14 | +# Connect to a VM via specified private IP address through the portal |
| 15 | + |
| 16 | +IP-based connection lets you connect to your on-premises, non-Azure, and Azure virtual machines via Azure Bastion over ExpressRoute or a VPN site-to-site connection using a specified private IP address. The steps in this article show you how to configure your Bastion deployment, and then connect to an on-premises resource using IP-based connection. For more information about Azure Bastion, see the [Overview](bastion-overview.md). |
| 17 | + |
| 18 | +:::image type="content" source="./media/connect-ip-address/architecture.png" alt-text="Architecture diagram." lightbox="./media/connect-ip-address/architecture.png"::: |
| 19 | + |
| 20 | +> [!NOTE] |
| 21 | +> This configuration requires the Standard SKU tier for Azure Bastion. To upgrade, see [Upgrade a SKU](upgrade-sku.md). |
| 22 | +> |
| 23 | +
|
| 24 | +**Limitations** |
| 25 | + |
| 26 | +IP-based connection won’t work with force tunneling over VPN, or when a default route is advertised over an ExpressRoute circuit. Azure Bastion requires access to the Internet and force tunneling, or the default route advertisement will result in traffic blackholing. |
| 27 | + |
| 28 | +## Prerequisites |
| 29 | + |
| 30 | +Before you begin these steps, verify that you have the following environment set up: |
| 31 | + |
| 32 | +* A VNet with Bastion already deployed. |
| 33 | + |
| 34 | + * Make sure that you have deployed Bastion to the virtual network. Once the Bastion service is provisioned and deployed in your virtual network, you can use it to connect to any VM deployed in any of the virtual networks that is reachable from Bastion. |
| 35 | + * To deploy Bastion, see [Quickstart: Deploy Bastion with default settings](quickstart-host-portal.md). |
| 36 | + |
| 37 | +* A virtual machine in any reachable virtual network. This is the virtual machine to which you'll connect. |
| 38 | + |
| 39 | +## Configure Bastion |
| 40 | + |
| 41 | +1. Sign in to the [Azure portal](https://ms.portal.azure.com/). |
| 42 | + |
| 43 | +1. In the Azure portal, go to your Bastion deployment. |
| 44 | + |
| 45 | +1. IP based connection requires the Standard SKU tier. On the **Configuration** page, for **Tier**, verify the tier is set to the **Standard** SKU. If the tier is set to the Basic SKU, select **Standard** from the dropdown. |
| 46 | +1. To enable **IP based connection**, select **IP based connection**. |
| 47 | + |
| 48 | + :::image type="content" source="./media/connect-ip-address/ip-connection.png" alt-text="Screenshot of Configuration page." lightbox="./media/connect-ip-address/ip-connection.png"::: |
| 49 | + |
| 50 | +1. Select **Apply** to apply the changes. It takes a few minutes for the Bastion configuration to complete. |
| 51 | + |
| 52 | +## Connect to VM |
| 53 | + |
| 54 | +1. To connect to a VM using a specified private IP address, you make the connection from Bastion to the VM, not directly from the VM page. On your Bastion page, select **Connect** to open the Connect page. |
| 55 | + |
| 56 | +1. On the Bastion **Connect** page, for **Hostname**, enter the private IP address of the target VM. |
| 57 | + |
| 58 | + :::image type="content" source="./media/connect-ip-address/ip-address.png" alt-text="Screenshot of Connect using Azure Bastion page." lightbox="./media/connect-ip-address/ip-address.png"::: |
| 59 | + |
| 60 | +1. Adjust your connection settings to the desired **Protocol** and **Port**. |
| 61 | + |
| 62 | +1. Enter your credentials in **Username** and **Password**. |
| 63 | + |
| 64 | +1. Select **Connect** to connect to your virtual machine. |
| 65 | + |
| 66 | +## Next steps |
| 67 | + |
| 68 | +Read the [Bastion FAQ](bastion-faq.md) for additional information. |
0 commit comments