Skip to content

Instantly share code, notes, and snippets.

@krnese
Created December 12, 2016 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krnese/ee7aabc87dc3d30643e4831251eee935 to your computer and use it in GitHub Desktop.
Save krnese/ee7aabc87dc3d30643e4831251eee935 to your computer and use it in GitHub Desktop.
{
"apiVersion": "2015-05-01-preview",
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('vmNameSuffix'), 'VM', copyIndex(), '/OMS')]",
"location": "[resourceGroup().location]",
"copy": {
"name": "[concat(parameters('vmNameSuffix'), 'VM', 'OMS')]",
"count": "[parameters('instancecount')]"
},
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', parameters('vmNameSuffix'), 'VM', copyIndex())]"
],
"properties": {
"publisher": "Microsoft.EnterpriseCloud.Monitoring",
"type": "[variables('managementType').type]",
"typeHandlerVersion": "1.0",
"autoUpgradeMinorVersion": true,
"settings": {
"workspaceId": "[reference(resourceId(parameters('workspaceResourceGroupName'), 'Microsoft.OperationalInsights/workspaces/', parameters('workspaceName')), '2015-11-01-preview').customerId]"
},
"protectedSettings": {
"workspaceKey": "[listKeys(resourceId(parameters('workspaceResourceGroupName'),'Microsoft.OperationalInsights/workspaces/', parameters('workspaceName')), '2015-11-01-preview').primarySharedKey]"
}
}
},
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('vmNameSuffix'),'VM', copyIndex(), '/Microsoft.Powershell.DSC')]",
"apiVersion": "2015-06-15",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', parameters('vmNameSuffix'), 'VM', copyIndex(), '/extensions/OMS')]"
],
"copy": {
"name": "[concat(parameters('vmNameSuffix'), 'VM', 'DSC')]",
"count": "[parameters('instancecount')]"
},
"properties": {
"publisher": "[variables('managementType').publisher]",
"type": "[variables('managementType').dscType]",
"typeHandlerVersion": "[variables('managementType').version]",
"autoUpgradeMinorVersion": true,
"protectedSettings": {
},
"settings": {
"ModulesUrl": "https://github.com/krnese/AzureDeploy/raw/master/OMS/MSOMS/Solutions/ServiceMap/scripts/OMSServiceMap.ps1.zip",
"SasToken": "",
"ConfigurationFunction": "OMSServiceMap.ps1\\OMSServiceMap"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment