Skip to content

Instantly share code, notes, and snippets.

@samhodgkinson
Created August 21, 2018 21:18
Show Gist options
  • Save samhodgkinson/1cd89c44cc21a4b6ba43cf63cce3c410 to your computer and use it in GitHub Desktop.
Save samhodgkinson/1cd89c44cc21a4b6ba43cf63cce3c410 to your computer and use it in GitHub Desktop.
Log Analytics Computer Group
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"OMS-Workspace-Name": {
"type": "string",
"metadata": {
"description": "OMS Workspace Name"
}
}
},
"variables": {
"OMS-API": "2015-11-01-preview"
},
"resources": [
{
"apiVersion": "2017-03-03-preview",
"type": "Microsoft.OperationalInsights/workspaces/savedSearches",
"name": "[concat(parameters('OMS-Workspace-Name'), '/', 'ComputerGroup' )]",
"dependsOn": [],
"Tags": [
{
"Name": "Group",
"Value": "Computer"
}
],
"properties": {
"etag": "*",
"category": "category",
"displayName": "Heartbeat | where OSType==\"Linux\" | distinct Computer",
"query": "AzureActivity"
}
}
],
"outputs": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment