-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
159 additions
and
149 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,126 +1,136 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"utcValue": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Returns the current (UTC) datetime value in the specified format. If no format is provided, the ISO 8601 (yyyyMMddTHHmmssZ) format is used" | ||
}, | ||
"defaultValue": "[utcNow()]" | ||
}, | ||
"workspaceName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Name for the Log Analytics workspace used to aggregate data" | ||
} | ||
}, | ||
"pricingTier": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Pricing tier: pergb2018 or legacy tiers (Free, Standalone, PerNode, Standard or Premium) which are not available to all customers." | ||
}, | ||
"allowedValues": [ | ||
"PerGB2018", | ||
"Free", | ||
"Standalone", | ||
"PerNode", | ||
"Standard", | ||
"Premium" | ||
], | ||
"defaultValue": "PerGB2018" | ||
}, | ||
"dataRetention": { | ||
"type": "int", | ||
"minValue": 7, | ||
"maxValue": 730, | ||
"metadata": { | ||
"description": "Number of days of retention. Workspaces in the legacy Free pricing tier can only have 7 days." | ||
}, | ||
"defaultValue": 30 | ||
}, | ||
"immediatePurgeDataOn30Days": { | ||
"type": "bool", | ||
"metadata": { | ||
"description": "If set to true when changing retention to 30 days, older data will be immediately deleted. Use this with extreme caution. This only applies when retention is being set to 30 days." | ||
}, | ||
"defaultValue": true | ||
}, | ||
"securityCollectionTier": { | ||
"type": "string", | ||
"defaultValue": "Minimal", | ||
"allowedValues": [ | ||
"All", | ||
"Recommended", | ||
"Minimal", | ||
"None" | ||
], | ||
"metadata": { | ||
"description": "Tier for gathering Windows Security Events." | ||
} | ||
}, | ||
"location": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Location for all resources." | ||
}, | ||
"defaultValue": "[resourceGroup().location]" | ||
} | ||
}, | ||
"variables": { | ||
"uniqueWorkspace": "[concat(parameters('workspaceName'), uniquestring(resourceGroup().id, parameters('utcValue')))]" | ||
}, | ||
"resources": [ | ||
{ | ||
"name": "[variables('uniqueWorkspace')]", | ||
"type": "Microsoft.OperationalInsights/workspaces", | ||
"apiVersion": "2020-08-01", | ||
"location": "[parameters('location')]", | ||
"properties": { | ||
"retentionInDays": "[parameters('dataRetention')]", | ||
"features": { | ||
"immediatePurgeDataOn30Days": "[parameters('immediatePurgeDataOn30Days')]" | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"utcValue": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Returns the current (UTC) datetime value in the specified format. If no format is provided, the ISO 8601 (yyyyMMddTHHmmssZ) format is used" | ||
}, | ||
"defaultValue": "[utcNow()]" | ||
}, | ||
"workspaceName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Name for the Log Analytics workspace used to aggregate data" | ||
} | ||
}, | ||
"pricingTier": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Pricing tier: pergb2018 or legacy tiers (Free, Standalone, PerNode, Standard or Premium) which are not available to all customers." | ||
}, | ||
"allowedValues": [ | ||
"PerGB2018", | ||
"Free", | ||
"Standalone", | ||
"PerNode", | ||
"Standard", | ||
"Premium" | ||
], | ||
"defaultValue": "PerGB2018" | ||
}, | ||
"dataRetention": { | ||
"type": "int", | ||
"minValue": 7, | ||
"maxValue": 730, | ||
"metadata": { | ||
"description": "Number of days of retention. Workspaces in the legacy Free pricing tier can only have 7 days." | ||
}, | ||
"defaultValue": 30 | ||
}, | ||
"immediatePurgeDataOn30Days": { | ||
"type": "bool", | ||
"metadata": { | ||
"description": "If set to true when changing retention to 30 days, older data will be immediately deleted. Use this with extreme caution. This only applies when retention is being set to 30 days." | ||
}, | ||
"defaultValue": true | ||
}, | ||
"securityCollectionTier": { | ||
"type": "string", | ||
"defaultValue": "Minimal", | ||
"allowedValues": [ | ||
"All", | ||
"Recommended", | ||
"Minimal", | ||
"None" | ||
], | ||
"metadata": { | ||
"description": "Tier for gathering Windows Security Events." | ||
} | ||
}, | ||
"sku": { | ||
"name": "[parameters('pricingTier')]" | ||
"location": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Location for all resources." | ||
}, | ||
"defaultValue": "[resourceGroup().location]" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "[concat('SecurityInsights','(', variables('uniqueWorkspace'),')')]", | ||
"type": "Microsoft.OperationsManagement/solutions", | ||
"apiVersion": "2015-11-01-preview", | ||
"location": "[parameters('location')]", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.OperationalInsights/workspaces/', variables('uniqueWorkspace'))]" | ||
], | ||
"properties": { | ||
"workspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces', variables('uniqueWorkspace'))]" | ||
}, | ||
"plan": { | ||
"name": "[concat('SecurityInsights','(', variables('uniqueWorkspace'),')')]", | ||
"product": "OMSGallery/SecurityInsights", | ||
"publisher": "Microsoft", | ||
"promotionCode": "" | ||
} | ||
} | ||
], | ||
"outputs": { | ||
"workspaceName": { | ||
"type": "string", | ||
"value": "[variables('uniqueWorkspace')]" | ||
}, | ||
"workspaceIdOutput": { | ||
"type": "string", | ||
"value": "[reference(resourceId('Microsoft.OperationalInsights/workspaces/', variables('uniqueWorkspace')), '2015-11-01-preview').customerId]" | ||
}, | ||
"workspaceKeyOutput": { | ||
"type": "string", | ||
"value": "[listKeys(resourceId('Microsoft.OperationalInsights/workspaces/', variables('uniqueWorkspace')), '2015-11-01-preview').primarySharedKey]" | ||
"variables": { | ||
"uniqueWorkspace": "[concat(parameters('workspaceName'), uniquestring(resourceGroup().id, parameters('utcValue')))]" | ||
}, | ||
"workspaceResourceIdOutput": { | ||
"type": "string", | ||
"value": "[resourceId('Microsoft.OperationalInsights/workspaces/', variables('uniqueWorkspace'))]" | ||
"resources": [ | ||
{ | ||
"name": "[variables('uniqueWorkspace')]", | ||
"type": "Microsoft.OperationalInsights/workspaces", | ||
"apiVersion": "2020-08-01", | ||
"location": "[parameters('location')]", | ||
"properties": { | ||
"retentionInDays": "[parameters('dataRetention')]", | ||
"features": { | ||
"immediatePurgeDataOn30Days": "[parameters('immediatePurgeDataOn30Days')]" | ||
}, | ||
"sku": { | ||
"name": "[parameters('pricingTier')]" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "[concat(variables('uniqueWorkspace'),'/Microsoft.SecurityInsights/default')]", | ||
"type": "Microsoft.OperationalInsights/workspaces/providers/onboardingStates", | ||
"apiVersion": "2021-03-01-preview", | ||
"properties": { | ||
}, | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.OperationalInsights/workspaces', variables('uniqueWorkspace'))]" | ||
] | ||
}, | ||
{ | ||
"name": "[concat('SecurityInsights','(', variables('uniqueWorkspace'),')')]", | ||
"type": "Microsoft.OperationsManagement/solutions", | ||
"apiVersion": "2015-11-01-preview", | ||
"location": "[parameters('location')]", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.OperationalInsights/workspaces/', variables('uniqueWorkspace'))]" | ||
], | ||
"properties": { | ||
"workspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces', variables('uniqueWorkspace'))]" | ||
}, | ||
"plan": { | ||
"name": "[concat('SecurityInsights','(', variables('uniqueWorkspace'),')')]", | ||
"product": "OMSGallery/SecurityInsights", | ||
"publisher": "Microsoft", | ||
"promotionCode": "" | ||
} | ||
} | ||
], | ||
"outputs": { | ||
"workspaceName": { | ||
"type": "string", | ||
"value": "[variables('uniqueWorkspace')]" | ||
}, | ||
"workspaceIdOutput": { | ||
"type": "string", | ||
"value": "[reference(resourceId('Microsoft.OperationalInsights/workspaces/', variables('uniqueWorkspace')), '2015-11-01-preview').customerId]" | ||
}, | ||
"workspaceKeyOutput": { | ||
"type": "string", | ||
"value": "[listKeys(resourceId('Microsoft.OperationalInsights/workspaces/', variables('uniqueWorkspace')), '2015-11-01-preview').primarySharedKey]" | ||
}, | ||
"workspaceResourceIdOutput": { | ||
"type": "string", | ||
"value": "[resourceId('Microsoft.OperationalInsights/workspaces/', variables('uniqueWorkspace'))]" | ||
} | ||
} | ||
} | ||
} |