Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.ResourceHealth to add ve…
Browse files Browse the repository at this point in the history
…rsion stable/2022-05-01 (#21588)

* Adds base for updating Microsoft.ResourceHealth from version preview/2022-05-01-preview to version 2022-05-01

* Updates readme

* Updates API version in new specs and examples

* Changes to example files for ImpactedResources.

* was told to add a pattern restiction

* was told to add a pattern restiction

Co-authored-by: ABHISHEK SINGHAL <[email protected]>
  • Loading branch information
abhayohri and abhishek-corp authored Dec 6, 2022
1 parent 903a880 commit 1114a5b
Show file tree
Hide file tree
Showing 14 changed files with 2,545 additions and 3 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parameters": {
"resourceUri": "resourceUri",
"api-version": "2022-05-01",
"$expand": "recommendedactions"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.ClassicCompute/virtualMachines /rhctestenvV1PI/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
"name": "current",
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
"location": "eastus",
"properties": {
"availabilityState": "Unavailable",
"title": "Unavailable",
"summary": "We're sorry, we couldn't automatically recover your virtual machine",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
"detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine",
"occuredTime": "2016-03-29T09:12:00Z",
"reportedTime": "2016-05-04T14:11:29.7598931Z",
"rootCauseAttributionTime": "2016-03-29T09:13:00Z",
"resolutionETA": "2016-03-29T09:37:00Z",
"recommendedActions": [
{
"action": "To start this virtual machine, open the resource blade and click Start",
"actionUrl": "<#ResourceBlade>",
"actionUrlText": "resource blade"
},
{
"action": "If you are experiencing problems you believe are caused by Azure, contact support",
"actionUrl": "<#SupportCase>",
"actionUrlText": "contact support"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"parameters": {
"resourceUri": "resourceUri",
"api-version": "2022-05-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.ClassicCompute/virtualMachines/rhctes tenvV1PI/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
"name": "current",
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
"location": "eastus",
"properties": {
"availabilityState": "Unavailable",
"title": "Unavailable",
"summary": "We're sorry, we couldn't automatically recover your virtual machine",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
"detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine",
"occuredTime": "2016-03-29T09:12:00Z",
"reportedTime": "2016-05-04T14:11:29.7598931Z",
"rootCauseAttributionTime": "2016-03-29T09:13:00Z",
"resolutionETA": "2016-03-29T09:37:00Z",
"serviceImpactingEvents": [
{
"eventStartTime": "2016-05-02T19:23:13.7115125Z",
"eventStatusLastModifiedTime": "2016-05-02T19:27:04.9543491Z",
"correlationId": "b56d0180-2d6c-4f7b-b750-c1eca681874c",
"status": {
"value": "Resolved"
},
"incidentProperties": {
"title": "Virtual Machines - West Europe [West Europe]",
"service": "Virtual Machines",
"region": "East US",
"incidentType": "outage"
}
}
]
}
},
{
"id": "/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.ClassicCompute/virtualMachines/rhctes tenvV1PI/providers/Microsoft.ResourceHealth/availabilityStatuses/2016-03-28+16%3a23%3a00Z",
"name": "2016-03-28+16%3a23%3a00Z",
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
"location": "eastus",
"properties": {
"availabilityState": "Available",
"summary": "This virtual machine is running normally",
"reasonChronicity": "Persistent",
"detailedStatus": "There aren’t any known Azure platform problems affecting this virtual machine",
"occuredTime": "2016-03-28T16:23:00Z"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"parameters": {
"subscriptionId": "subscriptionId",
"resourceGroupName": "resourceGroupName",
"api-version": "2022-05-01",
"$expand": "recommendedactions"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "<resourceId>/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current",
"name": "current",
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
"location": "eastus",
"properties": {
"availabilityState": "Available",
"title": "Available",
"summary": "Vm is available",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
"detailedStatus": "We have not seen any issues with your virtual machine",
"occuredTime": "2016-03-29T09:12:00Z",
"reportedTime": "2016-05-04T14:11:29.7598931Z",
"recentlyResolved": {
"unavailableOccuredTime": "2017-02-28T00:48:00Z",
"resolvedTime": "2017-02-28T00:49:00Z",
"unavailableSummary": "We are sorry your SQL database is unavailable"
},
"recommendedActions": [
{
"action": "To start this virtualmachine, open the resource blade and click Start",
"actionUrl": "<#ResourceBlade>",
"actionUrlText": "resourceblade"
}
]
}
},
{
"id": "<resourceId>/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current",
"name": "current",
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
"location": "eastus",
"properties": {
"availabilityState": "Unavailable",
"title": "Unavailable",
"summary": "We are sorry, we couldn't automatically recovery our virtualmachine",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
"detailedStatus": "Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine",
"occuredTime": "2016-03-29T09:12:00Z",
"reportedTime": "2016-05-04T14:11:29.7598931Z",
"rootCauseAttributionTime": "2016-03-29T09:13:00Z",
"resolutionETA": "2016-03-29T09:37:00Z",
"recommendedActions": [
{
"action": "To start this virtualmachine, open the resource blade",
"actionUrl": "<#ResourceBlade>",
"actionUrlText": "resourceblade"
},
{
"action": "If you are experiencing problems you believe are caused by Azure, contact support",
"actionUrl": "<#SupportCase>",
"actionUrlText": "contactsupport"
}
]
}
}
],
"nextLink": "{originalRequestUrl}?$skipToken={OpaquePageNumber}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"parameters": {
"subscriptionId": "subscriptionId",
"api-version": "2022-05-01",
"$expand": "recommendedactions"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "<resourceId>/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current",
"name": "current",
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
"location": "eastus",
"properties": {
"availabilityState": "Available",
"title": "Available",
"summary": "Vm is available",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
"detailedStatus": "We have not seen any issues with your virtual machine",
"occuredTime": "2016-03-29T09:12:00Z",
"reportedTime": "2016-05-04T14:11:29.7598931Z",
"recentlyResolved": {
"unavailableOccuredTime": "2017-02-28T00:48:00Z",
"resolvedTime": "2017-02-28T00:49:00Z",
"unavailableSummary": "We are sorry your SQL database is unavailable"
},
"recommendedActions": [
{
"action": "To start this virtualmachine, open the resource blade and click Start",
"actionUrl": "<#ResourceBlade>",
"actionUrlText": "resourceblade"
}
]
}
},
{
"id": "<resourceId>/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current",
"name": "current",
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
"location": "eastus",
"properties": {
"availabilityState": "Unavailable",
"title": "Unavailable",
"summary": "We are sorry, we couldn't automatically recovery our virtualmachine",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
"detailedStatus": "Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine",
"occuredTime": "2016-03-29T09:12:00Z",
"reportedTime": "2016-05-04T14:11:29.7598931Z",
"rootCauseAttributionTime": "2016-03-29T09:13:00Z",
"resolutionETA": "2016-03-29T09:37:00Z",
"recommendedActions": [
{
"action": "To start this virtualmachine, open the resource blade",
"actionUrl": "<#ResourceBlade>",
"actionUrlText": "resourceblade"
},
{
"action": "If you are experiencing problems you believe are caused by Azure, contact support",
"actionUrl": "<#SupportCase>",
"actionUrlText": "contactsupport"
}
]
}
}
],
"nextLink": "{originalRequestUrl}?$skipToken={OpaquePageNumber}"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"parameters": {
"subscriptionId": "subscriptionId",
"eventTrackingId": "eventTrackingId",
"api-version": "2022-05-01",
"$filter": "properties/status eq 'Active'",
"queryStartTime": "7/10/2022"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}",
"name": "{eventTrackingId}",
"type": "/providers/Microsoft.ResourceHealth/events",
"properties": {
"eventType": "ServiceIssue",
"eventSource": "ResourceHealth",
"status": "Active",
"title": "ACTIVE: Virtual machines in West US",
"summary": "An outage alert is being investigated. More information will be provided as it is known.",
"header": "Your service might have been impacted by an Azure service issue",
"article": {
"articleContent": "<html>An outage alert is being investigated. More information will be provided as it is known</html>"
},
"links": [
{
"type": "Hyperlink",
"displayText": {
"value": "Request RCA",
"localizedValue": "Request RCA"
},
"extensionName": "Microsoft_Azure_Health",
"bladeName": "RequestRCABlade",
"parameters": {
"trackingId": "{eventTrackingId}",
"rcaRequested": "False"
}
},
{
"type": "Button",
"displayText": {
"value": "Sign up for updates",
"localizedValue": "Sign up for updates"
},
"extensionName": "Microsoft_Azure_Health",
"bladeName": "AzureHealthBrowseBlade",
"parameters": {
"trackingId": "{eventTrackingId}"
}
}
],
"level": "Warning",
"eventLevel": "Informational",
"impactStartTime": "2018-11-07T00:00:00Z",
"impactMitigationTime": "2018-11-08T00:00:00Z",
"impact": [
{
"impactedService": "Virtual Machines",
"impactedRegions": [
{
"impactedRegion": "West US",
"status": "Active",
"impactedSubscriptions": [
"{subscriptionId}"
],
"impactedTenants": [],
"lastUpdateTime": "2017-12-05T21:05:00Z"
}
]
}
],
"recommendedActions": {
"message": "Recommended actions title",
"actions": [
{
"groupId": 23243,
"actionText": "action 1"
},
{
"groupId": 23432,
"actionText": "action 2"
}
],
"localeCode": "en"
},
"faqs": [
{
"question": "This is a question",
"answer": "This is an answer",
"localeCode": "en"
}
],
"isHIR": false,
"enableMicrosoftSupport": true,
"enableChatWithUs": false,
"priority": 2,
"lastUpdateTime": "2018-11-08T00:00:00Z",
"hirStage": "resolved"
}
}
}
}
}
Loading

0 comments on commit 1114a5b

Please sign in to comment.