Skip to content

Commit c23c230

Browse files
meydandmeydandmeday89
authored
[Hub Generated] Review request for Microsoft.AlertsManagement to add version preview/2023-04-01-preview (#22849)
* Adds base for updating Microsoft.AlertsManagement from version preview/2023-01-01-preview to version 2023-04-01-preview * Updates readme * Updates API version in new specs and examples * Add TenantActivityLogAlerts Resource type * Prettier * Align with ALA * Fix issues * Prettier * Fix param * fix PR comments --------- Co-authored-by: meydand <[email protected]> Co-authored-by: Meydan Dayan <[email protected]>
1 parent 2d707db commit c23c230

8 files changed

+889
-0
lines changed

specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2023-04-01-preview/TenantActivityLogAlerts.json

Lines changed: 527 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"parameters": {
3+
"managementGroupName": "72f988bf-86f1-41af-91ab-2d7cd011db47",
4+
"alertRuleName": "SampleActivityLogAlertSHRuleOnTenantLevel",
5+
"api-version": "2023-04-01-preview",
6+
"tenantActivityLogAlertRule": {
7+
"location": "Global",
8+
"tags": {},
9+
"properties": {
10+
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47",
11+
"condition": {
12+
"allOf": [
13+
{
14+
"field": "category",
15+
"equals": "ServiceHealth"
16+
}
17+
]
18+
},
19+
"actions": {
20+
"actionGroups": [
21+
{
22+
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
23+
"webhookProperties": {
24+
"sampleWebhookProperty": "SamplePropertyValue"
25+
},
26+
"actionProperties": {
27+
"Email.Title": "my email title"
28+
}
29+
}
30+
]
31+
},
32+
"enabled": true,
33+
"description": "Description of sample Activity Log Alert service health rule on tenant level events."
34+
}
35+
}
36+
},
37+
"responses": {
38+
"200": {
39+
"headers": {},
40+
"body": {
41+
"id": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel",
42+
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts",
43+
"name": "SampleActivityLogAlertSHRuleOnTenantLevel",
44+
"location": "Global",
45+
"tags": {},
46+
"properties": {
47+
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47",
48+
"condition": {
49+
"allOf": [
50+
{
51+
"field": "category",
52+
"equals": "ServiceHealth"
53+
}
54+
]
55+
},
56+
"actions": {
57+
"actionGroups": [
58+
{
59+
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
60+
"webhookProperties": {
61+
"sampleWebhookProperty": "SamplePropertyValue"
62+
},
63+
"actionProperties": {
64+
"Email.Title": "my email title"
65+
}
66+
}
67+
]
68+
},
69+
"enabled": true,
70+
"description": "Description of sample Activity Log Alert service health rule on tenant level events."
71+
}
72+
}
73+
},
74+
"201": {
75+
"headers": {},
76+
"body": {
77+
"id": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel",
78+
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts",
79+
"name": "SampleActivityLogAlertSHRuleOnTenantLevel",
80+
"location": "Global",
81+
"tags": {},
82+
"properties": {
83+
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47",
84+
"condition": {
85+
"allOf": [
86+
{
87+
"field": "category",
88+
"equals": "ServiceHealth"
89+
}
90+
]
91+
},
92+
"actions": {
93+
"actionGroups": [
94+
{
95+
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
96+
"webhookProperties": {
97+
"sampleWebhookProperty": "SamplePropertyValue"
98+
},
99+
"actionProperties": {
100+
"Email.Title": "my email title"
101+
}
102+
}
103+
]
104+
},
105+
"enabled": true,
106+
"description": "Description of sample Activity Log Alert service health rule on tenant level events."
107+
}
108+
}
109+
}
110+
}
111+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"managementGroupName": "72f988bf-86f1-41af-91ab-2d7cd011db47",
4+
"alertRuleName": "SampleActivityLogAlertSHRuleOnTenantLevel",
5+
"api-version": "2023-04-01-preview"
6+
},
7+
"responses": {
8+
"200": {},
9+
"204": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"managementGroupName": "72f988bf-86f1-41af-91ab-2d7cd011db47",
4+
"alertRuleName": "SampleActivityLogAlertSHRuleOnTenantLevel",
5+
"api-version": "2023-04-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {},
10+
"body": {
11+
"id": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel",
12+
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts",
13+
"name": "SampleActivityLogAlertSHRuleOnTenantLevel",
14+
"location": "Global",
15+
"tags": {},
16+
"properties": {
17+
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47",
18+
"condition": {
19+
"allOf": [
20+
{
21+
"field": "category",
22+
"equals": "ServiceHealth"
23+
}
24+
]
25+
},
26+
"actions": {
27+
"actionGroups": [
28+
{
29+
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
30+
"webhookProperties": {
31+
"sampleWebhookProperty": "SamplePropertyValue"
32+
},
33+
"actionProperties": {
34+
"Email.Title": "my email title"
35+
}
36+
}
37+
]
38+
},
39+
"enabled": true,
40+
"description": "Description of sample Activity Log Alert service health rule on tenant level events."
41+
}
42+
}
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"managementGroupName": "72f988bf-86f1-41af-91ab-2d7cd011db47",
4+
"api-version": "2023-04-01-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {},
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel",
13+
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts",
14+
"name": "SampleActivityLogAlertSHRuleOnTenantLevel",
15+
"location": "Global",
16+
"tags": {},
17+
"properties": {
18+
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47",
19+
"condition": {
20+
"allOf": [
21+
{
22+
"field": "category",
23+
"equals": "ServiceHealth"
24+
}
25+
]
26+
},
27+
"actions": {
28+
"actionGroups": [
29+
{
30+
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
31+
"webhookProperties": {
32+
"sampleWebhookProperty": "SamplePropertyValue"
33+
},
34+
"actionProperties": {
35+
"Email.Title": "my email title"
36+
}
37+
}
38+
]
39+
},
40+
"enabled": true,
41+
"description": "Description of sample Activity Log Alert service health rule on tenant level events."
42+
}
43+
}
44+
]
45+
}
46+
}
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-04-01-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"headers": {},
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel",
12+
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts",
13+
"name": "SampleActivityLogAlertSHRuleOnTenantLevel",
14+
"location": "Global",
15+
"tags": {},
16+
"properties": {
17+
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47",
18+
"condition": {
19+
"allOf": [
20+
{
21+
"field": "category",
22+
"equals": "ServiceHealth"
23+
}
24+
]
25+
},
26+
"actions": {
27+
"actionGroups": [
28+
{
29+
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
30+
"webhookProperties": {
31+
"sampleWebhookProperty": "SamplePropertyValue"
32+
},
33+
"actionProperties": {
34+
"Email.Title": "my email title"
35+
}
36+
}
37+
]
38+
},
39+
"enabled": true,
40+
"description": "Description of sample Activity Log Alert service health rule on tenant level events."
41+
}
42+
},
43+
{
44+
"id": "/providers/Microsoft.Management/ManagementGroups/MyManagementGroup/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel",
45+
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts",
46+
"name": "SampleActivityLogAlertSHRuleOnTenantLevel",
47+
"location": "Global",
48+
"tags": {},
49+
"properties": {
50+
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47",
51+
"condition": {
52+
"allOf": [
53+
{
54+
"field": "category",
55+
"equals": "ServiceHealth"
56+
}
57+
]
58+
},
59+
"actions": {
60+
"actionGroups": [
61+
{
62+
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/MyManagementGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
63+
"webhookProperties": {
64+
"sampleWebhookProperty": "SamplePropertyValue"
65+
},
66+
"actionProperties": {
67+
"Email.Title": "my email title"
68+
}
69+
}
70+
]
71+
},
72+
"enabled": true,
73+
"description": "Description of sample Activity Log Alert service health rule on tenant level events."
74+
}
75+
}
76+
]
77+
}
78+
}
79+
}
80+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"parameters": {
3+
"managementGroupName": "72f988bf-86f1-41af-91ab-2d7cd011db47",
4+
"alertRuleName": "SampleActivityLogAlertSHRuleOnTenantLevel",
5+
"api-version": "2023-04-01-preview",
6+
"tenantActivityLogAlertRulePatch": {
7+
"tags": {
8+
"key1": "value1",
9+
"key2": "value2"
10+
},
11+
"properties": {
12+
"enabled": false
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"headers": {},
19+
"body": {
20+
"id": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.AlertsManagement/TenantActivityLogAlerts/SampleActivityLogAlertSHRuleOnTenantLevel",
21+
"type": "Microsoft.AlertsManagement/TenantActivityLogAlerts",
22+
"name": "SampleActivityLogAlertSHRuleOnTenantLevel",
23+
"location": "Global",
24+
"tags": {
25+
"key1": "value1",
26+
"key2": "value2"
27+
},
28+
"properties": {
29+
"tenantScope": "72f988bf-86f1-41af-91ab-2d7cd011db47",
30+
"condition": {
31+
"allOf": [
32+
{
33+
"field": "category",
34+
"equals": "ServiceHealth"
35+
}
36+
]
37+
},
38+
"actions": {
39+
"actionGroups": [
40+
{
41+
"actionGroupId": "/providers/Microsoft.Management/ManagementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
42+
"webhookProperties": {
43+
"sampleWebhookProperty": "SamplePropertyValue"
44+
},
45+
"actionProperties": {
46+
"Email.Title": "my email title"
47+
}
48+
}
49+
]
50+
},
51+
"enabled": false,
52+
"description": "Description of sample Activity Log Alert service health rule on tenant level events."
53+
}
54+
}
55+
}
56+
}
57+
}

specification/alertsmanagement/resource-manager/readme.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ openapi-type: arm
4444
tag: package-2023-03
4545
```
4646
47+
48+
### Tag: package-preview-2023-04
49+
50+
These settings apply only when `--tag=package-preview-2023-04` is specified on the command line.
51+
52+
```yaml $(tag) == 'package-preview-2023-04'
53+
input-file:
54+
- Microsoft.AlertsManagement/preview/2023-04-01-preview/TenantActivityLogAlerts.json
55+
```
4756
### Tag: package-preview-2023-01
4857

4958
These settings apply only when `--tag=package-preview-2023-01` is specified on the command line.
@@ -77,6 +86,7 @@ input-file:
7786
- Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json
7887
- Microsoft.AlertsManagement/preview/2019-05-05-preview/SmartGroups.json
7988
- Microsoft.AlertsManagement/preview/2023-01-01-preview/AlertRuleRecommendations.json
89+
- Microsoft.AlertsManagement/preview/2023-04-01-preview/TenantActivityLogAlerts.json
8090
```
8191

8292
### Tag: package-preview-2021-08

0 commit comments

Comments
 (0)