Created
March 20, 2020 00:49
-
-
Save Cyb3rWard0g/6e9c5493e6d8e8499f7c1f6714fcf641 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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