Skip to content

Instantly share code, notes, and snippets.

@Cyb3rWard0g
Created March 20, 2020 00:49
Show Gist options
  • Save Cyb3rWard0g/6e9c5493e6d8e8499f7c1f6714fcf641 to your computer and use it in GitHub Desktop.
Save Cyb3rWard0g/6e9c5493e6d8e8499f7c1f6714fcf641 to your computer and use it in GitHub Desktop.
{
"condition": "[parameters('enableMonitoringAgent')]",
"type": "Microsoft.Compute/virtualMachines/extensions",
"apiVersion": "2019-03-01",
"name": "[concat(variables('VMName'), '/OMSExtension')]",
"location": "[parameters('location')]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', variables('VMName'))]"
],
"properties": {
"publisher": "Microsoft.EnterpriseCloud.Monitoring",
"type": "MicrosoftMonitoringAgent",
"typeHandlerVersion": "1.0",
"autoUpgradeMinorVersion": true,
"settings": {
"workspaceId": "[parameters('workspaceId')]"
},
"protectedSettings": {
"workspaceKey": "[parameters('workspaceKey')]"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment