last sync: 2020-Jul-02 13:28:37 UTC

Azure Policy

Audit Log Analytics workspace for VM - Report Mismatch

Policy DisplayName Audit Log Analytics workspace for VM - Report Mismatch
Policy Id f47b5582-33ec-4c5c-87c0-b010a6b2e917
Policy Category Monitoring
Policy Description Reports VMs as non-compliant if they aren't logging to the Log Analytics workspace specified in the policy/initiative assignment.
Policy Mode Indexed
Policy Type BuiltIn
Policy in Preview FALSE
Policy Deprecated FALSE
Policy Effect Fixed: audit
Roles used none
Policy Changes
Date/Time (UTC ymd) (i) Change Change detail
2020-04-22 04:43:16 change: DisplayName previous DisplayName: [Preview]: Audit Log Analytics Workspace for VM - Report Mismatch
Used in Policy Initiative(s)
Initiative DisplayName Initiative Id
[Preview]: NIST SP 800-171 R2 03055927-78bd-4236-86c0-f36125a10dc9
IRS1075 September 2016 105e0327-6175-4eb2-9af4-1fba43bdb39d
[Preview]: Australian Government ISM PROTECTED 27272c0b-c225-4cc3-b8b0-f2534b093077
Canada Federal PBMM 4c4a5f27-de81-430b-b4e5-9cbd50595a87
[Deprecated]: DOD Impact Level 4 8d792a84-723c-4d92-a3c3-e4ed16a2d133
NIST SP 800-53 R4 cf25b9c1-bd23-4eb6-bd2c-f4f3ac644a5f
FedRAMP High d5264498-16f4-418a-b659-fa7ef418175f
FedRAMP Moderate e95f5a9f-57ad-4d03-bb0b-b1d16db93693
Policy Rule
{
  "properties": {
    "displayName": "Audit Log Analytics workspace for VM - Report Mismatch",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Reports VMs as non-compliant if they aren't logging to the Log Analytics workspace specified in the policy/initiative assignment.",
    "metadata": {
      "version": "1.0.1",
      "category": "Monitoring"
    },
    "parameters": {
      "logAnalyticsWorkspaceId": {
        "type": "String",
        "metadata": {
          "displayName": "Log Analytics Workspace Id that VMs should be configured for",
          "description": "This is the Id (GUID) of the Log Analytics Workspace that the VMs should be configured for."
        }
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Compute/virtualMachines/extensions"
          },
          {
            "field": "Microsoft.Compute/virtualMachines/extensions/publisher",
            "equals": "Microsoft.EnterpriseCloud.Monitoring"
          },
          {
            "field": "Microsoft.Compute/virtualMachines/extensions/settings.workspaceId",
          "notEquals": "[parameters('logAnalyticsWorkspaceId')]"
          }
        ]
      },
      "then": {
        "effect": "audit"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/f47b5582-33ec-4c5c-87c0-b010a6b2e917",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "f47b5582-33ec-4c5c-87c0-b010a6b2e917"
}