Built-in diagnostics
azure_diagnosticsRun Azure's built-in diagnostic detectors to analyze crashes, restarts, HTTP 5xx, CPU/memory pressure, SNAT exhaustion, and deployment failures. List detectors, then specify one.
Instructions
Runs Azure's built-in "Diagnose and solve problems" detectors for App Service, Function apps and Container Apps. These analyze platform data you cannot query yourself: crashes, restarts, HTTP 5xx breakdowns, CPU and memory pressure, SNAT port exhaustion, deployment and container start failures. Call without detector to list the available detectors, then call again with a detector id.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resourceId": "<resourceId>"
},
"name": "azure_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | How many hours to look back (default 24, max 720). | |
| detector | No | Detector id. Omit to list detectors. | |
| resourceId | Yes | Resource ID of an App Service, Function app, slot, Container App or Container Apps environment. |