You have an Azure subscription that contains a resource group named RG1 and is linked to a Microsoft Entra tenant.
RG1 contains 10 virtual machines, a virtual network named VNET1, and a network security group (NSG) named NSG1.
The tenant contains a security group named ServerAdmins. Members of the ServerAdmins group are able to access the virtual machines by using RDP.
You need to ensure that NSG1 only allows RDP connections to the virtual machines for a maximum of 60 minutes when a member of ServerAdmins requests access.
What should you configure?
Configure just-in-time (JIT) VM access in Microsoft Defender for Cloud. JIT is specifically designed to keep management ports such as TCP 3389 for RDP closed and open them temporarily only after an authorized user requests access. Microsoft states that administrators can configure each protected port with its protocol, permitted source addresses, and a maximum request time. A 60-minute RDP access window therefore maps directly to the JIT mechanism. Microsoft Learn
Defender for Cloud manages the underlying network controls so that management access is restricted when it is not needed. When an authorized request is approved, Defender temporarily modifies the effective access rules for the requested source and duration. After the approved interval expires, access is closed again. This minimizes the VM's exposure to RDP scanning and brute-force attempts. Microsoft Learn
Microsoft Entra PIM controls privileged role activation, but it does not dynamically modify NSG rules for RDP. Azure Policy evaluates and enforces resource configuration but is not intended to grant temporary user-requested port access. Azure Bastion avoids exposing RDP directly but does not implement the stated 60-minute request-based NSG workflow.
SC-500 specifically requires candidates to enable and enforce just-in-time VM access.

