Skip to content

Commit 7157ab5

Browse files
abhayohrikayousef
authored andcommitted
[Hub Generated] Review request for Microsoft.ResourceHealth to add version preview/2022-05-01 (Azure#21286)
* Adds base for updating Microsoft.ResourceHealth from version stable/2020-05-01 to version 2022-05-01 * Updates readme * Updates API version in new specs and examples * made the changes for tenant level and impacted resources similarly to the private repo * changed api version to 2022-05-01-preview * changed api version to 2022-05-01-preview * updated readme to reflect new filename * updated example to use targetRegion instead of region in filter condition * changed the default version back to 2020 as i found that all previous defaults were ga versions. thus will be updated when this goes to GA
1 parent 5713cdc commit 7157ab5

14 files changed

+2552
-11
lines changed

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-05-01-preview/ResourceHealth.json

Lines changed: 1513 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"resourceUri": "resourceUri",
4+
"api-version": "2022-05-01-preview",
5+
"$expand": "recommendedactions"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.ClassicCompute/virtualMachines /rhctestenvV1PI/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
11+
"name": "current",
12+
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
13+
"location": "eastus",
14+
"properties": {
15+
"availabilityState": "Unavailable",
16+
"title": "Unavailable",
17+
"summary": "We're sorry, we couldn't automatically recover your virtual machine",
18+
"reasonType": "Unplanned",
19+
"reasonChronicity": "Persistent",
20+
"detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine",
21+
"occuredTime": "2016-03-29T09:12:00Z",
22+
"reportedTime": "2016-05-04T14:11:29.7598931Z",
23+
"rootCauseAttributionTime": "2016-03-29T09:13:00Z",
24+
"resolutionETA": "2016-03-29T09:37:00Z",
25+
"recommendedActions": [
26+
{
27+
"action": "To start this virtual machine, open the resource blade and click Start",
28+
"actionUrl": "<#ResourceBlade>",
29+
"actionUrlText": "resource blade"
30+
},
31+
{
32+
"action": "If you are experiencing problems you believe are caused by Azure, contact support",
33+
"actionUrl": "<#SupportCase>",
34+
"actionUrlText": "contact support"
35+
}
36+
]
37+
}
38+
}
39+
}
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"parameters": {
3+
"resourceUri": "resourceUri",
4+
"api-version": "2022-05-01-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.ClassicCompute/virtualMachines/rhctes tenvV1PI/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
12+
"name": "current",
13+
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
14+
"location": "eastus",
15+
"properties": {
16+
"availabilityState": "Unavailable",
17+
"title": "Unavailable",
18+
"summary": "We're sorry, we couldn't automatically recover your virtual machine",
19+
"reasonType": "Unplanned",
20+
"reasonChronicity": "Persistent",
21+
"detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine",
22+
"occuredTime": "2016-03-29T09:12:00Z",
23+
"reportedTime": "2016-05-04T14:11:29.7598931Z",
24+
"rootCauseAttributionTime": "2016-03-29T09:13:00Z",
25+
"resolutionETA": "2016-03-29T09:37:00Z",
26+
"serviceImpactingEvents": [
27+
{
28+
"eventStartTime": "2016-05-02T19:23:13.7115125Z",
29+
"eventStatusLastModifiedTime": "2016-05-02T19:27:04.9543491Z",
30+
"correlationId": "b56d0180-2d6c-4f7b-b750-c1eca681874c",
31+
"status": {
32+
"value": "Resolved"
33+
},
34+
"incidentProperties": {
35+
"title": "Virtual Machines - West Europe [West Europe]",
36+
"service": "Virtual Machines",
37+
"region": "East US",
38+
"incidentType": "outage"
39+
}
40+
}
41+
]
42+
}
43+
},
44+
{
45+
"id": "/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.ClassicCompute/virtualMachines/rhctes tenvV1PI/providers/Microsoft.ResourceHealth/availabilityStatuses/2016-03-28+16%3a23%3a00Z",
46+
"name": "2016-03-28+16%3a23%3a00Z",
47+
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
48+
"location": "eastus",
49+
"properties": {
50+
"availabilityState": "Available",
51+
"summary": "This virtual machine is running normally",
52+
"reasonChronicity": "Persistent",
53+
"detailedStatus": "There aren’t any known Azure platform problems affecting this virtual machine",
54+
"occuredTime": "2016-03-28T16:23:00Z"
55+
}
56+
}
57+
]
58+
}
59+
}
60+
}
61+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"resourceGroupName": "resourceGroupName",
5+
"api-version": "2022-05-01-preview",
6+
"$expand": "recommendedactions"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "<resourceId>/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current",
14+
"name": "current",
15+
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
16+
"location": "eastus",
17+
"properties": {
18+
"availabilityState": "Available",
19+
"title": "Available",
20+
"summary": "Vm is available",
21+
"reasonType": "Unplanned",
22+
"reasonChronicity": "Persistent",
23+
"detailedStatus": "We have not seen any issues with your virtual machine",
24+
"occuredTime": "2016-03-29T09:12:00Z",
25+
"reportedTime": "2016-05-04T14:11:29.7598931Z",
26+
"recentlyResolved": {
27+
"unavailableOccuredTime": "2017-02-28T00:48:00Z",
28+
"resolvedTime": "2017-02-28T00:49:00Z",
29+
"unavailableSummary": "We are sorry your SQL database is unavailable"
30+
},
31+
"recommendedActions": [
32+
{
33+
"action": "To start this virtualmachine, open the resource blade and click Start",
34+
"actionUrl": "<#ResourceBlade>",
35+
"actionUrlText": "resourceblade"
36+
}
37+
]
38+
}
39+
},
40+
{
41+
"id": "<resourceId>/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current",
42+
"name": "current",
43+
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
44+
"location": "eastus",
45+
"properties": {
46+
"availabilityState": "Unavailable",
47+
"title": "Unavailable",
48+
"summary": "We are sorry, we couldn't automatically recovery our virtualmachine",
49+
"reasonType": "Unplanned",
50+
"reasonChronicity": "Persistent",
51+
"detailedStatus": "Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine",
52+
"occuredTime": "2016-03-29T09:12:00Z",
53+
"reportedTime": "2016-05-04T14:11:29.7598931Z",
54+
"rootCauseAttributionTime": "2016-03-29T09:13:00Z",
55+
"resolutionETA": "2016-03-29T09:37:00Z",
56+
"recommendedActions": [
57+
{
58+
"action": "To start this virtualmachine, open the resource blade",
59+
"actionUrl": "<#ResourceBlade>",
60+
"actionUrlText": "resourceblade"
61+
},
62+
{
63+
"action": "If you are experiencing problems you believe are caused by Azure, contact support",
64+
"actionUrl": "<#SupportCase>",
65+
"actionUrlText": "contactsupport"
66+
}
67+
]
68+
}
69+
}
70+
],
71+
"nextLink": "{originalRequestUrl}?$skipToken={OpaquePageNumber}"
72+
}
73+
}
74+
}
75+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"api-version": "2022-05-01-preview",
5+
"$expand": "recommendedactions"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "<resourceId>/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current",
13+
"name": "current",
14+
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
15+
"location": "eastus",
16+
"properties": {
17+
"availabilityState": "Available",
18+
"title": "Available",
19+
"summary": "Vm is available",
20+
"reasonType": "Unplanned",
21+
"reasonChronicity": "Persistent",
22+
"detailedStatus": "We have not seen any issues with your virtual machine",
23+
"occuredTime": "2016-03-29T09:12:00Z",
24+
"reportedTime": "2016-05-04T14:11:29.7598931Z",
25+
"recentlyResolved": {
26+
"unavailableOccuredTime": "2017-02-28T00:48:00Z",
27+
"resolvedTime": "2017-02-28T00:49:00Z",
28+
"unavailableSummary": "We are sorry your SQL database is unavailable"
29+
},
30+
"recommendedActions": [
31+
{
32+
"action": "To start this virtualmachine, open the resource blade and click Start",
33+
"actionUrl": "<#ResourceBlade>",
34+
"actionUrlText": "resourceblade"
35+
}
36+
]
37+
}
38+
},
39+
{
40+
"id": "<resourceId>/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current",
41+
"name": "current",
42+
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
43+
"location": "eastus",
44+
"properties": {
45+
"availabilityState": "Unavailable",
46+
"title": "Unavailable",
47+
"summary": "We are sorry, we couldn't automatically recovery our virtualmachine",
48+
"reasonType": "Unplanned",
49+
"reasonChronicity": "Persistent",
50+
"detailedStatus": "Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine",
51+
"occuredTime": "2016-03-29T09:12:00Z",
52+
"reportedTime": "2016-05-04T14:11:29.7598931Z",
53+
"rootCauseAttributionTime": "2016-03-29T09:13:00Z",
54+
"resolutionETA": "2016-03-29T09:37:00Z",
55+
"recommendedActions": [
56+
{
57+
"action": "To start this virtualmachine, open the resource blade",
58+
"actionUrl": "<#ResourceBlade>",
59+
"actionUrlText": "resourceblade"
60+
},
61+
{
62+
"action": "If you are experiencing problems you believe are caused by Azure, contact support",
63+
"actionUrl": "<#SupportCase>",
64+
"actionUrlText": "contactsupport"
65+
}
66+
]
67+
}
68+
}
69+
],
70+
"nextLink": "{originalRequestUrl}?$skipToken={OpaquePageNumber}"
71+
}
72+
}
73+
}
74+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subscriptionId",
4+
"eventTrackingId": "eventTrackingId",
5+
"api-version": "2022-05-01-preview",
6+
"$filter": "properties/status eq 'Active'",
7+
"queryStartTime": "7/10/2022"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}",
13+
"name": "{eventTrackingId}",
14+
"type": "/providers/Microsoft.ResourceHealth/events",
15+
"properties": {
16+
"eventType": "ServiceIssue",
17+
"eventSource": "ResourceHealth",
18+
"status": "Active",
19+
"title": "ACTIVE: Virtual machines in West US",
20+
"summary": "An outage alert is being investigated. More information will be provided as it is known.",
21+
"header": "Your service might have been impacted by an Azure service issue",
22+
"article": {
23+
"articleContent": "<html>An outage alert is being investigated. More information will be provided as it is known</html>"
24+
},
25+
"links": [
26+
{
27+
"type": "Hyperlink",
28+
"displayText": {
29+
"value": "Request RCA",
30+
"localizedValue": "Request RCA"
31+
},
32+
"extensionName": "Microsoft_Azure_Health",
33+
"bladeName": "RequestRCABlade",
34+
"parameters": {
35+
"trackingId": "{eventTrackingId}",
36+
"rcaRequested": "False"
37+
}
38+
},
39+
{
40+
"type": "Button",
41+
"displayText": {
42+
"value": "Sign up for updates",
43+
"localizedValue": "Sign up for updates"
44+
},
45+
"extensionName": "Microsoft_Azure_Health",
46+
"bladeName": "AzureHealthBrowseBlade",
47+
"parameters": {
48+
"trackingId": "{eventTrackingId}"
49+
}
50+
}
51+
],
52+
"level": "Warning",
53+
"eventLevel": "Informational",
54+
"impactStartTime": "2018-11-07T00:00:00Z",
55+
"impactMitigationTime": "2018-11-08T00:00:00Z",
56+
"impact": [
57+
{
58+
"impactedService": "Virtual Machines",
59+
"impactedRegions": [
60+
{
61+
"impactedRegion": "West US",
62+
"status": "Active",
63+
"impactedSubscriptions": [
64+
"{subscriptionId}"
65+
],
66+
"impactedTenants": [],
67+
"lastUpdateTime": "2017-12-05T21:05:00Z"
68+
}
69+
]
70+
}
71+
],
72+
"recommendedActions": {
73+
"message": "Recommended actions title",
74+
"actions": [
75+
{
76+
"groupId": 23243,
77+
"actionText": "action 1"
78+
},
79+
{
80+
"groupId": 23432,
81+
"actionText": "action 2"
82+
}
83+
],
84+
"localeCode": "en"
85+
},
86+
"faqs": [
87+
{
88+
"question": "This is a question",
89+
"answer": "This is an answer",
90+
"localeCode": "en"
91+
}
92+
],
93+
"isHIR": false,
94+
"enableMicrosoftSupport": true,
95+
"enableChatWithUs": false,
96+
"priority": 2,
97+
"lastUpdateTime": "2018-11-08T00:00:00Z",
98+
"hirStage": "resolved"
99+
}
100+
}
101+
}
102+
}
103+
}

0 commit comments

Comments
 (0)