AzureStack-QuickStart-Templ.../MicrosoftMonitoringAgent-ex.../azuredeploy.json

51 строка
1.7 KiB
JSON

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmName": {
"type": "string",
"metadata": {
"description": "Name of an existing Windows VM to update"
},
"defaultValue": "[substring(concat('simplewinvm',resourceGroup().Name),0,12)]"
},
"workspaceId": {
"type": "string",
"metadata": {
"description": "Target Azure OMS workspace ID e.g. XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX "
}
},
"workspaceKey": {
"type": "string",
"metadata": {
"description": "Target Azure OMS workspace key"
}
}
},
"variables": {
"vmExtensionName": "MicrosoftMonitoringAgent"
},
"resources": [
{
"apiVersion": "2015-06-15",
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('vmName'),'/', variables('vmExtensionName'))]",
"location": "[resourceGroup().location]",
"dependsOn": [
],
"properties": {
"publisher": "Microsoft.EnterpriseCloud.Monitoring",
"type": "MicrosoftMonitoringAgent",
"typeHandlerVersion": "1.0",
"autoUpgradeMinorVersion": "true",
"settings": {
"workspaceId": "[parameters('workspaceId')]"
},
"protectedSettings": {
"workspaceKey" : "[parameters('workspaceKey')]"
}
}
}
]
}