Task: Configure Just-In-Time Access for a Virtual Machine

Video: Configure VM Security

Estimated time: 25 minutes

Goal

In this task you will provision a virtual machine and protect it with just-in-time (JIT) access through security center. You will upgrade security center to standard tier to enable JIT virtual machine access. You will also verify that JIT virtual machine access is performing as expected.

Pre-requisites

  1. Non-production Azure subscription

Requirements

  1. Provision a virtual machine
  2. Configure just-in-time access for the virtual machine
  3. Verify just-in-time access

Pre-requisite setup

This task does not require any pre-requisite setup.

Requirement 1: Provision a virtual machine

To begin this task, you will provision a network security group, a virtual network, a Windows virtual machine, and a Linux virtual machine. Provision the resources with the following settings:

Setting Value
Resource group task-vmsec-rg
Location East US
Name vmsec-win-vm
Image Windows Server 2016 Datacenter
Size Standard_D2S_V3
Username student
Password <a strong password>
OS disk Standard SSD
Virtual network vmsec-vnet
Subnet default
Public IP <accept default>
NIC NSG None
Setting Value
Resource group task-vmsec-rg
Location East US
Name vmsec-ubu-vm
Image Ubuntu Server 18.04 LTS
Size Standard_D2S_V3
Authentication type Password
Username student
Password <a strong password>
OS disk Standard SSD
Virtual network vmsec-vnet
Subnet default
Public IP <accept default>
NIC NSG None

Requirement 2: Configure just-in-time access for the virtual machine

Next you will implement JIT access for the virtual machines. To complete this requirement:

Requirement 3: Verify just-in-time access

To complete this task, you will request access to both virtual machines. You will observe the changes to the NSG and check the JIT audit trail. To complete this requirement:

Clean up

Solution

Having trouble completing this task? View the demonstration video to see how to do it.