What is the difference between JIT and adding IPs to NSG manually?

Najam ul Saqib 400 Reputation points
2024-08-14T06:52:40.53+00:00

Hi,I am trying to understand the efficacy of JIT, it looks like when I request access via JIT, it adds my IP (or the IP range I give to it) to the whitelist for a specific port on a VM and then you can access that VM for a specific time range, isn't that equivalent to, adding the IP to an NSG for allowing access and removing it after some time? I know there's some manual effort involved but is there anything additional that JIT offers that I am missing?

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,775 questions
0 comments No comments
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 49,616 Reputation points Microsoft Employee Moderator
    2024-08-14T11:32:28.1866667+00:00

    @Najam ul Saqib ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I understand that you would like to understand the advantages of Microsoft Defender for Cloud's just-in-time (JIT) over NSG.

    In simple words, JIT is a combination of NSG + Azure role-based access control (Azure RBAC).

    To address your question, the main benefit is less management overhead and control of who can actually raise a request to access the VM

    One more point to note is that JIT also seamlessly integrates with Azure Firewall

    With traditional NSG,

    • You have management overhead
    • A rule created is permanent unless a user explicitly deletes it
    • If you know the user's source IP and you are sure the IP will never change, you can use NSG rule as "Allow" for this IP
      • However, if the source IP is not fixed, you have to manually create and delete rules every time the IP changes.

    With JIT,

    Thanks,

    Kapil


    Please Accept an answer if correct.

    Original posters help the community find answers faster by identifying the correct answer.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.