nerdexam
Microsoft

AZ-500 · Question #148

Your company has defined a set of virtual machines as part of their subscription. The company currently has Azure P2 Premium licences for their users. They are using the Standard version of Azure…

The correct answer is B. Microsoft.Security/locations/jitNetworkAccessPolicies/initiate/action D. Microsoft.Compute/virtualMachines/read. Just-In-Time VM Access – RBAC Permissions Explained To request Just-in-Time (JIT) access to a virtual machine, a user needs two specific permissions: initiate/action (Option B) to actually trigger the JIT access request, and read (Option D) to view and identify the virtual…

Submitted by zhang_li· Mar 6, 2026Secure Azure using Microsoft Defender for Cloud and Microsoft Sentinel

Question

Your company has defined a set of virtual machines as part of their subscription. The company currently has Azure P2 Premium licences for their users. They are using the Standard version of Azure Security Center. They want to enable Just in time access for the virtual machines. They want to ensure the solution minimizes costs. Which of the following Role Based Access actions need to be allowed for a user that would request for Just-in-time access to a virtual machine? (Choose 2)

Options

  • AMicrosoft.Security/locations/jitNetworkAccessPolicies/write
  • BMicrosoft.Security/locations/jitNetworkAccessPolicies/initiate/action
  • CMicrosoft.Compute/virtualMachines/write
  • DMicrosoft.Compute/virtualMachines/read

How the community answered

(27 responses)
  • A
    7% (2)
  • B
    74% (20)
  • C
    19% (5)

Explanation

Just-In-Time VM Access – RBAC Permissions Explained

To request Just-in-Time (JIT) access to a virtual machine, a user needs two specific permissions: initiate/action (Option B) to actually trigger the JIT access request, and read (Option D) to view and identify the virtual machine they want to connect to. These are the minimum permissions required for a requester role, keeping costs low by avoiding over-provisioned access.

Why the distractors are wrong:

  • Option A (jitNetworkAccessPolicies/write) is required to configure or create JIT policies - this is an administrative action needed by someone setting up JIT, not someone requesting access.
  • Option C (virtualMachines/write) grants the ability to modify virtual machines, which is far more privilege than needed just to request temporary access - violating the principle of least privilege.

Memory Tip: Think of it as a "See it, Request it" model - you need Read to see the VM and Initiate to request the door to open. Write permissions are for admins who build the policy or modify resources, not for end users knocking on the door.

Topics

#Just-in-time (JIT) VM Access#RBAC Permissions#Microsoft Defender for Cloud#Virtual Machine Security

Community Discussion

No community discussion yet for this question.

Full AZ-500 Practice