Skip to main content

More Info:

Ensure that Network Watcher service is enabled and Network Watchers are provisioned within your Azure account subscriptions to help you monitor and diagnose various conditions at the network level. Microsoft Azure Network Watcher provides tools to monitor, diagnose, view metrics, and enable or disable logs for resources within a virtual network.

Risk Level

Medium

Address

Security

Compliance Standards

  • CIS AZURE
  • Cloudanix Best Practice
  • GDPR
  • HIPAA
  • ISO 27001
  • NIST CSF
  • PCI
  • SOC2

Triage and Remediation

Remediation

Using Console

To remediate the misconfiguration of “Network Watchers Not Provisioned” in Azure using the Azure console, please follow the below steps:
  1. Login to the Azure portal (https://portal.azure.com/).
  2. Select the subscription where the issue is occurring.
  3. Navigate to the “Network Watcher” service.
  4. Select the “Network Watchers” option from the left-hand menu.
  5. Click on the “Add” button to create a new Network Watcher.
  6. In the “Basics” tab, provide a name for the Network Watcher and select the region where you want to deploy it.
  7. In the “Review + create” tab, review the settings, and click on the “Create” button to create the Network Watcher.
  8. Once the Network Watcher is created, navigate to the “Virtual Network” service.
  9. Select the virtual network where you want to enable Network Watcher.
  10. Click on the “Network Watcher” option from the left-hand menu.
  11. Select the “Configure” option and enable the Network Watcher.
  12. Once the Network Watcher is enabled, you can use it to monitor and diagnose your virtual network.
By following the above steps, you can remediate the misconfiguration of “Network Watchers Not Provisioned” in Azure using the Azure console.

To remediate the “Network Watchers Not Provisioned” misconfiguration in Azure using Azure CLI, follow these steps:
  1. Open the Azure CLI on your local machine or in the Azure portal.
  2. Login to your Azure account using the command:
  3. Check if the Network Watcher is already provisioned in your Azure subscription using the command:
  4. If the Network Watcher is not provisioned, create a new Network Watcher using the command:
    Replace <network-watcher-name> with a unique name for the Network Watcher and <location> with the location where you want to create the Network Watcher.
  5. Once the Network Watcher is provisioned, you can enable it for a specific virtual network using the command:
    Replace <location> with the location where the virtual network is located, <resource-group-name> with the name of the resource group containing the virtual network, and <network-watcher-name> with the name of the Network Watcher you created in step 4.
  6. Verify that the Network Watcher is now provisioned and enabled using the command:
    Replace <network-watcher-name> with the name of the Network Watcher you created and <resource-group-name> with the name of the resource group containing the Network Watcher.
  7. Repeat steps 5 and 6 for each virtual network that you want to enable Network Watcher on.
Once you have completed these steps, you should have remediated the “Network Watchers Not Provisioned” misconfiguration in Azure using Azure CLI.
To remediate the misconfiguration “Network Watchers Not Provisioned” in Azure using Python, follow these steps:
  1. Import the necessary libraries:
  1. Authenticate with Azure using a Service Principal:
  1. Create a Network Management client object:
  1. Check if Network Watchers are provisioned:
  1. If Network Watchers are not provisioned, create a new Network Watcher:
  1. Verify that Network Watchers are now provisioned:
Once you have completed these steps, the “Network Watchers Not Provisioned” misconfiguration should be remediated in Azure.
This change does not force replacement of existing virtual networks or subnets; it only adds a new azurerm_network_watcher resource.To verify, terraform plan should show one new resource to add (azurerm_network_watcher.network_watcher, plus the resource group if new) and no changes to existing subnets or VNets.