Created
January 21, 2020 10:46
-
-
Save pkhabazi/26fa5f8e40629ad1e1c9f0e09baef47d to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
}, | |
"variables": { | |
"logAnalyticsWorkspace": "[concat('sent-',uniqueString(resourceGroup().id))]" | |
}, | |
"resources": [ | |
{ | |
"name": "[variables('logAnalyticsWorkspace')]", | |
"type": "Microsoft.OperationalInsights/workspaces", | |
"apiVersion": "2015-11-01-preview", | |
"location": "[resourceGroup().location]", | |
"properties": { | |
"sku": { | |
"name": "PerGB2018" | |
}, | |
"retention": 730 | |
} | |
}, | |
{ | |
"name": "[concat('SecurityInsights','(', variables('logAnalyticsWorkspace'),')')]", | |
"type": "Microsoft.OperationsManagement/solutions", | |
"apiVersion": "2015-11-01-preview", | |
"location": "[resourceGroup().location]", | |
"dependsOn": [ | |
"[resourceId('Microsoft.OperationalInsights/workspaces', variables('logAnalyticsWorkspace'))]" | |
], | |
"properties": { | |
"workspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces', variables('logAnalyticsWorkspace'))]" | |
}, | |
"plan": { | |
"name": "[concat('SecurityInsights','(', variables('logAnalyticsWorkspace'),')')]", | |
"product": "OMSGallery/SecurityInsights", | |
"publisher": "Microsoft", | |
"promotionCode": "" | |
} | |
} | |
], | |
"outputs": { | |
"name":{ | |
"type":"string", | |
"value": "[variables('logAnalyticsWorkspace')]" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment