Contoso has a Windows Server VM named VM1 in a subscription that has Defender for Servers Plan 2 enabled. An administrator enabled JIT for VM1 by selecting Enable just-in-time on the VM's Configuration page and made no further JIT changes.
VM1's network interface has an NSG that contains the inbound rule shown in the exhibit. The rule existed before JIT was enabled.
You must meet the following requirements:
- New direct RDP connections to VM1 from the internet must be denied unless an active JIT grant covers the source.
- During any JIT grant, RDP must be permitted only from 203.0.113.0/24, regardless of the source address the requester enters.
| Priority | Name | Port | Protocol | Source | Destination | Action |
|---|---|---|---|---|---|---|
| 100 | AllowRDPInternet | 3389 | TCP | Internet | Any | Allow |
Which two actions should you perform? Each correct answer presents part of the solution.
Enabling JIT doesn't remove existing allow rules, and a pre-existing rule for the protected port can take precedence over the restrictions JIT adds, so the broad AllowRDPInternet rule must be removed. The VM Configuration shortcut configures RDP 3389 with a three-hour maximum and Any source. To restrict grants to an approved range, you edit the VM's JIT configuration in Defender for Cloud and set Allowed source IPs. The audit policy, Bastion and a lower-priority deny rule do not close the existing allow path, and relying on requester input does not enforce the source range.