You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AZ-NET-012 calls AzureClient.get_nsg_flow_logs, which does not exist. Its broad exception handler then turns that programming error into a finding for every NSG. The test suite currently mocks the invented method and explicitly documents the production false positive.
The remediation script creates NSG flow logs. Microsoft stopped new NSG flow-log creation after June 30, 2025 and retires the feature on September 30, 2027; VNet flow logs are the supported replacement.
Evidence: scanner/rules/az_net_012.py:47-56, tests/test_rules_network.py:546-551, and playbooks/cli/fix_az_net_012.sh:18-25.
What is wrong
AZ-NET-012callsAzureClient.get_nsg_flow_logs, which does not exist. Its broad exception handler then turns that programming error into a finding for every NSG. The test suite currently mocks the invented method and explicitly documents the production false positive.The remediation script creates NSG flow logs. Microsoft stopped new NSG flow-log creation after June 30, 2025 and retires the feature on September 30, 2027; VNet flow logs are the supported replacement.
Evidence:
scanner/rules/az_net_012.py:47-56,tests/test_rules_network.py:546-551, andplaybooks/cli/fix_az_net_012.sh:18-25.Primary source: https://learn.microsoft.com/azure/network-watcher/network-watcher-nsg-flow-logging-overview
Acceptance criteria