Hello, @Jara Entren ! I reached out to the Defender for Cloud team and the recommendation was to lock access at the RBAC level. I'll go into more detail below.
How do I prevent users from requesting Azure JIT VM access coming from the Source IP addresses "Any"?
To prevent a user from configuring or editing the JIT policy for a VM, you can assign custom roles to your users that do not contain the Microsoft.Security/locations/jitNetworkAccessPolicies/write
action:
https://learn.microsoft.com/en-us/azure/defender-for-cloud/just-in-time-access-usage#prerequisites
You can set the JIT network policy using Set-AzJitNetworkAccessPolicy
and specify the source address prefix with allowedSourceAddressPrefix
:
https://learn.microsoft.com/en-us/azure/defender-for-cloud/just-in-time-access-usage#powershell
Additional Reading:
I hope this has been helpful! Your feedback is important so please take a moment to accept answers.
If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!