Problem: When moving application insights from one location to another, monitor alerts are not moved by default. There is not feature in Microsoft Azure to migrate alerts from one App Insights to another.
Solution: Azure CLI
Below are the steps you need to perform:
Get the Name and Resource Group of the alert you want to move.
Run the following command to get the scope of the current alert:
az monitor metrics alert show --name ALERT_NAME --resource-group RESOURCE_GROUP_NAME
Create the new SCOPE by replacing old app insights name with the new one and run the following command to update the scope of the alert to new app insights resource:
az monitor metrics alert update --name ALERT_NAME --resource-group RESOURCE_GROUP_NAME --scope NEW_SCOPE