Skip to content

Latest commit

 

History

History
125 lines (80 loc) · 7.28 KB

quickstart-host-portal.md

File metadata and controls

125 lines (80 loc) · 7.28 KB
titletitleSuffixdescriptionauthorms.servicems.topicms.datems.author
Quickstart: Deploy Azure Bastion automatically
Azure Bastion
Learn how to deploy Azure Bastion with default settings from the Azure portal.
cherylmc
azure-bastion
quickstart
03/12/2025
cherylmc

Quickstart: Deploy Azure Bastion automatically

In this quickstart, you learn how to deploy Azure Bastion automatically in the Azure portal by using default settings and the Standard SKU. After you deploy Bastion, you can use SSH or RDP to connect to virtual machines (VMs) in the virtual network via Bastion by using the private IP addresses of the VMs. The VMs that you connect to don't need a public IP address, client software, an agent, or a special configuration. For more information about Bastion, see What is Azure Bastion?

:::image type="content" source="./media/create-host/host-architecture.png" alt-text="Diagram that shows the Azure Bastion architecture." lightbox="./media/create-host/host-architecture.png":::

When you deploy Bastion automatically, Bastion is deployed with Standard SKU.

The steps in this article help you:

  • Deploy Bastion with default settings (Standard SKU) from your VM resource by using the Azure portal. When you deploy by using default settings, the settings are based on the virtual network in which the VM resides.
  • Connect to your VM via the portal by using SSH or RDP connectivity and the VM's private IP address.
  • Remove your VM's public IP address if you don't need it for anything else.

Important

[!INCLUDE Pricing]

Prerequisites

To complete this quickstart, you need these resources:

  • An Azure subscription. If you don't already have one, you can activate your MSDN subscriber benefits or sign up for a free account.

  • A VM in a virtual network. When you deploy Bastion by using default values, the values are pulled from the virtual network in which your VM resides. This VM doesn't become a part of the Bastion deployment itself, but you connect to it later in the exercise.

    • If you don't already have a VM in a virtual network, create a VM by using Quickstart: Create a Windows VM or Quickstart: Create a Linux VM.
    • If you don't have a virtual network, you can create one at the same time that you create your VM. If you already have a virtual network, make sure that it's selected on the Networking tab when you create your VM.
  • Required VM roles:

    • Reader role on the virtual machine
    • Reader role on the network adapter (NIC) with the private IP of the virtual machine
  • Required VM inbound ports:

    • 3389 for Windows VMs
    • 22 for Linux VMs

[!INCLUDE DNS private zone]

Example values

You can use the following example values when you're creating this configuration, or you can substitute your own.

Virtual network and VM example values

NameValue
Virtual machineTestVM
Resource groupTestRG1
RegionEast US
Virtual networkVNet1
Address space10.1.0.0/16
SubnetsFrontEnd: 10.1.0.0/24

Bastion values

When you deploy from VM settings, Bastion is automatically configured with the following default values from the virtual network.

NameDefault value
AzureBastionSubnetCreated within the virtual network as a /26
SKUStandard
NameBased on the virtual network name
Public IP address nameBased on the virtual network name

Deploy Bastion

When you create an Azure Bastion instance in the portal by using Deploy Bastion, you deploy Bastion automatically by using default settings and the Standard SKU. You can't modify, or specify additional values when you select Deploy Bastion. After deployment completes, you can later go to the Configuration page for the bastion host to configure additional settings or upgrade the SKU. For more information, see About Azure Bastion configuration settings.

  1. Sign in to the Azure portal.
  2. In the portal, go to the VM that you want to connect to. The values from the virtual network where this VM resides will be used to create the Bastion deployment.
  3. On the page for your VM, in the left menu, select Bastion to open the Bastion page. The Bastion page has different interfaces, depending on the region to which your VM is deployed. Certain features aren't available in all regions. You might need to expand Dedicated Deployment Options to access Deploy Bastion.
  4. Select Deploy Bastion. Bastion begins deploying. This process can take around 10 minutes to complete.

Connect to a VM

When the Bastion deployment is complete, the screen changes to the Connect pane.

  1. Enter your authentication credentials. Then, select Connect.
  2. The connection to this virtual machine via Bastion opens directly in the Azure portal (over HTML5) by using port 443 and the Bastion service. When the portal asks you for permissions to the clipboard, select Allow. This step lets you use the remote clipboard arrows on the left of the window.

Using keyboard shortcut keys while you're connected to a VM might not result in the same behavior as shortcut keys on a local computer. For example, when you're connected to a Windows VM from a Windows client, Ctrl+Alt+End is the keyboard shortcut for Ctrl+Alt+Delete on a local computer. To do this from a Mac while you're connected to a Windows VM, the keyboard shortcut is Fn+Ctrl+Alt+Backspace.

Enable audio output

[!INCLUDE Enable VM audio output]

Remove VM public IP address

[!INCLUDE Remove a public IP address from a VM]

Clean up resources

When you finish using the virtual network and the virtual machines, delete the resource group and all of the resources that it contains:

  1. Enter the name of your resource group in the Search box at the top of the portal, and then select it from the search results.

  2. Select Delete resource group.

  3. Enter your resource group for TYPE THE RESOURCE GROUP NAME, and then select Delete.

Next steps

In this quickstart, you deployed Bastion to your virtual network. You then connected to a virtual machine securely via Bastion. Next, you can configure more features and work with VM connections.

[!div class="nextstepaction"] VM connections and features

[!div class="nextstepaction"] Azure Bastion configuration settings

close