Connect to a VM - specified private IP address: Azure portal - Azure Bastion (2024)

  • Article

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.

Connect to a VM - specified private IP address: Azure portal - Azure Bastion (1)

Note

This configuration requires the Standard SKU tier or higher for Azure Bastion. To upgrade, see Upgrade a SKU.

Limitations

Prerequisites

Before you begin these steps, verify that you have the following environment set up:

  • A VNet with Bastion already deployed.

    • 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.
    • To deploy Bastion, see Quickstart: Deploy Bastion with default settings.
  • A virtual machine in any reachable virtual network. This is the virtual machine to which you'll connect.

Configure Bastion

  1. Sign in to the Azure portal.

  2. In the Azure portal, go to your Bastion deployment.

  3. IP based connection requires the Standard SKU tier or higher. On the Configuration page, for Tier, verify the tier is set to the Standard SKU or higher. If the tier is set to the Basic SKU, select a higher SKU from the dropdown.

  4. To enable IP based connection, select IP based connection.

    Connect to a VM - specified private IP address: Azure portal - Azure Bastion (2)

  5. Select Apply to apply the changes. It takes a few minutes for the Bastion configuration to complete.

Connect to VM - Azure portal

  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.

  2. On the Bastion Connect page, for IP address, enter the private IP address of the target VM.

    Connect to a VM - specified private IP address: Azure portal - Azure Bastion (3)

  3. Adjust your connection settings to the desired Protocol and Port.

  4. Enter your credentials in Username and Password.

  5. Select Connect to connect to your virtual machine.

Connect to VM - native client

You can connect to VMs using a specified IP address with native client via SSH, RDP, or tunneling. To learn more about configuring native client support, see Configure Bastion native client support.

Note

This feature does not currently support Microsoft Entra authentication or custom port and protocol.

Use the following commands as examples:

RDP:

az network bastion rdp --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-address "<VMIPAddress>

SSH:

az network bastion ssh --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-address "<VMIPAddress>" --auth-type "ssh-key" --username "<Username>" --ssh-key "<Filepath>"

Tunnel:

az network bastion tunnel --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-ip-address "<VMIPAddress>" --resource-port "<TargetVMPort>" --port "<LocalMachinePort>"

Next steps

Read the Bastion FAQ for additional information.

Connect to a VM - specified private IP address: Azure portal - Azure Bastion (2024)

FAQs

Connect to a VM - specified private IP address: Azure portal - Azure Bastion? ›

Connect to VM - Azure portal

How do I Connect to a VM using Azure Bastion? ›

In the Azure portal, go to the virtual machine that you want to connect to. On the Overview page, select Connect, then select Bastion from the dropdown to open the Bastion page. You can also select Bastion from the left pane. On the Bastion page, enter the required authentication credentials, then click Connect.

How do I Connect to a private VM in Azure? ›

In the Azure Bastion section, select Enable Bastion. Bastion uses your browser to connect to VMs in your virtual network over Secure Shell (SSH) or Remote Desktop Protocol (RDP) by using their private IP addresses. The VMs don't need public IP addresses, client software, or special configuration.

How do I Connect to Azure VM IP address? ›

Connect to the virtual machine
  1. Go to the Azure portal to connect to a VM. ...
  2. Select the virtual machine from the list.
  3. At the beginning of the virtual machine page, select Connect.
  4. On the Connect to virtual machine page, select RDP, and then select the appropriate IP address and Port number.

Does Azure Bastion need a Public IP address? ›

Azure Bastion deployments, except Developer SKU and Private-only, require a Public IP address. The Public IP must have the following configuration: The Public IP address SKU must be Standard. The Public IP address assignment/allocation method must be Static.

How to connect to VM via Azure Portal? ›

Connect from Azure portal
  1. Go to the Azure portal to connect to a VM. Search for and select Virtual machines.
  2. Select the virtual machine from the list.
  3. Select Connect from the left menu.
  4. Select the option that fits with your preferred way of connecting. The portal helps walk you through the prerequisites for connecting.
Nov 15, 2023

How do I Connect my Azure VM to a virtual network? ›

Connect to a virtual machine
  1. In the portal, search for and select Virtual machines.
  2. On the Virtual machines page, select vm-1.
  3. In the Overview of vm-1, select Connect.
  4. In the Connect to virtual machine page, select the Bastion tab.
  5. Select Use Bastion.
Jun 17, 2024

How do I access a VM with a private IP address? ›

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. On the Bastion Connect page, for IP address, enter the private IP address of the target VM.

How do I reserve a private IP in Azure VM? ›

On the Network interface page, under Settings, select IP configurations. In IP configurations, select ipconfig1 in the list. Under Assignment, select Static. Change the private IP address if you want a different one, and then select Save.

How do I enable private IP address in Azure Virtual Network Gateway? ›

To enable Use Azure Private IP Address on the connection, select Configuration. Set Use Azure Private IP Address to Enabled, then select Save.

How do I connect my IP address to a virtual machine? ›

To assign an IP address:
  1. Connect to the server via SSH with superuser permissions.
  2. To assign an IPv4 address. Specify the network settings in /etc/sysconfig/network-scripts/ifcfg-<interface> file, where <interface> is the name of the network interface. ...
  3. Restart the NetworkManager software: ...
  4. Reconnect the network interface:

What is an Azure bastion? ›

Azure Bastion is a fully managed service that provides more secure and seamless Remote Desktop Protocol (RDP) and Secure Shell Protocol (SSH) access to virtual machines (VMs) without any exposure through public IP addresses.

How to whitelist IP address in Azure Portal? ›

You can restrict the access of a specific web application to specified IP addresses through the menu of your web application. However, to configure your IP whitelist for a specific web application, navigate to Settings, Networking, <the Web App overview page>. Under IP restrictions, click Configure IP restrictions.

How to connect to Azure bastion host? ›

Bastion connection page

In the Azure portal, go to the virtual machine to which you want to connect. At the top of the virtual machine Overview page, select Connect, then select Connect via Bastion from the dropdown. This opens the Bastion page. You can go to the Bastion page directly in the left pane.

How to connect to VM without public IP? ›

Use Case 2: Connecting to VMs without a public IP

There are 3 ways you can do this: ExpressRoute, Site-to-Site VPN, or Point-to-Site VPN.

What is private IP vs public IP in Azure? ›

Both Private and Public IP addresses can be assigned to a virtual machine's network interface controller (NIC). Private IP addresses assigned to a network interface enable a virtual machine to communicate with other resources in an Azure virtual network and connected networks.

How do I Connect my Azure storage to my VM? ›

In the Azure portal, navigate to Virtual Machines, go to your Windows virtual machine, then from the Overview page Select Connect at the top. Enter your Username and Password that you added when you created your Windows VM. Establish a Remote Desktop Connection with the virtual machine.

How do I console into an Azure VM? ›

Access Serial Console for Virtual Machines via Azure portal
  1. Open the Azure portal.
  2. Navigate to All resources and select a Virtual Machine. The overview page for the VM opens.
  3. Scroll down to the Help section and select Serial console. A new pane with the serial console opens and starts the connection.
Apr 22, 2024

How do I Connect my VM to Azure pipeline? ›

Sign into your Azure DevOps organization and navigate to your project. Go to the Pipelines page and select Environments > Create Environment. Specify a Name (required) for the environment and a Description. Choose Virtual Machines as a Resource to be added to the environment, and then select Next.

Top Articles
TurboTax Can't Call Its Services Free Anymore, Unless They're Free to All
Interest Rate Risk
Odawa Hypixel
Identifont Upload
Top Scorers Transfermarkt
What to Serve with Lasagna (80+ side dishes and wine pairings)
Coffman Memorial Union | U of M Bookstores
Big Spring Skip The Games
Triumph Speed Twin 2025 e Speed Twin RS, nelle concessionarie da gennaio 2025 - News - Moto.it
Professor Qwertyson
Gabrielle Abbate Obituary
50 Meowbahh Fun Facts: Net Worth, Age, Birthday, Face Reveal, YouTube Earnings, Girlfriend, Doxxed, Discord, Fanart, TikTok, Instagram, Etc
5 Bijwerkingen van zwemmen in een zwembad met te veel chloor - Bereik uw gezondheidsdoelen met praktische hulpmiddelen voor eten en fitness, deskundige bronnen en een betrokken gemeenschap.
Best Cheap Action Camera
Overzicht reviews voor 2Cheap.nl
Snowflake Activity Congruent Triangles Answers
Natureza e Qualidade de Produtos - Gestão da Qualidade
Hello Alice Business Credit Card Limit Hard Pull
Aita Autism
Where does insurance expense go in accounting?
Slope Tyrones Unblocked Games
Yakimacraigslist
Air Force Chief Results
Recap: Noah Syndergaard earns his first L.A. win as Dodgers sweep Cardinals
Jeff Now Phone Number
Apple Original Films and Skydance Animation’s highly anticipated “Luck” to premiere globally on Apple TV+ on Friday, August 5
Betaalbaar naar The Big Apple: 9 x tips voor New York City
Sister Souljah Net Worth
Makemv Splunk
Dr. Nicole Arcy Dvm Married To Husband
Catchvideo Chrome Extension
Best Town Hall 11
Generator Supercenter Heartland
Prévisions météo Paris à 15 jours - 1er site météo pour l'île-de-France
Chadrad Swap Shop
Dubois County Barter Page
Breckie Hill Fapello
Craigslist Car For Sale By Owner
Hannibal Mo Craigslist Pets
Wsbtv Fish And Game Report
Emerge Ortho Kronos
Captain Billy's Whiz Bang, Vol 1, No. 11, August, 1920&#10;America's Magazine of Wit, Humor and Filosophy
Wlds Obits
Noaa Duluth Mn
'Guys, you're just gonna have to deal with it': Ja Rule on women dominating modern rap, the lyrics he's 'ashamed' of, Ashanti, and his long-awaited comeback
Craigslist Central Il
Mitchell Kronish Obituary
Conan Exiles Tiger Cub Best Food
Timothy Warren Cobb Obituary
Tenichtop
Latest Posts
Article information

Author: Tish Haag

Last Updated:

Views: 6270

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Tish Haag

Birthday: 1999-11-18

Address: 30256 Tara Expressway, Kutchburgh, VT 92892-0078

Phone: +4215847628708

Job: Internal Consulting Engineer

Hobby: Roller skating, Roller skating, Kayaking, Flying, Graffiti, Ghost hunting, scrapbook

Introduction: My name is Tish Haag, I am a excited, delightful, curious, beautiful, agreeable, enchanting, fancy person who loves writing and wants to share my knowledge and understanding with you.