Microsoft hands cloud incident response to Azure SRE Agent
Microsoft runs its own Azure SRE Agent across its engineering teams, where AI agents read alerts, logs and source code, find root causes and mitigate production incidents.
MicrosoftUnited StatesCloud and data centersScaled
- Scale
- 2,500+ Microsoft engineering teams, 5,400+ agents in production
- Scenario
- Production alert triage and incident investigation
- Business function
- IT operations
- Kind of solution
- Alert triage and investigation
- Who built it
- Built in-house
- Where it runs
- Public cloud
- Human oversight
- People review exceptions
- Organization
- Enterprise
- AI types
- Generative AI, Agentic AI
- Users
- 2,500+
tl;drMicrosoft's SRE agents mitigated 221K incidents on their own, at a median of 4 minutes.See the results
Microsoft runs Azure SRE Agent, its own AI agent for site reliability engineering, across the services of its engineering teams4. The agent picks up an alert, reads the logs and the source code, finds the root cause and acts within the permissions each team grants it1, 2.
In August 2026, Microsoft reported that more than 2,500 of its engineering teams ran 5,400+ agents in production1. To that date, the agents had processed 1.47 million incidents and mitigated 221K of them autonomously, with a median of 4 minutes from alert to mitigation1.
Before the deployment
For decades, Microsoft’s operations ran on the model that humans operated and software assisted1. Dashboards, alerts, runbooks, scripts and copilots supported on-call engineers, and the engineer was still the operator1.
- Scale: Azure is a sprawling ecosystem of hundreds of services, each with its own APIs, failure modes and operational quirks3.
- Symptoms without causes: Telemetry showed symptoms, but not what actually changed in the code or the deployment2.
- Scaffolded scenarios: The agent’s early high scores rested on custom response plans, hand-built subagents and prewritten log queries for known incident types2.
- Review at human speed: Engineers read lower-scored investigation threads each week, but they could review fifty threads a week while the agent handled ten thousand2.
What was built
Azure SRE Agent is a cloud AI agent that takes care of Azure resources and handles production incidents autonomously3. Each team grounds its agent in its source code, live telemetry, institutional knowledge and incident history1. The work divides like this:
- The agent: Searches logs, reads the service’s code at the commit of the incident and tests hypotheses, in parallel subagents where they’re independent2. It returns a root cause and a fix, such as a pull request on a new branch2, 6.
- The platform: A managed identity with Azure RBAC sets what each agent can reach, from read-only access to resource-specific contributor roles1. Tool controls and hooks decide which calls run, which wait for a person and which are refused1.
- Run modes: In Review mode, the agent proposes each action and waits for approval. Teams move well-understood scenarios to Autonomous mode after watching the agent for a few weeks1.
- Engineers: Take the incidents the agent enriches rather than mitigates, and the work that needs judgment1. They teach the agent when it gets stuck and review the fixes it proposes to its own code2.
“The model matters less every year. You can swap models. What you cannot swap is the context and governance wrapped around them.”
Alternatives considered
- Many narrow tools: Within two weeks the team had 100+ tools, and the agent stayed brittle everywhere outside the encoded scenarios. Azure CLI and kubectl became first-class tools instead3.
- Specialist subagents with handoffs: With 50+ subagents, problems requiring more than four handoffs almost always failed. The team collapsed them into a small set of generalists3.
- Memory by retrieval: The first memory used retrieval-augmented generation (RAG) over past sessions. The team replaced it with Markdown files, because embedding similarity is a weak proxy for diagnostic relevance2.
- Metrics in the prompt: Putting all metrics into the context window was the biggest source of tool failures. A code interpreter now runs the analysis3.
Rollout
Between March and August 2026, the agents deployed across Microsoft’s own services grew from 1,300+ to 5,400+4, 1.
Technology and architecture
The agent’s world is a filesystem. Source code, runbooks, query schemas and past investigation notes are files that it works through with read_file, grep, find and shell2. Inside that sandbox it runs arbitrary bash and Python, and outside it the agent can’t see or act2.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Solution platform | Azure SRE Agent | Investigates and mitigates production incidents for Microsoft’s own services | 1, 4 |
| Language model | Claude Opus and Claude Haiku | Language models the agent calls during its investigations | 2 |
| Agent orchestration | Generalist agents and subagents | A small set of generalist agents that spawn parallel subagents for independent hypotheses | 2, 3 |
| Tools and actions | Azure CLI and kubectl | Wide tools that give the agent the whole Azure and Kubernetes command surface | 3 |
| Tools and actions | Code interpreter | Runs the Python the model writes to analyze metrics and large tool outputs | 3, 4 |
| Tools and actions | Sandboxed filesystem workspace | Holds code, runbooks, query schemas and notes as files, with shell access inside a security boundary | 2 |
| Knowledge content | Markdown memory files | Structured notes on each service, its team, its logs and its failure modes that the agent reads and writes | 2 |
| Prompt and context management | Context hooks | Inject connectors, repository trees, the memory index and the resource topology into the prompt | 2 |
| Data platform and storage | Kusto | Log store the agent queries during investigations | 1, 6 |
| Developer tools | GitHub | Source of the service code and target of the pull requests the agent opens | 2, 6 |
| Access and identity | Managed identity with Azure RBAC | Sets which subscriptions and resources each agent may read or change | 1 |
| Guardrails | Tool access policies and hooks | Allow, ask or deny rules per tool and command, and scripts or LLM judges that check each call | 1 |
Context hooks orient the agent before it acts. They inject the connected systems, the repository trees, a two-tier index of the Markdown memory files and a map of Azure resources across subscriptions and regions2. Context pruning trims stale tool output mid-session, and auto-compact summarizes the findings when a session nears its context limit2.
Data inputs
- Alerts and incidents: Incident triggers, LiveSite alerts and customer-reported issues start an investigation2.
- Logs: The agent queries Kusto logs, and its memory keeps the cluster access and query patterns of each service6, 2.
- Source code: The agent checks out the exact commit at incident time, so it can read the diffs that might have caused the failure2.
- Memory: Markdown files describe each service, its owners and escalation paths, its logs, and its failure modes and prior learnings2.
- Metrics: The model writes Python that a code interpreter runs over the metrics, and only the results enter the context3.
Integrations
- Azure resources: The agent reads and changes resources through Azure CLI and kubectl commands3.
- GitHub: The agent reads service code and opens pull requests with the gh CLI2.
- Grafana: The agent pushes dashboards, such as one that tracks cache hit rate by model2.
- Incident management: Incident triggers start investigations, and a skill reads IcM incidents2, 1.
How one alert flows through the system
The agent’s own team used it to investigate an alert on the agent itself2.
- The KV cache hit rate alert started firing because the cached token percentage was dropping across the fleet. The team asked the agent instead of opening dashboards2.
- The agent spawned parallel subagents, one for the alert definition and one for cache behavior. They searched logs and read the agent’s own source code2.
- The first finding was Claude Haiku at 0% cache hits. Its average call was about 180 tokens, below the 4,096-token minimum for Haiku prompt caching, so these alerts were false positives2.
- The real regression was in Claude Opus, whose cache hit rate fell from about 70% to about 48% over a week2.
- The agent correlated the drop with the deployment history. It traced the drop to a single pull request that had restructured prompt ordering and broken the common prefix that caching relies on2.
- The agent submitted two fixes. One excluded uncacheable requests from the alert, and the other restored prefix stability in the prompt pipeline2.
Results
| Metric | Before | After | Scope and timeframe | Reported by |
|---|---|---|---|---|
| Incidents mitigated autonomously | Not disclosed | 221K | All internal agents, to August 2026 | Microsoft, measured1 |
| Median time from alert to mitigation | Not disclosed | 4 minutes | All internal agents, August 2026 | Microsoft, measured1 |
| Intent Met score on novel incidents | 45% | 75% | Novel incidents, after the filesystem workspace | Microsoft, measured2 |
| Developer hours saved | Not disclosed | about 1 million | All internal agents, to August 2026 | Microsoft, estimate1 |
- Incidents mitigated autonomously: Of 1.47 million incidents processed to August 2026, the agents mitigated 221K on their own and enriched 1.25 million for the on-call engineer1.
- Autonomous work: In the month before August 2026, 97.9% of the agents’ work ran autonomously1.
- Time to mitigation: The median time from alert to mitigation was 4 minutes in August 20261.
- Intent Met: The on-call engineer judges whether an investigation addressed the actual root cause. On novel incidents, the score rose from 45% to 75% after the move to a filesystem workspace2.
- Hours saved: The figure of about 1 million developer hours to August 2026 is an AI-calculated estimate based on an earlier baseline1. Earlier figures were over 10,000 hours in November 2025 and over 20,000 engineering hours in March 20265, 4.
- The agent’s own errors: A daily task traces the agent’s LLM errors to their root cause in its code and opens a pull request. Over two weeks, those errors fell by more than 80%2.
Lessons learned
The deployment grew fast. Incidents mitigated rose from 35,000+ in March 2026 to 221K by August 2026, when more than 2,500 engineering teams used the agents4, 1.
Reliability came from context, not from the model. Gains from model upgrades and prompt work showed in offline evals but not in production, and the agent got more reliable with 5 core tools and a few generalist agents than with 100+ tools and 50+ specialists3.
The hours-saved figures differ in kind and size. The over 20,000 engineering hours of March 2026 and the about 1 million developer hours of August 2026 are both Microsoft’s, and the larger one is an AI-calculated estimate based on a conservative earlier baseline4, 1.
Memory goes stale. When two sessions write conflicting patterns, the model has to reconcile them, and old entries mislead after a service changes2. The team relies on timestamps and explicit deprecation notes, and it has no systemic solution yet2.
Models hallucinate table names, guess column schemas and write queries against the wrong cluster2. The team answered by letting the agent read the code that produces the logs, rather than with prewritten queries2.
Model quality drops non-linearly as the context fills, well before the advertised limits3. Budget tuning for the context remains largely empirical2.
People still review what matters. Engineers merge the agent’s fixes to its own code only after manual review, and its part of the Responsible AI review had strict human review2. Every figure is Microsoft’s own, published by the team that builds and sells Azure SRE Agent1.
Case study scorecard
- 221K Incidents mitigated autonomously1
- 4 minutes Median time from alert to mitigation1
- 75% Intent Met score on novel incidents2
- about 1 million Developer hours saved1
Sources by publication date
- Organization 5
- Vendors and partners 1
Build this solution yourself
Analysis
What you need
- Code the agent can read at the incident’s commit: The largest gains came from reasoning over the service’s code and its diffs, which telemetry alone didn’t show2. Check that your repositories and deployment history are reachable from the agent.
- Queryable telemetry and incident history: The agent can only reason about what a system emits, so diagnostic logs must be on and each telemetry store reachable1.
- Permissions you can scope per tool: Teams start each scenario in Review mode and move it to Autonomous mode only once it has proven itself1. You need an identity and policy model that lets you widen autonomy one scenario at a time.
Reference architecture
Alert triage and investigation
An alert triage and investigation solution gathers the evidence on each alert that monitoring and detection systems raise and tells the people on duty what it found. Agents built on a language model gather the logs, telemetry, and written guidance for each alert, run checks, and return a conclusion with a recommended action. Actions inside agreed limits run without a person, and engineers or analysts take what is risky or uncertain.
- Operational data platform (documented in this case study)
- Intake agent
- Connectors to operational tools
- Investigation agents (documented in this case study)
- Language model (documented in this case study)
- Knowledge retrieval
- Diagnostic checks and actions (documented in this case study)
- Action limits (documented in this case study)
- Channel to the people on duty
- Outcome record
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
- China Mobile: China Mobile's NOC agents cut network repair time by 30%. Average repair time for network faults and complaints fell 30% once China Mobile's agents went live.
- Revolut: AI agents cut touchpoints in Revolut's AML investigations. Money laundering investigations at Revolut fell from up to six human touchpoints to close to one.
- NTT DOCOMO: NTT DOCOMO's AI agents halve complex network fault response. Response time for complex network failures fell by more than 50% once the agents went live.
- Adobe: AI agents cut alert triage to minutes at Adobe. Adobe's agents diagnose an alert in 2.3 minutes on average, against 18.4 for on-call engineers.
- Texas Department of Transportation: How TxDOT spots highway incidents faster with Rekor's AI. TxDOT Austin detected 159% more incidents, 8.4 minutes faster, with 29% fewer secondary crashes.
- ASM: ASM speeds up security investigations with Security Copilot. ASM's security analysts save an estimated 337 hours a week on investigations.
Cite this case study
Enterprise AI Case Studies. "Microsoft hands cloud incident response to Azure SRE Agent." Updated Nov 26, 2026. https://case-studies.ai/case-studies/process-automation/PA-095-cloud-incident-mitigation-agents-microsoft/
@misc{csai-pa-095,
author = {{Enterprise AI Case Studies}},
title = {{Microsoft hands cloud incident response to Azure SRE Agent}},
year = {2026},
note = {Updated 2026-11-26},
url = {https://case-studies.ai/case-studies/process-automation/PA-095-cloud-incident-mitigation-agents-microsoft/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
Zero Ops: Agents Operate, Humans Govern
Supporting excerpts (34)
We run Microsoft this way. Every number here is queryable
2,500+ Microsoft engineering teams
5,400+ agents running in production
Median time from alert to mitigation: 4 minutes
1.47M incidents processed
221K mitigated autonomously
1.25M enriched for the on-call engineer
~1M developer hours saved*
AI-calculated estimate, based on a conservative earlier baseline.
480K incidents handled
91K mitigated autonomously
32M agent actions executed
60K deploy-and-validate runs
97.9% of agent work ran autonomously
the two percent that does reach a person is the two percent that genuinely needs judgement
For decades it looked like this: humans operated, software assisted.
the human was still the operator
your source code, your live telemetry, your institutional knowledge, your incident history, and the skills and tools to act on all of it
you scope it with normal Azure RBAC at the subscription, resource group, or management group level
read-only access to your resources. This is all your agent needs for investigation, root-cause analysis, and reporting.
adds resource-type-specific contributor roles
In Review mode, the agent proposes actions and waits for a human to approve each one.
In Autonomous mode, it acts on its own within the bounds
Most teams start every scenario in Review, watch it work for a few weeks, and then selectively move well-understood scenarios to Autonomous.
Every tool the agent has access to can be set to one of three states:
a global deny cannot be overridden by a lower scope
Hooks can be prompt-based (an LLM judge evaluates the situation) or command-based (a bash or Python script runs deterministically).
Inspect the arguments, allow/deny/ask based on what you see
the audit trail shows exactly who approved what
query your Kusto cluster, restart a container app, read an IcM incident
Always keep a non-production agent to test changes before they touch prod.
Diagnostic logs turned on for the services you care about. An agent can only reason about what your system actually emits.
What matters is that each of those places is reachable and queryable.
The model matters less every year. You can swap models. What you cannot swap is the context and governance wrapped around them.
- Source 2:
Harness Engineering for Azure SRE Agent: Building the Agent Self-Improvement Loop
Supporting excerpts (49)
Azure SRE Agent handles tens of thousands of incident investigations each week for internal Microsoft services and external teams running it for their own systems.
Our KV cache hit rate alert started firing.
Cached token percentage was dropping across the fleet.
We didn't open dashboards. We simply asked the agent.
It spawned parallel subagents, searched logs, read through its own source code, and produced the analysis.
First finding: Claude Haiku at 0% cache hits.
the average call was ~180 tokens
4,096-token minimum for Haiku prompt caching
They were false positives.
The real regression was in Claude Opus: cache hit rate fell from ~70% to ~48% over a week.
The agent correlated the drop against the deployment history and traced it to a single PR that restructured prompt ordering, breaking the common prefix that caching relies on.
It submitted two fixes: one to exclude all uncacheable requests from the alert, and the other to restore prefix stability in the prompt pipeline.
for many internal teams, the agent could now autonomously investigate and mitigate roughly 50% of incidents
They relied on custom response plans for specific incident types, hand-built subagents for known failure modes, and pre-written log queries exposed as opaque tools.
Every week, engineers read through lower-scored investigation threads and pushed fixes: tighten a prompt, fix a tool schema, add a guardrail.
But we could only review fifty threads a week. The agent was handling ten thousand.
Telemetry showed symptoms, but not what actually changed.
Our first bet was to give the agent a filesystem as its workspace instead of a custom API layer.
It interacts with that world using read_file, grep, find, and shell.
whether the agent's investigation addressed the actual root cause as judged by the on-call engineer
rose from 45% to 75% on novel incidents
Models hallucinate table names, guess column schemas, and write queries against the wrong cluster.
The agent checks out the exact commit at incident time, not current HEAD
Our first memory system used RAG over past session learnings.
In SRE Context, embedding similarity is a weak proxy for relevance.
We replaced RAG with structured Markdown files that the agent reads and writes through its standard tool interface.
team.md for ownership and escalation paths, logs.md for cluster access and query patterns, debugging.md for failure modes and prior learnings
This removed chunking, overlap tuning, and re-ranking entirely.
One problem remains unsolved: staleness.
When two sessions write conflicting patterns to debugging.md, the model must reconcile them. When a service changes behavior, old entries can become misleading.
we do not have a systemic solution yet
Security boundaries and epistemic boundaries are enforced by the same mechanism.
Inside that boundary, the agent has full execution: arbitrary bash, python, jq, and package installs through pip or apt.
It opens PRs with gh cli
It pushes Grafana dashboards, like a cache-hit-rate dashboard we now track by model.
We fixed this with context hooks: structured context injected at prompt construction time to orient the agent before it takes action.
A serialized map of relationships across subscriptions, resource groups, and regions
That matters because a bad early choice does not just waste tokens. It sends the investigation down the wrong trajectory.
Once the agent starts reading source files and logs, complex incidents hit context limits.
Context Pruning runs mid-session.
Auto-Compact kicks in when a session approaches its context limit.
The agent searches for the last 24 hours of errors, clusters the top hitters, traces each to its root cause in the codebase, and submits a PR. We review it manually before merging. Over two weeks, the errors were reduced by more than 80%.
Helped fill out parts of its own Responsible AI review, with strict human review.
Handles customer-reported issues and LiveSite alerts end to end.
driven by scheduled tasks, incident triggers, and direct conversations with users
a generally capable agent in the right execution environment outperforms a specialized agent with bespoke tooling
Staleness is unsolved, budget tuning remains largely empirical
We rely on timestamps and explicit deprecation notes
When the agent reads the code that produces the logs, query construction stops being guesswork.
- Source 3:
Context Engineering for Reliable AI Agents: Lessons from Building Azure SRE Agent
Supporting excerpts (26)
a cloud AI agent that takes care of your Azure resources and handles your production incidents autonomously
We started with 100+ tools and 50+ specialized agents. We ended with 5 core tools and a handful of generalists.
The gains were visible in offline evals
translate into the reliability and outcomes we wanted in production
We spent a long time chasing model upgrades, polishing prompts, and debating orchestration strategies.
The real breakthrough came when we started caring much more about what we were adding to the context, when, and in what form.
Azure is a sprawling ecosystem - hundreds of services, each with its own APIs, failure modes, and operational quirks.
Within 2 weeks, we had 100+ tools and a prompt that read like a policy manual.
brittle everywhere else
CLI commands as first-class tools
Context compression: Three tools instead of hundreds.
The model now had access to the entire az/kubectl surface area
problems requiring more than four handoffs almost always failed
The fix was to collapse dozens of specialists into a small set of generalists.
We also moved the domain knowledge from system prompts into files the agents could read on demand
Reliability improved as we stopped depending on the handoff roulette.
Our own Azure OpenAI infrastructure deployment started failing.
it checked deployment logs, spotted a quota error, queried our subscription limits, found the correct support request category, and filed a ticket with the support team
Send the metrics to a code interpreter.
Metrics analysis had been our biggest source of tool failures. After this change: zero failures.
we could extend time ranges by an order of magnitude
Single digit log entry expands to 200K+ tokens.
Tool calls that can return large payloads never go straight into context.
Insight #7: Treat large tool outputs as data sources, not context.
model quality often drops non-linearly
well before we hit the advertised limits
- Source 4:
Announcing general availability for the Azure SRE Agent
Supporting excerpts (5)
Microsoft runs Azure SRE Agent across its own services
1,300+ agents deployed, 35,000+ incidents mitigated, and over 20,000 engineering hours saved
The same platform is now generally available to every customer.
A Code Interpreter writes and executes Python
Shamir Abdul Aziz, Principal Product Manager
- Source 5:
Building AI apps and agents for the new frontier
Supporting excerpts (1)
In production environments, Azure SRE agent has handled over 7K incidents and collected diagnostics on over 18K incidents, saving over 10,000 hours for on-call engineers.
- Source 6:
Azure SRE Agent Now Builds Expertise Like Your Best Engineer Introducing Deep Context
Supporting excerpts (3)
It queries Kusto logs, checks resource health, reads your code
When it identifies a fix, it creates a pull request on a new branch.
The agent works in a secure sandbox
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.