standard
turbot/azure_compliance

Trigger: Detect & correct regions with network watcher disabled

Detect regions with network watcher disabled and then enable them.

Query

select
concat(loc.name, ' [', loc.subscription_id, ']') as title,
loc.id as id,
loc.name as region,
concat(loc.name, 'NetworkWatcherRG') as resource_group,
loc.subscription_id,
loc._ctx ->> 'connection_name' as conn
from
azure_location loc
left join azure_network_watcher watcher on watcher.region = loc.name
left join azure_subscription sub on sub.subscription_id = loc.subscription_id
where
watcher.id is null;

Schedule

15m

Tags

category = Compliance
plugin = azure
service = Azure/Network