Gallery › Guest Configuration › Azure built-in policies
[Deprecated]: Audit Windows VMs on which the Log Analytics agent is not connected as expected
Converted Initiative Version 1.0.0-deprecated Deprecated
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
ConvertTo-Bylaw converted this initiative, and proved that the file compiles back to the same definition.
Azure Policy JSONWindowsLogAnalyticsAgentConnection.json · 44 lines
{
"properties": {
"displayName": "[Deprecated]: 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-deprecated",
"category": "Guest Configuration",
"deprecated": true
},
"version": "1.0.0",
"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": [
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/68511db2-bd02-41c4-ae6b-1900a012968a",
"definitionVersion": "1.*.*",
"policyDefinitionReferenceId": "Deploy_WindowsLogAnalyticsAgentConnection",
"parameters": {
"WorkspaceId": {
"value": "[parameters('WorkspaceId')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a030a57e-4639-4e8f-ade9-a92f33afe7ee",
"definitionVersion": "1.*.*",
"policyDefinitionReferenceId": "Audit_WindowsLogAnalyticsAgentConnection"
}
],
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policySetDefinitions/06c5e415-a662-463a-bb85-ede14286b979",
"name": "06c5e415-a662-463a-bb85-ede14286b979"
}Bylaw06c5e415-a662-463a-bb85-ede14286b979.bylaw.ps1 · 34 lines
# Converted from WindowsLogAnalyticsAgentConnection.json by ConvertTo-Bylaw.
Initiative '06c5e415-a662-463a-bb85-ede14286b979' {
Properties @{
DisplayName = '[Deprecated]: Audit Windows VMs on which the Log Analytics agent is not connected as expected'
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'
Version = '1.0.0-deprecated'
Category = 'Guest Configuration'
Deprecated = $true
PolicyVersion = '1.0.0'
}
Parameter WorkspaceId @{
Type = 'string'
DisplayName = 'Connected workspace IDs'
Description = 'A semicolon-separated list of the workspace IDs that the Log Analytics agent should be connected to'
JsonName = 'WorkspaceId'
}
PolicyDefinition @{
Id = '68511db2-bd02-41c4-ae6b-1900a012968a'
ReferenceId = 'Deploy_WindowsLogAnalyticsAgentConnection'
Version = '1.*.*'
Parameters = @{
WorkspaceId = (Param WorkspaceId)
}
}
PolicyDefinition @{
Id = 'a030a57e-4639-4e8f-ade9-a92f33afe7ee'
ReferenceId = 'Audit_WindowsLogAnalyticsAgentConnection'
Version = '1.*.*'
}
}Members (2)
- [Deprecated]: Deploy prerequisites to audit Windows VMs on which the Log Analytics agent is not connected as expected
- [Deprecated]: Show audit results from Windows VMs on which the Log Analytics agent is not connected as expected
Source: built-in-policies/policySetDefinitions/Guest Configuration/WindowsLogAnalyticsAgentConnection.json in Azure/azure-policy, under the MIT licence.
Bylaw