-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Azure Monitoring and Alert feature in 8.2.x & 9.x (#32)
* Release Azure Monitoring and Alerts Basic
- Loading branch information
1 parent
3d1b0e5
commit 82b87b8
Showing
385 changed files
with
202,634 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Azure Monitoring module for Sitecore XDB Environment | ||
|
||
This template deploys the Sitecore Application Level Monitoring module and its related resources into a Sitecore XDB environment. | ||
|
||
## Parameters | ||
|
||
The **deploymentId** parameter is filled in by the PowerShell script. | ||
|
||
| Parameter | Description | ||
--------------------------------------------|------------------------------------------------ | ||
| deploymentId | The prefix of the Sitecore resources names within a resource group | ||
| omsWorkspaceMetricsRetentionDays | The number of days OMS will retain data. | ||
| omsWorkspaceAlertRecipients | List of email addresses for people to recieve alerts. | ||
| omsWorkspaceLocation | The location of the provisioned OMS. | ||
| applicationInsightsLocation | The location of the provisioned application insights. | ||
|
||
## Deploying as part of Sitecore deployment | ||
|
||
Steps to configure the Sitecore deployment parameters to include the Application Level Monitoring module: | ||
|
||
* Add the following snippet to the `modules` parameter: | ||
|
||
```JSON | ||
{ | ||
"name": "monitoring", | ||
"templateLink": "<placeholder>", | ||
"parameters": { | ||
"omsWorkspaceMetricsRetentionDays" : <integer value. Plan comes with 31 by default>, | ||
"omsWorkspaceAlertRecipients" : "<emails seperated by a semi colon>", | ||
"omsWorkspaceLocation" : "<Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South or West Europe>", | ||
"applicationInsightsLocation" : "<location of the application insight associated with Sitecore>" | ||
} | ||
} | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,299 @@ | ||
{ | ||
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"standard": { | ||
"type": "secureObject", | ||
"defaultValue": { | ||
"deploymentId": null | ||
} | ||
}, | ||
"extension": { | ||
"type": "secureObject", | ||
"defaultValue": { | ||
"omsWorkspaceAlertRecipients": null, | ||
"omsWorkspaceMetricsRetentionDays": null, | ||
"omsWorkspaceLocation": null, | ||
"applicationInsightsLocation": null | ||
} | ||
}, | ||
"deploymentId": { | ||
"type": "string", | ||
"defaultValue": "[parameters('standard').deploymentId]" | ||
}, | ||
"omsWorkspaceMetricsRetentionDays": { | ||
"type": "int", | ||
"defaultValue": "[parameters('extension').omsWorkspaceMetricsRetentionDays]", | ||
"metadata": { | ||
"description": "Number of days of retention. Free plans can only have 7 days, Standalone and Per Note include 31 days for free" | ||
} | ||
}, | ||
"omsWorkspaceAlertRecipients": { | ||
"type": "string", | ||
"defaultValue": "[parameters('extension').omsWorkspaceAlertRecipients]", | ||
"metadata": { | ||
"Description": "List of recipients for the email alert separated by semicolon" | ||
} | ||
}, | ||
"omsWorkspaceLocation": { | ||
"type": "string", | ||
"defaultValue": "[parameters('extension').omsWorkspaceLocation]", | ||
"allowedValues": [ | ||
"Australia Southeast", | ||
"Canada Central", | ||
"Central India", | ||
"East US", | ||
"Japan East", | ||
"Southeast Asia", | ||
"UK South", | ||
"West Europe" | ||
], | ||
"metadata": { | ||
"description": "the Location in which your OMS will be provisioned the available Location currently are (Australia Southeast, Canada Central, Central India, East US, Japan East, Southeast Asia, UK South, West Europe)" | ||
} | ||
}, | ||
"applicationInsightsLocation": { | ||
"type": "string", | ||
"defaultValue": "[parameters('extension').applicationInsightsLocation]", | ||
"allowedValues": [ | ||
"Australia East", | ||
"Canada Central", | ||
"Central India", | ||
"East US", | ||
"Japan East", | ||
"North Europe", | ||
"South Central US", | ||
"Southeast Asia", | ||
"UK South", | ||
"West Europe", | ||
"West US 2" | ||
], | ||
"metadata": { | ||
"description": "the Location in which your Application Insight exists" | ||
} | ||
}, | ||
"templateLinkBase": { | ||
"type": "string", | ||
"defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" | ||
}, | ||
"templateLinkAccessToken": { | ||
"type": "securestring", | ||
"defaultValue": "" | ||
} | ||
}, | ||
"variables": { | ||
"resourcesApiVersion": "2016-09-01" | ||
}, | ||
"resources": [{ | ||
"apiVersion": "[variables('resourcesApiVersion')]", | ||
"name": "[concat(deployment().name,'-infrastructure')]", | ||
"type": "Microsoft.Resources/deployments", | ||
"properties": { | ||
"mode": "incremental", | ||
"templateLink": { | ||
"uri": "[concat(uri(parameters('templateLinkBase'), 'nested/infrastructure.json'), parameters('templateLinkAccessToken'))]", | ||
"contentVersion": "1.0.0.0" | ||
}, | ||
"parameters": { | ||
"deploymentId": { | ||
"value": "[parameters('deploymentId')]" | ||
}, | ||
"omsWorkspaceMetricsRetentionDays": { | ||
"value": "[parameters('omsWorkspaceMetricsRetentionDays')]" | ||
}, | ||
"omsWorkspaceLocation": { | ||
"value": "[parameters('omsWorkspaceLocation')]" | ||
}, | ||
"omsWorkspaceAlertRecipients": { | ||
"value": "[parameters('omsWorkspaceAlertRecipients')]" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"apiVersion": "[variables('resourcesApiVersion')]", | ||
"name": "[concat(deployment().name,'-application')]", | ||
"type": "Microsoft.Resources/deployments", | ||
"dependson": [ | ||
"[concat(deployment().name,'-infrastructure')]" | ||
], | ||
"properties": { | ||
"mode": "incremental", | ||
"templateLink": { | ||
"uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]", | ||
"contentVersion": "1.0.0.0" | ||
}, | ||
"parameters": { | ||
"deploymentId": { | ||
"value": "[parameters('deploymentId')]" | ||
}, | ||
"infrastructure": { | ||
"value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" | ||
}, | ||
"omsWorkspaceAlertRecipients": { | ||
"value": "[parameters('omsWorkspaceAlertRecipients')]" | ||
}, | ||
"omsWorkspaceLocation": { | ||
"value": "[parameters('omsWorkspaceLocation')]" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"apiVersion": "[variables('resourcesApiVersion')]", | ||
"name": "[concat(deployment().name, '-integration')]", | ||
"type": "Microsoft.Resources/deployments", | ||
"dependson": [ | ||
"[concat(deployment().name,'-infrastructure')]" | ||
], | ||
"properties": { | ||
"mode": "incremental", | ||
"templateLink": { | ||
"uri": "[concat(uri(parameters('templateLinkBase'), 'nested/integration.json'), parameters('templateLinkAccessToken'))]", | ||
"contentVersion": "1.0.0.0" | ||
}, | ||
"parameters": { | ||
"deploymentId": { | ||
"value": "[parameters('deploymentId')]" | ||
}, | ||
"infrastructure": { | ||
"value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"apiVersion": "[variables('resourcesApiVersion')]", | ||
"name": "[concat(deployment().name, '-availability')]", | ||
"type": "Microsoft.Resources/deployments", | ||
"dependson": [ | ||
"[concat(deployment().name,'-infrastructure')]" | ||
], | ||
"properties": { | ||
"mode": "incremental", | ||
"templateLink": { | ||
"uri": "[concat(uri(parameters('templateLinkBase'), 'nested/availability.json'), parameters('templateLinkAccessToken'))]", | ||
"contentVersion": "1.0.0.0" | ||
}, | ||
"parameters": { | ||
"deploymentId": { | ||
"value": "[parameters('deploymentId')]" | ||
}, | ||
"infrastructure": { | ||
"value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" | ||
}, | ||
"omsWorkspaceAlertRecipients": { | ||
"value": "[parameters('omsWorkspaceAlertRecipients')]" | ||
}, | ||
"applicationInsightsLocation": { | ||
"value": "[parameters('applicationInsightsLocation')]" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"apiVersion": "[variables('resourcesApiVersion')]", | ||
"name": "[concat(deployment().name,'alertwebserverfarms')]", | ||
"type": "Microsoft.Resources/deployments", | ||
"dependson": [ | ||
"[concat(deployment().name,'-infrastructure')]" | ||
], | ||
"properties": { | ||
"mode": "incremental", | ||
"templateLink": { | ||
"contentVersion": "1.0.0.0", | ||
"uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebserverfarms.json'), parameters('templateLinkAccessToken'))]" | ||
}, | ||
"parameters": { | ||
"deploymentId": { | ||
"value": "[parameters('deploymentId')]" | ||
}, | ||
"infrastructure": { | ||
"value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" | ||
}, | ||
"omsWorkspaceAlertRecipients": { | ||
"value": "[parameters('omsWorkspaceAlertRecipients')]" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"apiVersion": "[variables('resourcesApiVersion')]", | ||
"name": "[concat(deployment().name,'alertwebsites')]", | ||
"type": "Microsoft.Resources/deployments", | ||
"dependson": [ | ||
"[concat(deployment().name,'-infrastructure')]" | ||
], | ||
"properties": { | ||
"mode": "incremental", | ||
"templateLink": { | ||
"contentVersion": "1.0.0.0", | ||
"uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertwebsites.json'), parameters('templateLinkAccessToken'))]" | ||
}, | ||
"parameters": { | ||
"deploymentId": { | ||
"value": "[parameters('deploymentId')]" | ||
}, | ||
"infrastructure": { | ||
"value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" | ||
}, | ||
"omsWorkspaceAlertRecipients": { | ||
"value": "[parameters('omsWorkspaceAlertRecipients')]" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"apiVersion": "[variables('resourcesApiVersion')]", | ||
"name": "[concat(deployment().name,'alertsearchsearchservices')]", | ||
"type": "Microsoft.Resources/deployments", | ||
"dependson": [ | ||
"[concat(deployment().name,'-infrastructure')]" | ||
], | ||
"properties": { | ||
"mode": "incremental", | ||
"templateLink": { | ||
"contentVersion": "1.0.0.0", | ||
"uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsearchsearchservices.json'), parameters('templateLinkAccessToken'))]" | ||
}, | ||
"parameters": { | ||
"deploymentId": { | ||
"value": "[parameters('deploymentId')]" | ||
}, | ||
"infrastructure": { | ||
"value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" | ||
}, | ||
"omsWorkspaceAlertRecipients": { | ||
"value": "[parameters('omsWorkspaceAlertRecipients')]" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"apiVersion": "[variables('resourcesApiVersion')]", | ||
"name": "[concat(deployment().name,'alertsqlserversdatabases')]", | ||
"type": "Microsoft.Resources/deployments", | ||
"dependson": [ | ||
"[concat(deployment().name,'-infrastructure')]" | ||
], | ||
"properties": { | ||
"mode": "incremental", | ||
"templateLink": { | ||
"contentVersion": "1.0.0.0", | ||
"uri": "[concat(uri(parameters('templateLinkBase'), 'nested/alertsqlserversdatabases.json'), parameters('templateLinkAccessToken'))]" | ||
}, | ||
"parameters": { | ||
"deploymentId": { | ||
"value": "[parameters('deploymentId')]" | ||
}, | ||
"infrastructure": { | ||
"value": "[reference(concat(deployment().name,'-infrastructure')).outputs.infrastructure.value]" | ||
}, | ||
"omsWorkspaceAlertRecipients": { | ||
"value": "[parameters('omsWorkspaceAlertRecipients')]" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
Sitecore 8.2.1/xdb/addons/Monitoring/azuredeploy.parameters.json
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"deploymentId": { | ||
"value": "" | ||
}, | ||
"omsWorkspaceMetricsRetentionDays": { | ||
"value": "" | ||
}, | ||
"omsWorkspaceAlertRecipients": { | ||
"value": "" | ||
}, | ||
"omsWorkspaceLocation": { | ||
"value": "" | ||
}, | ||
"applicationInsightsLocation": { | ||
"value": "" | ||
} | ||
} | ||
} |
Oops, something went wrong.