last sync: 2020-Jul-13 14:14:30 UTC

Azure Policy

Azure Monitor solution 'Security and Audit' must be deployed

Policy DisplayName Azure Monitor solution 'Security and Audit' must be deployed
Policy Id 3e596b57-105f-48a6-be97-03e9243bad6e
Policy Category Monitoring
Policy Description This policy ensures that Security and Audit is deployed.
Policy Mode All
Policy Type BuiltIn
Policy in Preview FALSE
Policy Deprecated FALSE
Policy Effect Default: AuditIfNotExists
Allowed: (AuditIfNotExists,Disabled)
Roles used none
Policy Changes no changes
Used in Policy Initiative(s) none
Policy Rule
{
  "properties": {
    "displayName": "Azure Monitor solution 'Security and Audit' must be deployed",
    "policyType": "BuiltIn",
    "mode": "All",
    "description": "This policy ensures that Security and Audit is deployed.",
    "metadata": {
      "version": "1.0.0",
      "category": "Monitoring"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "AuditIfNotExists",
          "Disabled"
        ],
        "defaultValue": "AuditIfNotExists"
      }
    },
    "policyRule": {
      "if": {
        "field": "type",
        "equals": "Microsoft.Resources/subscriptions"
      },
      "then": {
      "effect": "[parameters('effect')]",
        "details": {
          "type": "Microsoft.OperationsManagement/solutions",
          "existenceCondition": {
            "allOf": [
              {
                "field": "Microsoft.OperationsManagement/solutions/provisioningState",
                "equals": "Succeeded"
              },
              {
                "field": "name",
                "like": "Security(*)"
              }
            ]
          }
        }
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/3e596b57-105f-48a6-be97-03e9243bad6e",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "3e596b57-105f-48a6-be97-03e9243bad6e"
}