last sync: 2020-Jul-09 14:13:41 UTC

Azure Policy Initiative

Audit Windows VMs on which the Log Analytics agent is not connected as expected

Initiative DisplayName Audit Windows VMs on which the Log Analytics agent is not connected as expected
Initiative Id 06c5e415-a662-463a-bb85-ede14286b979
Initiative Category Guest Configuration
Initiative Description This initiative deploys the policy requirements and audits Windows virtual machines on which the Log Analytics agent is not connected to the specified workspaces. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol
Initiative Type BuiltIn
Initiative Changes
Date/Time (UTC ymd) (i) Change(s)
2020-06-11 19:46:04 change DisplayName Name change: '[Preview]: Audit Windows VMs on which the Log Analytics agent is not connected as expected' to 'Audit Windows VMs on which the Log Analytics agent is not connected as expected'
Initiative Policies count Total Policies: 2
Builtin Policies: 2/2
Static Policies: 0/2
Initiative Policies
Policy DisplayName Policy Id
Show audit results from Windows VMs on which the Log Analytics agent is not connected as expected a030a57e-4639-4e8f-ade9-a92f33afe7ee
Deploy prerequisites to audit Windows VMs on which the Log Analytics agent is not connected as expected 68511db2-bd02-41c4-ae6b-1900a012968a
Initiative Rule
{
  "properties": {
    "displayName": "Audit Windows VMs on which the Log Analytics agent is not connected as expected",
    "policyType": "BuiltIn",
    "description": "This initiative deploys the policy requirements and audits Windows virtual machines on which the Log Analytics agent is not connected to the specified workspaces. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol",
    "metadata": {
      "version": "1.0.0",
      "category": "Guest Configuration"
    },
    "parameters": {
      "WorkspaceId": {
        "type": "String",
        "metadata": {
          "displayName": "Connected workspace IDs",
          "description": "A semicolon-separated list of the workspace IDs that the Log Analytics agent should be connected to"
        }
      }
    },
    "policyDefinitions": [
      {
        "policyDefinitionReferenceId": "Deploy_WindowsLogAnalyticsAgentConnection",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/68511db2-bd02-41c4-ae6b-1900a012968a",
        "parameters": {
          "WorkspaceId": {
          "value": "[parameters('WorkspaceId')]"
          }
        }
      },
      {
        "policyDefinitionReferenceId": "Audit_WindowsLogAnalyticsAgentConnection",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a030a57e-4639-4e8f-ade9-a92f33afe7ee"
      }
    ]
  },
  "id": "/providers/Microsoft.Authorization/policySetDefinitions/06c5e415-a662-463a-bb85-ede14286b979",
  "type": "Microsoft.Authorization/policySetDefinitions",
  "name": "06c5e415-a662-463a-bb85-ede14286b979"
}