Skip to content

Commit b0b1e4b

Browse files
authored
Merge pull request #185237 from yairgil/yairgil-patch-2
Yairgil patch 2
2 parents 545ed7f + 8d9ef32 commit b0b1e4b

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

articles/azure-monitor/alerts/alerts-smart-detections-migration.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ Instead of using the default action group, you select an existing action group t
5858

5959
### Migrate your smart detection using the Azure portal
6060

61-
Apply the migration to one specific Application Insights resource at a time.
62-
6361
To migrate smart detection in your resource, take the following steps:
6462

6563
1. Select **Smart detection** under the **Investigate** heading in your Application Insights resource left-side menu.
@@ -68,9 +66,15 @@ To migrate smart detection in your resource, take the following steps:
6866

6967
![Smart detection feed banner](media/alerts-smart-detections-migration/smart-detection-feed-banner.png)
7068

71-
3. Select an action group to be configured for the new alert rules. You can choose between using the default action group (as explained above) or using one of your existing action groups.
69+
3. Check the option "Migrate all Application Insights resources in this subscription", or leave it unchecked if you want to migrate only the current resource you are in.
70+
> [!NOTE]
71+
> Checking this option will impact all **existing** Application Insights resources (that were not migrated yet). As long as the migration to alerts is in preview, new Application Insights resources will still be created with non-alerts smart detection.
72+
73+
7274

73-
4. Select **Migrate** to start the migration process.
75+
4. Select an action group to be configured for the new alert rules. You can choose between using the default action group (as explained above) or using one of your existing action groups.
76+
77+
5. Select **Migrate** to start the migration process.
7478

7579
![Smart detection migration dialog](media/alerts-smart-detections-migration/smart-detection-migration-dialog.png)
7680

@@ -84,7 +88,7 @@ You can start the smart detection migration using the following Azure CLI comman
8488
az rest --method POST --uri /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/migrateFromSmartDetection?api-version=2021-01-01-preview --body @body.txt
8589
```
8690

87-
Where body.txt should include:
91+
For migrating a single Application Insights resource, body.txt should include:
8892

8993
```json
9094
{
@@ -95,7 +99,17 @@ Where body.txt should include:
9599
"customActionGroupName" : "{actionGroupName}"
96100
}
97101
```
102+
For migrating all the Application Insights resources in a subscription, body.txt should include:
98103

104+
```json
105+
{
106+
"scope": [
107+
"/subscriptions/{subscriptionId} "
108+
],
109+
"actionGroupCreationPolicy" : "{Auto/Custom}",
110+
"customActionGroupName" : "{actionGroupName}"
111+
}
112+
```
99113
**ActionGroupCreationPolicy** selects the policy for migrating the email settings in the smart detection rules into action groups. Allowed values are:
100114

101115
- **'Auto'**, which uses the default action groups as described in this document
-33.2 KB
Loading

0 commit comments

Comments
 (0)