Study guide

10.2 Azure Bastion and JIT VM Access

Microsoft Certified: Cloud and AI Security Engineer Associate SC-500

Track your progress as you read

Finished sections get a check mark.

1 Introduction & Exam Overview

1.1 Current Exam Facts 1.2 Skills Measured & Weightings 1.3 Study Path, Prerequisites & Exam Strategy

2 Microsoft Entra ID Secure Access

2.1 Privileged Identity Management (PIM) 2.2 Conditional Access Policies 2.3 MFA and Passwordless Authentication 2.4 Application Identities, OAuth Consent & Managed Identities

3 Azure Key Vault Secrets and Keys

3.1 Deploy and Configure Key Vault 3.2 Access Control and Firewall for Key Vault 3.3 Keys, Secrets, Certificates & Defender for Key Vault

4 Governance, Policy & RBAC

4.1 Azure Policy for Security Controls 4.2 Defender for Cloud Compliance & Security Standards 4.3 Resource Locks and Azure RBAC 4.4 Custom Roles, Overprivileged Access, Backup & IaC Security

5 Secure Storage Accounts

5.1 Storage Account Security Fundamentals 5.2 Storage Firewalls and Access Policies 5.3 Defender for Storage

6 Secure Databases

6.1 Azure SQL Platform Security 6.2 Database Auditing 6.3 Defender for Databases

7 Network Security Groups & Virtual Network Manager

7.1 Network Security Groups and Application Security Groups 7.2 Azure Virtual Network Manager Security Admin Rules 7.3 Virtual WAN and VPN Security

8 Private Access, Private Link & Azure Firewall

8.1 Microsoft Entra Private Access 8.2 Private Endpoints and Private Link 8.3 Azure Firewall 8.4 Network Watcher Diagnostics and Effective Rules

9 Security for AI Workloads

9.1 Purview DSPM for AI and Data Overexposure 9.2 Copilot Studio Protection and Agent Management 9.3 Microsoft Entra Agent ID Security 9.4 Defender for AI, Foundry Guardrails & AI Gateway

10 Secure Servers and Virtual Machines

10.1 Disk Encryption 10.2 Azure Bastion and JIT VM Access 10.3 Azure Arc and Defender for Servers 10.4 Trusted Launch, VM Security Features & Machine Configuration

11 Application Platform Security

11.1 Containers: AKS, ACR, ACI, Container Apps & Defender for Containers 11.2 Azure Functions and Logic Apps Security 11.3 Azure App Service Security 11.4 Web Application Firewall and API Management Protection

12 Defender for Cloud Security Posture

12.1 Defender CSPM and Secure Score 12.2 Workload Protection Plans and Multicloud Connectors 12.3 Vulnerability Management and Defender EASM

13 Microsoft Sentinel Activity and Event Collection

13.1 Workspaces, Roles & Content Hub 13.2 Data Connectors, Syslog/CEF & Windows Event Collection 13.3 Custom Tables, Retention & Purview Audit 13.4 Automation Rules and Playbooks

14 Microsoft Security Copilot & Final Review

14.1 Microsoft Security Copilot Workspaces and Roles 14.2 Plugins and Security Agents 14.3 Final Review and Exam-Day Strategy

10.2 Azure Bastion and JIT VM Access

Key Takeaways Explain This Topic AI

Azure Bastion provides managed RDP/SSH to VMs over TLS without assigning public IPs to those VMs, eliminating exposed management ports on the internet.

Bastion SKUs (Developer, Basic, Standard, Premium) trade shared vs dedicated hosts, peering, scaling, native client, session recording, and private-only deployment—pick SKU from connectivity and compliance needs.

Just-in-time (JIT) VM access in Defender for Cloud locks management ports with deny rules and opens them only for approved, time-bounded source IPs after a request.

JIT automates NSG (and supported Azure Firewall classic-rule) updates so RDP/SSH are not persistently reachable; never leave 3389/22 open to Any/Internet as standing policy.

Bastion and JIT complement each other: Bastion removes public IPs and hardens the access path; JIT further reduces the window and audit surface for management-port exposure.

Last updated: July 2026

Why Remote Access Controls Dominate Server Security Questions

The SC-500 secure-compute domain calls out two operational controls for servers and VMs: plan and implement Azure Bastion and enable and enforce just-in-time (JIT) VM access . Both attack the same problem— management plane exposure —from different angles. Attackers continuously scan the internet for open RDP (3389) and SSH (22). Standing public access is an exam fail condition and a real-world breach pattern.

Your default secure design:

No public IP on workload VMs for management.

Azure Bastion (or another controlled private path) for interactive admin sessions.

JIT so even private/path-allowed management ports are not always open in NSGs.

Identity hardening (Entra login, Conditional Access, PIM) so network access alone is not enough.

Azure Bastion: Managed RDP/SSH over TLS

Azure Bastion is a fully managed PaaS service that provides secure and seamless RDP/SSH connectivity to VMs directly from the Azure portal (and, on higher SKUs, from native clients) over TLS . Key security properties examiners expect you to state:

VMs do not need public IP addresses for Bastion connectivity.

You do not open inbound 3389/22 from the internet to the VM.

Traffic from the operator to Bastion is encrypted (HTTPS/TLS); Bastion then reaches the VM over the virtual network private space.

Bastion removes the need to run and patch a customer-managed jump box (though jump boxes still appear in legacy architectures).

Deployment topology essentials

For dedicated Bastion deployments (Basic, Standard, Premium):

Create a dedicated subnet named AzureBastionSubnet with size /26 or larger (smaller subnets fail deployment).

Associate a public IP with Bastion (except private-only Premium designs that intentionally avoid a public IP on Bastion itself).

Place Bastion in a hub virtual network and use VNet peering so one Bastion can reach spoke VMs (supported on Basic+).

NSGs on spoke subnets should allow the Bastion service tags/paths required for RDP/SSH from Bastion—not Internet sources.

Developer SKU is different: shared Microsoft-managed infrastructure, limited concurrency (commonly one VM connection at a time), no classic AzureBastionSubnet dedicated host model, and no VNet peering support. It is fine for light lab/dev scenarios—not production hub-and-spoke estates.

Bastion SKUs at Exam Depth

SC-500 does not require memorizing every checkbox, but you must match SKU to requirement :

SKU Positioning Highlights for SC-500

Developer Free/shared, non-production Quick connect in supported regions; shared host; limited features; no peering

Basic Dedicated entry production Fixed scale profile; portal connectivity; peering support; simpler feature set

Standard Scale + advanced admin Host scaling, native client, shareable links, IP-based connect, custom ports, file copy features

Premium Compliance & hardened network All Standard features plus session recording and private-only deployment options

Exam scenarios:

“Connect from the portal without public IPs on VMs” → Bastion (any appropriate dedicated SKU).

“Record admin sessions for auditors” → Premium (session recording).

“Bastion must not have a public IP” → Premium private-only design.

“Native RDP/SSH client, custom ports, scale hosts” → Standard or Premium .

“Cheap shared Bastion for a sandbox with one VM” → Developer (if regionally available).

SKU upgrades are supported along the feature ladder; downgrades generally require delete/recreate—know that operational constraint when a cost-optimization stem appears.

Just-in-Time (JIT) VM Access

Just-in-time VM access is a Microsoft Defender for Cloud / Defender for Servers capability that locks down inbound traffic to selected management ports and opens them only when needed .

How JIT works (Azure)

You enable JIT on a VM (or accept the recommendation) and configure ports , maximum request time (for example 1–3 hours), and allowed source IPs (requestor IP, CIDR, or Any—prefer least privilege).

Defender for Cloud ensures deny-all inbound rules exist for those ports on the NSG (and, when supported, Azure Firewall classic rules). Existing more-specific allow rules can still take precedence—review effective rules carefully.

An admin requests access in the portal, Defender, or API, stating justification and duration within policy limits.

After approval (if required by your process) or automatic grant per policy, JIT temporarily inserts/allows traffic for the approved source and window.

When the window expires, access closes again— no standing 3389/22 from the internet .

Plan note: JIT is a Defender for Servers Plan 2 feature in the current plan matrix (not the thin Plan 1 EDR-only tier). Exam stems that mention enabling JIT imply the subscription has the appropriate Defender for Servers coverage.

Ports and resources

Common JIT ports: 22 (SSH) , 3389 (RDP) , and sometimes WinRM or custom management ports. JIT supports Azure Resource Manager VMs and can work with AWS EC2 in multicloud Defender scenarios by adjusting security groups. Limitations to remember:

JIT with Azure Firewall Manager policy-based firewalls has documented restrictions; classic Azure Firewall rule collections are the supported firewall pairing in docs.

JIT is not a substitute for Bastion—it is a port lockdown and temporary allow control. You can use Bastion with JIT for defense in depth.

NSG Automation by JIT (What Changes on the Wire)

Exam questions often ask what JIT actually modifies . Answer in this order:

Primary control plane: Network Security Group rules on the VM/subnet path.

Intent: Persistent deny for management ports when idle; temporary allow for approved sources during a request.

Priority behavior: If a broad allow already exists for 3389 from Internet, JIT’s deny may not win—clean up reckless allow rules first.

Auditability: Requests, requestors, ports, and time windows are logged—useful for SOC review and exam “which control provides audited temporary access?” stems.

Never do this in production or on the exam’s “best design” answer:

Attach a public IP and NSG allow * → 3389 or 22 permanently.

Use a permanent jump VM with RDP open to the world “because Bastion costs money.”

Disable JIT after the first inconvenience without compensating private access controls.

Bastion vs JIT vs Private Connectivity (Choose Correctly)

  • Requirement Best primary control
  • Interactive browser/native admin sessions without VM public IPs Azure Bastion
  • Eliminate standing open management ports; time-box access JIT VM access

Corporate network already has ExpressRoute/VPN to the VNet Private path + NSG/ASG; still prefer Bastion/JIT over public RDP

  • Session recording / private-only Bastion Bastion Premium
  • Multicloud EC2 temporary management access via Defender JIT (where supported)

Layered reference design: Hub Bastion (Standard/Premium) + spoke VMs without public IPs + NSGs denying direct Internet management + JIT enabled for any residual management-port needs + Entra-based VM login + Conditional Access.

Exam Scenarios and Traps

Scenario A: Finance VMs must never have public IPs; admins connect from the Azure portal over TLS. → Deploy Bastion in the hub with AzureBastionSubnet /26+ .

Scenario B: Security wants RDP closed except when an engineer requests a two-hour window from a specific IP. → Enable JIT and configure port 3389, max duration, and source IP.

Scenario C: Auditors need video/session evidence of who did what on production servers. → Bastion Premium session recording (plus identity and activity logs).

Scenario D: A recommendation flags unhealthy VMs because management ports are always open. → Enable JIT and remove permanent allow rules.

Classic traps

Trap: “Bastion requires opening 3389 on the VM to the internet.” False —Bastion avoids that pattern.

Trap: “JIT replaces MFA and PIM.” False —JIT is network-time control; identity still matters.

Trap: “Developer SKU Bastion is fine for multi-spoke production.” False —no peering; shared limits.

Trap: “Any Defender for Cloud free tier includes JIT.” JIT is tied to Defender for Servers Plan 2 capabilities in current docs—do not invent free-tier JIT.

Secure remote access is only half of server security. Next you extend the same controls to hybrid machines with Azure Arc and deepen runtime protection with Defender for Servers .