---
title: "Deploy an existing Sitecore instance on Azure with Azure Monitoring and Alerts Basic"
slug: "deploy-an-existing-sitecore-instance-on-azure-with-azure-monitoring-and-alerts-basic"
abstract: "Use this topic to upload ARM templates to Blob storage, deploy the ARM templates, and deploy an existing Sitecore instance on Azure."
---
# Deploy an existing Sitecore instance on Azure with Azure Monitoring and Alerts Basic

The Azure Monitoring and Alerts Basic module uses Azure Monitor to track whether specific resources are performing within acceptable boundaries. Azure Monitor is a tool that combines Log Analytics and Application Insights to collect and analyze telemetry so you can better understand and maximize the performance of your applications. Different types of resources have different thresholds and different time periods to check for. By default, Azure Monitoring and Alerts Basic creates a number of alerts specifically for each of the Sitecore topologies.

<details>
<summary><h2>Prerequisites</h2></summary>

Before you can deploy your existing Sitecore environment on Azure with Azure Monitoring and Alerts Basic, you must have:

- A Microsoft Azure® subscription and portal credentials.
- A Sitecore™Experience Cloud instance on Azure. The supported topologies are XM, XP, and xDB. The support topologies support both Solr and Azure Cognitive Search.
- A PowerShell that has the latest Azure PowerShell modules installed. The minimum module is version 6.0.0. To upgrade your PowerShell module, run:

    ```

    "Update-Module -Name
    AzureRM -RequiredVersion 6.0.0 -Force"
    ```

- (Optional) If you require a fully functional Application Level Monitoring solution: Application Insights.

</details>

<details>
<summary><h2>Obtain Azure resource group information</h2></summary>

To identify the Resource group name, Resource group Azure subscription ID, and Application Insights location from the target Azure resource group, you must first [download the Azure Monitoring and Alerts Basic ARM template](https://github.com/Sitecore/Sitecore-Azure-Quickstart-Templates).

When you have downloaded the template, to obtain the resource group information:

1. In the [Azure portal](https://portal.azure.com), log in.
2. On the Microsoft Azure portal menu, click **Resource groups** to see the list of all available resource groups.
3. Click the targeted resource group to see all of the available resources for that resource group.

    ![Azure portal resource groups.](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/Azure_Portal.png)

4. On the **Resource groups** page, click **Overview**, to view the:
    - Resource group name
    - Azure Subscription ID
    - Application Insights location

    > [!note]
    > Make a note of the resource group name and the subscription ID, as you will need them later to [deploy the Azure Monitoring and Alerts Basic ARM templates](https://doc.sitecore.com/xp/en/developers/105/sitecore-experience-manager/deploy-an-existing-sitecore-instance-on-azure-with-azure-monitoring-and-alerts-basic.html#UUID-764a2b0b-ee60-ab41-4b5d-cf548906b006_section-5c4835569bbac-idm45266701857712 "Deploy the Azure Monitoring and Alerts Basic ARM templates (option 2)").

    ![Azure Resource group details.](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/Azure_Resource_Group.png)

</details>

<details>
<summary><h2>Fill in the ARM template parameters</h2></summary>

Before you upload your ARM template to Blob storage, you must fill in the ARM template parameters.

To fill in the parameters:

1. In Github, the Monitoring module, download the Azure Sitecore compatible Azure Monitoring and Alerts Basic package.
2. Unzip the Azure Monitoring and Alerts Basic package, then open the `azuredeploy.parameters.json` file with a text editor such as Notepad++.
3. Refer to the following table and enter the relevant value for each parameter:

    ![Parameter values for Azure Monitoring and Alerts Basic.](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/ParameterValuesForAzureMonitoringAndAlertsBasic.PNG)

    | Parameter | Allowed values |
    | --- | --- |
    | `deploymentId` | Use the Resource group name or the Sitecore deployment ID if you have already deployed an existing Sitecore instance from Sitecore Azure Toolkit. |
    | `omsWorkspaceMetricsRetentionDays` | Enter the custom metrics retention days. The value is in days = between `30 `to `730`. |
    | `omsWorkspaceAlertRecipients` | Enter an email address. If you want to use more than one email address, then use a semi colon `;` as a separator. |
    | `omsWorkspaceLocation` | Specify the location where you want your log analytics provisioned. First [check the regions that are supported](https://azure.microsoft.com/en-us/global-infrastructure/services/?products=analysis-services,monitor). |
    | `applicationInsightsLocation` | Specify the location where you want your Application Insights provisioned. First [check the regions that are supported](https://azure.microsoft.com/en-us/global-infrastructure/services/?products=analysis-services,monitor). |
    | `searchProvider` | Specify your Sitecore instance search provider. Currently the available values are: `Azure `and `Solr`.<br><br>> [!note]<br>> This parameter is only available for Sitecore versions 8.2.7, 9.0.2, and all 9.1 and later topologies. |

</details>

<details>
<summary><h2>Upload the ARM templates to Blob storage (option 1)</h2></summary>

To upload a generated ARM template to Blob storage, and copy the corresponding URL:

1. In the Azure portal, on the **Resource groups page**, click the resource group that you want to create a storage account for, then click **Add**.

    ![Click Add](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/AddResourceGroup.PNG)

2. In the **Marketplace** section, search for "*storage account*", click **Storage account**, then click **Create**.

    ![Create a storage account](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/StorageAccount.PNG)

3. Under **Create storage account**, **Instance details**, fill in your details, and click **Review + create**, then review your details and click **Create**.

    ![Review your details and create a storage account](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/ReviewAndCreate.PNG)

4. In **Resource groups**, click the resource group you want to open, then, in **Overview**, under **Name**, click the storage account you want to open.
5. Under **Blob service**, **Blobs**, click **+Container**, then, under **New container**, fill in the name of the new container, and click **OK**.

    ![Add a new container.](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/Storage_account_container.png)

6. In **Resource groups**, **Blobs**, click on the container that you have just created.
7. In **Overview**, click **Upload** to upload the generated ARM templates.

    ![Upload ARM templates to a storage container](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/Storage_account_container_-_Upload.png)

8. In **Overview**, under **Name**, click **azuredeploy.json**.
9. In the **Properties** section, in the **URL** field, copy the **azuredeploy.json** URL and record it for later when you [deploy the Azure Monitoring and Alerts Basic ARM templates](https://doc.sitecore.com/xp/en/developers/105/sitecore-experience-manager/deploy-an-existing-sitecore-instance-on-azure-with-azure-monitoring-and-alerts-basic.html#UUID-764a2b0b-ee60-ab41-4b5d-cf548906b006_section-5c4835569bbac-idm45266701857712 "Deploy the Azure Monitoring and Alerts Basic ARM templates (option 2)").

    ![Copy the azuredeploy.json URL](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/Storage_account_container_-_Blob_json.png)

10. Repeat steps 8 and 9 to copy the **azuredeploy.parameters.json** URL.

    ![Copy the azuredeploy.parameters.json URL](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/Azuredeployparametersjson.png)

</details>

<details>
<summary><h2>Deploy the Azure Monitoring and Alerts Basic ARM templates (option 2)</h2></summary>

To deploy the Azure Monitoring and Alerts Basic ARM templates to an existing Sitecore instance:

1. Open a PowerShell console.
2. Use the `Login-AzureRmAccount` command to log in to your Azure account.
3. In the following PowerShell script, pass in the values for the **Resource Group name**, **Azure Subscription ID**, the Blob storage account **azuredeploy.json file URL**, and the Blob storage account **azuredeploy.parameters file URL**:

    ```

    Set-AzureRMContext -SubscriptionId $SubscriptionId

    New-AzureRmResourceGroupDeployment -ResourceGroupName $ResourceGroupName
    -TemplateFile $AzuredeployFileURL  -TemplateParameterUri
    $AzuredeployParametersFileURL   -Verbose
    ```

    - **Resource Group name** - You can get this from [Obtain the necessary group information](https://doc.sitecore.com/xp/en/developers/105/sitecore-experience-manager/deploy-an-existing-sitecore-instance-on-azure-with-azure-monitoring-and-alerts-basic.html#UUID-764a2b0b-ee60-ab41-4b5d-cf548906b006_section-5c4835391f2cc-idm45266705193792 "Obtain Azure resource group information").

        ```text
        $ResourceGroupName = "<Resource Group Name>"
        ```

    - **Azure Subscription ID** - You can get this from [Obtain the necessary group information](https://doc.sitecore.com/xp/en/developers/105/sitecore-experience-manager/deploy-an-existing-sitecore-instance-on-azure-with-azure-monitoring-and-alerts-basic.html#UUID-764a2b0b-ee60-ab41-4b5d-cf548906b006_section-5c4835391f2cc-idm45266705193792 "Obtain Azure resource group information").

        ```text
        $SubscriptionId = "<Azure Subscription Id>"
        ```

    - **azuredeploy.json file URL** - You can get this from [Upload the ARM templates to Blob storage](https://doc.sitecore.com/xp/en/developers/105/sitecore-experience-manager/deploy-an-existing-sitecore-instance-on-azure-with-azure-monitoring-and-alerts-basic.html#UUID-764a2b0b-ee60-ab41-4b5d-cf548906b006_section-5c48354ae6815-idm45932199469536 "Upload the ARM templates to Blob storage (option 1)").

        ```text
        $AzuredeployFileURL = "<azuredeploy file URL>"
        ```

    - **azuredeploy.parameters file URL** - You can get this from [Upload the ARM templates to Blob storage](https://doc.sitecore.com/xp/en/developers/105/sitecore-experience-manager/deploy-an-existing-sitecore-instance-on-azure-with-azure-monitoring-and-alerts-basic.html#UUID-764a2b0b-ee60-ab41-4b5d-cf548906b006_section-5c48354ae6815-idm45932199469536 "Upload the ARM templates to Blob storage (option 1)").

        ```text
        $AzuredeployParametersFileURL = "<azuredeploy.parameters file URL>"
        ```

    > [!note]
    > Only use Application Insights location values if your target resource group has a Sitecore instance running within it, otherwise it will not work.

</details>

<details>
<summary><h2>Clean up additional resources (optional)</h2></summary>

After you have successfully provisioned Azure Monitoring and Alerts Basic to the targeted Azure resource group, to clean up additional resources:

- Delete the storage account and container that you created when you [uploaded the ARM templates to Blob storage](https://doc.sitecore.com/xp/en/developers/105/sitecore-experience-manager/deploy-an-existing-sitecore-instance-on-azure-with-azure-monitoring-and-alerts-basic.html#UUID-764a2b0b-ee60-ab41-4b5d-cf548906b006_section-5c48354ae6815-idm45932199469536 "Upload the ARM templates to Blob storage (option 1)") (steps 1, and 2).

</details>

<details>
<summary><h2>Remove Azure Monitor from Sitecore</h2></summary>

If you no longer require Azure Monitor, you can remove it.

> [!important]
> If you only want to remove the Azure Monitor resource group, do not delete the resource group it is within, otherwise you will also remove Sitecore. If this happens, you can Invoke the deployment command to redeploy Sitecore.

### Delete the Application Insights availability alerts

To delete the Application Insights availability alerts:

1. In the Microsoft Azure portal, click **Resource groups** to see all available resource groups.
2. Click your deployed resource group to see all of the available resources for that group, then in **Overview**, select **Application Insights**.

    ![Azure Resource group, App Insights.](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/AzureResourceGroup_AppInsights.png)

3. In the menu on the left, click **Availability**, then **Details** to see all the *Tier 4* alerts, the *Availability test* alert, or the *Ping test* alert.
4. Under **Available tests summary**, to the right of the test you want to delete, click (**...**), and **Delete**.

    ![Delete the availability test.](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/Delete_availability_test.png)

### Delete all associated metric alerts

To delete the associated metric alerts:

1. In the Microsoft Azure portal, click **Monitor**, then **Alerts**.

    ![Monitor overview.](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/Monitor_overview.png)

2. Click **Manage alert rules**, then select the appropriate subscription and resource group to see all the *Tier 1*, *Tier 2*, and *Tier 3* metric alerts.

    ![See the Tier metric alerts.](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/SeeTheTierMetricAlerts.png)

3. Select the checkbox next to the metric alert that you want to delete, then click **Delete**.

    ![Delete the Monitor metric alert.](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/DeleteMonitorMetricAlert.png)

</details>

<details>
<summary><h2>Delete the Search Services Performance overview</h2></summary>

If you are using a Solr search provider with your Sitecore deployment, you must also delete the **Search Services Performance** view. To delete the Search Services Performance overview:

1. In your OMS workspace, click the **Performance Overview** tile.

    ![PerformanceOverviewTiles.png](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/PerformanceOverviewTiles.png)

2. In **Performance Overview**, click **Edit**.

    ![EditPerformanceOverview.png](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/EditPerformanceOverview.png)

3. In **View dashboard**, click on the **Search Services Performance** overview, then click **Delete view**.

    ![DeleteViewSearchServicesPerformance.png](https://doc.sitecore.com/api/markdown-image/xp/en/developers/105/sitecore-experience-manager/images/DeleteViewSearchServicesPerformance.png)

</details>