33 lines
1.4 KiB
YAML
33 lines
1.4 KiB
YAML
id: azure-network-watcher
|
|
info:
|
|
name: Azure Network Watcher Service Not Enabled
|
|
author: princechaddha
|
|
severity: high
|
|
description: |
|
|
Ensure that Azure Network Watcher service is enabled for all regions in your Microsoft Azure subscription to help monitor and diagnose conditions at the network level.
|
|
impact: |
|
|
Not having Azure Network Watcher enabled can prevent effective monitoring and diagnosing of network conditions, increasing the risk of network failures going undetected.
|
|
remediation: |
|
|
Enable Azure Network Watcher in all regions of your Microsoft Azure subscription. Refer to Azure documentation on how to enable and manage Azure Network Watcher.
|
|
reference:
|
|
- https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-monitoring-overview
|
|
tags: cloud,devops,azure,microsoft,network-watcher,azure-cloud-config
|
|
|
|
self-contained: true
|
|
code:
|
|
- engine:
|
|
- sh
|
|
- bash
|
|
source: |
|
|
az network watcher list --query '[*].{"location":location,"provisioningState":provisioningState,"resourceGroup":resourceGroup}' --output json
|
|
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- '[]'
|
|
|
|
extractors:
|
|
- type: dsl
|
|
dsl:
|
|
- '"Azure Network Watcher is not enabled in all locations."'
|
|
# digest: 4b0a004830460221009a6db58d8ceddd4b44781e218a521b1bdd23da842a620499fcbfe29a49809c3902210099a40b73113d2d17f0e4b50f19f82c9e73e7dadec69c5672914a65b4c8126ab4:922c64590222798bb761d5b6d8e72950 |