Adding a Query to Azure log analytics using ARM

Viewed 69

I am new to azure trying to figure out how to add a query to log analytics using ARM. I have surfed through the Azure Documentation but didn't find the exact data for the mentioned task. What could be the approach?

1 Answers

This Microsoft Documentation gives clear example how to add query to Azure LogAnalytics using Azure Resource Manager and Taken reference from Resource Manager template samples for log queries in Azure Monitor and

Parameter.json:

{

"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",

"contentVersion": "1.0.0.0",

"parameters": {

"workspaceName": {

"value": "rithwik"

},

"location": {

"value": "West Central US"

}

}

}
Related