More Info:
Enable JIT Network Access recommendations for virtual machines.Risk Level
LowAddress
Security, Operational MaturityCompliance Standards
SOC2, ISO27001, HIPAA, HITRUSTTriage and Remediation
- Remediation
Remediation
Using Console
Using Console
To remediate the “Monitor JIT Network Access setting is not enabled” misconfiguration for Azure using the Azure console, follow the below steps:
- Log in to the Azure portal using your credentials.
- Navigate to the “Security Center” service from the left-hand menu.
- In the Security Center dashboard, click on the “Security policy” tab.
- In the Security policy tab, scroll down to the “Just-in-Time network access” policy and click on the “Edit” button.
- In the “Just-in-Time network access” policy page, enable the “Monitor” option by toggling it to “On”.
- Click on the “Save” button to save the changes.
- Once the policy is saved, Azure will start monitoring the Just-in-Time network access setting and provide recommendations for remediation if any misconfiguration is detected.
Using CLI
Using CLI
To remediate the “Monitor JIT Network Access setting is not enabled” misconfiguration in AZURE using AZURE CLI, follow these steps:
- Open the AZURE CLI on your local machine or on the AZURE Cloud Shell.
-
Run the following command to check the current status of the JIT Network Access setting:
This command will list all the NSGs (Network Security Groups) that have JIT (Just-In-Time) Network Access enabled or disabled.
-
If the output shows that the JIT Network Access setting is not enabled for any NSG, run the following command to enable it:
Replace
<NSG_NAME>with the name of the NSG that you want to enable JIT Network Access for, and<RESOURCE_GROUP_NAME>with the name of the resource group that the NSG belongs to. - Once the command is executed successfully, the JIT Network Access setting will be enabled for the specified NSG.
- Verify the change by running the command in step 2 again. The output should show that the JIT Network Access setting is now enabled for the specified NSG.
Using Python
Using Python
To remediate the “Monitor JIT Network Access setting is not enabled” misconfiguration in Azure using Python, you can use the Azure Python SDK to enable the Just-In-Time (JIT) Network Access setting for your virtual machines. Here are the step-by-step instructions:With these steps, you should be able to remediate the “Monitor JIT Network Access setting is not enabled” misconfiguration for your Azure virtual machine using Python.
- Install the Azure Python SDK by running the following command in your terminal:
- Authenticate with your Azure account using the SDK. You can use the following code snippet to authenticate:
- Get the virtual machine resource group and name for which you want to enable JIT Network Access. You can use the following code snippet to get the virtual machine details:
- Enable JIT Network Access for the virtual machine by updating its network profile. You can use the following code snippet to enable JIT Network Access:

