AZ-500 Exam QuestionsBrowse all questions from this exam

AZ-500 Exam - Question 299


HOTSPOT -

You are configuring just in time (JIT) VM access to a Windows Server 2019 Azure virtual machine.

You need to grant users PowerShell access to the virtual machine by using JIT VM access.

What should you configure? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

Show Answer
Correct Answer:

Discussion

17 comments
Sign in to comment
jpons
Jun 30, 2021

Port is ok, but access is Read https://docs.microsoft.com/en-us/azure/security-center/just-in-time-explained#what-permissions-are-needed-to-configure-and-use-jit

ITFranz
Nov 29, 2023

The port number. By default a PowerShell agent uses port 5985 for a regular connection and 5986 for a secure connection. If you are using a different port for PowerShell in your environment, enter the required port number.

93b98ea
Jul 11, 2024

agreed it is read. "Request JIT access to a VM" is under read section.

Joillane
Jun 30, 2021

First one should be Read

zellck
May 4, 2023

1. Read 2. 5986 https://learn.microsoft.com/en-us/azure/defender-for-cloud/just-in-time-access-overview?tabs=defender-for-container-arch-aks#what-permissions-are-needed-to-configure-and-use-jit https://learn.microsoft.com/en-us/azure/defender-for-cloud/just-in-time-access-usage#enable-jit-on-your-vms-from-microsoft-defender-for-cloud The JIT VM access page opens listing the ports that Defender for Cloud recommends protecting: - 5986 - WinRM

DarkCyberGhost
Jan 24, 2022

You need to grant users PowerShell access to the virtual machine by using JIT VM access. this isnt using powershell to grant the access but being able to use powershell through winRM hence the port is correct and write is correct as they would need to be able to run commands etc once access has been established.

AzureAdventure
Sep 14, 2023

Port 5986 : Windows Remote Management service (WinRM) over HTTPS Por 3389 : Remote Desktop Protocol (RDP) Port 22 : Secure Shell (SSH) Port 25 : Simple Mail Transfer Protocol (SMTP)

Jco
Sep 30, 2021

#exam ques # 29 Sep

digitalcoder
Nov 8, 2021

READ/5986 (WinRM) not RDP Port\

cfsxtuv33
Dec 12, 2021

Absolutely agree...Box1: READ and Box2: 5986 (WinRM 2.0 (Microsoft Windows Remote Management).

robdog24
Jan 24, 2022

Read permission is to request JIT access, however, for the host to allow connection - doesn't she need write?

Eltooth
Mar 24, 2022

Read, 5986

Drummer
Jun 5, 2024

Please note that the Write permission is necessary for users to make changes on the VM, and port 5986 is the default port for PowerShell remoting over HTTPS. The “Read” permission allows users to view the properties of a VM, but it doesn’t allow them to make changes. For Just-In-Time (JIT) VM access, users need to be able to request access, which involves making changes to the VM’s network security group rules. This requires the “Write” permission. Therefore, while “Read” permission is useful for viewing VM properties, it’s not sufficient for configuring JIT VM access. The “Write” permission is necessary for this task. Permission that must be granted to users on VM: Write TCP port that must be allowed: 5986

mung
Dec 3, 2022

question is asking what permission is required for powershell access not for the JIT. So the answer should be write not read.

kabooze
Dec 5, 2022

I think it's "read" just on the basis that it's about requesting JIT access. I believe the wording "access on the machine" is just badly written and should be "access to the machine"

majstor86
Mar 4, 2023

READ 5986

hfk2020
Dec 24, 2023

Request JIT access to a VM Assign these actions to the user: Microsoft.Security/locations/jitNetworkAccessPolicies/initiate/action Microsoft.Security/locations/jitNetworkAccessPolicies/*/read Microsoft.Compute/virtualMachines/read Microsoft.Network/networkInterfaces/*/read Microsoft.Network/publicIPAddresses/read https://learn.microsoft.com/en-us/azure/defender-for-cloud/just-in-time-access-usage

hanyahmed
Jan 25, 2022

Read , 5986

Anonymousse
Nov 28, 2022

Everyone keeps posting that Read is the permission to request JIT access. And that is true, but that isn't the question is it? Isn't the question asking what permission is needed to run powershell once the connection is made?

kabooze
Dec 5, 2022

Look at that phrase, it's badly written. In English it would be "on the VM" not "on VM". So I think the just badly copied it and it actually should say "access to the VM". In which case it's "read".

tutonata
Mar 3, 2023

Request JIT to a VM requires READ access on VM, not write as per docs that jpons pointed at. Port for WinRM over HTTPs is 5986 (5985 would be for plain unencrypted HTTP So: READ 5986

kuskumar
Jul 1, 2023

Port is 22 and Read access https://learn.microsoft.com/en-us/azure/defender-for-cloud/just-in-time-access-usage#request-access-to-a-jit-enabled-vm-using-powershell