Create a Virtual Machine and Connect to It Using Azure Bastion

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

Azure Bastion enables remote connectivity to a virtual machine (VM) without the need for a public IP address on the virtual machine or the requirement to deploy and manage jump boxes. In this lab, you will create a virtual machine that does not have a public IP address and create an Azure Bastion resource. Then you will connect securely to the virtual machine with Azure Bastion.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a Windows Virtual Machine

Create a Windows virtual machine named vm1 using a Windows Server 2019 Datacenter Gen 2 image, and give it a username and password of your choosing. Set the properties for its public inbound ports, public IP, and NIC network security group to None.

Deploy Azure Bastion

Use the Connect option within the virtual machine resource to easily deploy the resources required for Azure Bastion.

Connect to the Virtual Machine with Azure Bastion

Use the Connect option to connect to the virtual machine via Azure Bastion, using the username and password that you configured.

Additional Resources

Lab Scenario

To help you walk through the lab, consider the following scenario:

You work as a Cloud Engineer, and the deployment of Azure resources is your responsibility.

Your manager has asked you to deploy a virtual machine for a developer to use. The developer works remotely and needs to be able to connect to the virtual machine securely from anywhere.

Using an exsting resource group, you will complete the following:

  • Create a new virtual machine
  • Deploy Azure Bastion
  • Connect to the virtual machine using Azure Bastion

Lab Setup

The objectives for this hands-on lab can be completed using the Azure portal.

From the lab page, launch the Azure portal in a private browser window. (This option will read differently depending on your browser — for example, in Chrome, it reads Open Link in Incognito Window.) Then, sign in using the credentials provided.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?