You can view previously submitted impact reports and insights through the REST API, Azure Resource Graph Explorer, and the Azure portal.
Permissions needed
You need either the Impact Reporter role or the read action on Microsoft.Impact/WorkloadImpact/* at the appropriate scope (root, subscription, or resource group).
Use the following channels to view impact reports or insights:
- Azure portal
- Azure Resource Graph query
- REST API
In the Azure portal, go to Impact Reporting. Look for your subscription, and select the date range.
To view the insights generated from the impacts, go to the bottom of the page. The tabular view shows the count of the insights for each resource name.
Select the insight count to see recommended actions for each of the insights.
View impacts by using the REST API
You can use the Impact Reporting REST API to view previously filed impact reports. For more information, review the full REST API reference.
View a single impact report
For more information, see the REST API reference.
az rest --method GET --url "https://management.azure.com/subscriptions/<Subscription_id>/providers/Microsoft.Impact/workloadImpacts/<impact_name>?api-version=2022-11-01-preview"
Response
{
"id": "/subscriptions/<Subscription_id>/providers/Microsoft.Impact/workloadImpacts/Impact02",
"name": "Impact02",
"type": "microsoft.impact/workloadimpacts",
"systemData": {
...
},
"properties": {
"impactedResourceId": "/subscriptions/<Subscription_id>/resourceGroups/<rg-name>/providers/Microsoft.Compute/virtualMachines/<vm-name>",
"startDateTime": "2022-11-14T05:59:46.6517821Z",
"endDateTime": null,
"impactDescription": "something's not right",
"impactCategory": "Resource.Performance",
"workload": {
"context": "myCompany/scenario1",
"toolset": "REST"
},
"provisioningState": "Succeeded",
"impactUniqueId": "1234n98-8dc8-4c52-8ce2-6fa86e6rs",
"reportedTimeUtc": "2022-11-14T20:55:38.7667873Z"
}
}
To run these queries, in the Azure portal, go to the Azure Resource Graph Explorer query pane.
Get all impact reports that have insights
This query retrieves all impact reports with insights. They show key details such as the resource ID and impact properties.
impactreportresources
|where ['type'] =~ 'microsoft.impact/workloadimpacts'
|extend startDateTime=todatetime(properties["startDateTime"])
|extend impactedResourceId=tolower(properties["impactedResourceId"])
|join kind=inner hint.strategy=shuffle (impactreportresources
|where ['type'] =~ 'microsoft.impact/workloadimpacts/insights'
|extend insightCategory=tostring(properties['category'])
|extend eventId=tostring(properties['eventId'])
|project impactId=tostring(properties["impact"]["impactId"]), insightProperties=properties, insightId=id) on $left.id == $right.impactId
|project impactedResourceId, impactId, insightId, insightProperties, impactProperties=properties
For a resource URI, find all reported impacts and insights
When you give this query a resource ID, it retrieves impact reports and insights that include the specified resource ID.
impactreportresources
|where ['type'] =~ 'microsoft.impact/workloadimpacts'
|extend startDateTime=todatetime(properties["startDateTime"])
|extend impactedResourceId=tolower(properties["impactedResourceId"])
|where impactedResourceId =~ '<***resource_uri***>'
|join kind=leftouter hint.strategy=shuffle (impactreportresources
|where ['type'] =~ 'microsoft.impact/workloadimpacts/insights'
|extend insightCategory=tostring(properties['category'])
|extend eventId=tostring(properties['eventId'])
|project impactId=tostring(properties["impact"]["impactId"]), insightProperties=properties, insightId=id) on $left.id == $right.impactId
|project impactedResourceId, impactId=id, insightId, insightProperties, impactProperties=properties
|order by insightId desc
Related content