GetAlertSummary API Azure monitor

NIJSTEN Stephen 120 Reputation points
2024-05-15T09:43:20.1866667+00:00

Dear Forum,

I've received an e-mail notification that the GetAlertSummary API is being used in my tenant and that it will be deprecated in 2026 but I don't know where this API is being used. It seems like this API is used to group alerts by different parameters so I think its not being used by a specific alert but by the "Monitor | Alerts" page where you can see all the triggered alerts for your Azure environment. Opening the Azure Resource Graph Explorer of this page doesn't show me any API's that are being used.

Are there other resources I can check to see if the API is being used?

Sources:

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,037 questions
{count} votes

Accepted answer
  1. Monalla-MSFT 12,846 Reputation points
    2024-06-04T12:36:55.1433333+00:00

    @NIJSTEN Stephen - Thanks for reaching out to us and apologies for the delay in responding to you.

    If you are not sure where the GetAlertSummary API is being used, there are a few resources you can check to identify where the API is being used:

    1. You can use Azure Monitor logs to search for usage of the GetAlertSummary API. Specifically, you can search for logs with the operation name "Microsoft.AlertsManagement/alerts/GetAlertSummary". This will show you all the requests made to the API, including the client IP address, user agent, and other details.
    2. You can use Azure Resource Graph to search for resources that are using the GetAlertSummary API. Specifically, you can use the following query to search for resources that have the API enabled:
         search in (AzureActivity) * | where OperationName == "Microsoft.AlertsManagement/alerts/GetAlertSummary" | summarize count() by bin(TimeGenerated, 1h
      
      This will show you all the resources that have the GetAlertSummary API enabled, including the resource ID and other details.
    3. Also check the Azure portal to see if any resources are using the GetAlertSummary API. Specifically, you can go to the "Alerts" page in the Azure portal and check if any alerts are grouped by the parameters that the API supports. If alerts are grouped by these parameters, it is likely that the GetAlertSummary API is being used.

    Hope this helps. and please feel free to reach out if you have any further questions.


    Please don't forget to "Accept as Answer" and click "Yes" if the above response is helpful, so it can be beneficial to the community.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful