Forum Discussion

Vinoth_Azure's avatar
Aug 01, 2023

Azure app service - diagnostics Rest API

Hello team, 
  I have recently noticed the Azure app service rest API references for diagnostics, Is this referring to the diagnostics and solving problems in the portal? Or it is different?  I am not able to find any related documents about how to use them!! :sad::sad:

Please share any official document about this diagnosis rest API references, 

https://learn.microsoft.com/en-us/rest/api/appservice/diagnostics

Thanks :smile:

2 Replies

  • Hi

    Yes, the Azure App Service Diagnostics REST API refers to the same engine used in the "Diagnose and solve problems" blade in the portal. It lets you programmatically run detectors and get diagnostic insights.

    Official docs: https://learn.microsoft.com/en-us/rest/api/appservice/diagnostics

    You can list detectors, run them, and fetch results—great for automation or custom tooling

  • hazem's avatar
    hazem
    Brass Contributor

    Hello!

    The full, up-to-date REST API reference including JSON schemas, sample requests, and response definitions..etc is located here: https://learn.microsoft.com/en-us/rest/api/appservice/diagnostics?view=rest-appservice-2024-11-01

    For any slot-specific endpoints (e.g., diagnostics on deployment slots)

    Simply insert /slots/{slotName} after /sites/{siteName} in the URI.

    See also : https://learn.microsoft.com/en-us/azure/app-service/overview-diagnostics

    Cheers!

Resources