Turbot Guardrails Hub 
Hub
  • Mods
  • Policy Packs
  • Docs
  • Home
ModsPolicy PacksDocsHome
Policy Packs
Azure CIS v2.0.0 - Section 6 - Networking
  • Azure > Network > Network Security Group > Ingress Rules > Approved
  • Azure > Network > Network Security Group > Ingress Rules > Approved > Rules
  • Azure > Network Watcher > Flow Log > Retention Policy
  • Azure > Network Watcher > Flow Log > Retention Policy > Days
  • Azure > Network Watcher > Network Watcher > Approved
  • Azure > Network Watcher > Network Watcher > Approved > Custom
Get Involved
Discuss on Slack

Policy Setting: Azure > Network Watcher > Network Watcher > Approved > Custom

Policies

This policy setting is dependent on the following policy types:

  • Azure > Network Watcher > Network Watcher > Approved > Custom

Source

resource "turbot_policy_setting" "azure_network_watcher_approved_custom" {
resource = turbot_policy_pack.main.id
type = "tmod:@turbot/azure-networkwatcher#/policy/types/networkWatcherApprovedCustom"
note = "Azure CIS v2.0.0 - Controls: 6.6"
template_input = <<-EOT
{
networkWatcher {
provisioningState: get(path: "provisioningState")
}
}
EOT
template = <<-EOT
{%- if $.networkWatcher.provisioningState == "Succeeded" -%}
{%- set data = {
"title": "Enabled",
"result": "Approved",
"message": "Network Watcher is enabled"
} -%}
{%- elif $.networkWatcher.provisioningState and $.networkWatcher.provisioningState != "Succeeded" -%}
{%- set data = {
"title": "Enabled",
"result": "Not approved",
"message": "Network Watcher is not enabled"
} -%}
{%- else -%}
{%- set data = {
"title": "Enabled",
"result": "Skip",
"message": "No data for Network Watcher yet"
} -%}
{%- endif -%}
{{ data | json }}
EOT
}
Guardrails
Guardrails Hub
  • Hub
  • Docs
  • Blog
  • Changelog
Products
  • GuardrailsGuardrails
  • PipesPipes
  • SteampipeSteampipe
  • PowerpipePowerpipe
  • FlowpipeFlowpipe
  • TailpipeTailpipe
Turbot
  • Home
  • About us
  • We're hiring!
  • Contact us
Community

Our community of practitioners love to discuss cloud governance & security.

Slack logoJoin us on Slack →

System StatusLegalSecurity
Terms of UseSecurityPrivacy