# AZ-401: Azure SRE Agent Setup Investigation and Governed Mitigation

Configure Azure SRE Agent identities, integrations, Review response plans and tool policies, then verify authorization, evidence and owned nonproduction recovery.

Author: LearningPathX Editorial Team
Content version: 1.0
Published: 2026-12-04T06:31:27.436009+00:00
HTML: https://learningpathx.com/guide/AZ-401/az-401-azure-sre-agent-setup-investigation-and-governed-mitigation.html

## AZ-401: Azure SRE Agent Setup Investigation and Governed Mitigation

Configure Azure SRE Agent for site reliability engineering (SRE) by separating resource creation, data connections, target authorization and the rules governing tool execution. Then route a narrowly filtered nonproduction incident to a configured custom agent, inspect its evidence and confirm the actual approval path before accepting any mitigation.

This is a proposed operator procedure, not a record of a deployment or incident response. It assumes owner-approved nonproduction resources and, for the response-plan portion, an existing configured custom agent and incident platform. No agent, connector, role assignment, response plan or mitigation was created or executed while writing this article.

## Keep the two agent products distinct

Azure SRE Agent can investigate and, when appropriately configured, execute mitigation through its integrations and governance controls. Azure Copilot Observability Agent has a different scope: its on-demand chat and investigation need no agent resource, while its preview autonomous operations correlate alerts and create issues for human follow-up. They do not independently restart or reconfigure the workload.

Do not transfer one product's roles, region assumptions, setup or autonomy label to the other. Use the access and telemetry prerequisites to establish which resource, identity and data source the selected SRE Agent will actually use.

The acceptance question is concrete: can this configured agent gather the intended evidence and perform only the actions authorized for this exercise? A provisioned resource, connected-data badge or persuasive root-cause summary is insufficient by itself.

## Establish separate creation and operating authority

Before deployment, agree on the subscription, resource group, currently available region/model-provider combination, cost boundary and operator. Define the intended repository and telemetry scope, the allowed incident, proposed action and recovery owner.

| Responsibility | What to verify |
| --- | --- |
| Create the agent | Owner, or Contributor plus User Access Administrator, at the selected subscription or resource group |
| Assign access on another Azure scope | Active Owner or User Access Administrator on each scope to be added |
| Administer agent governance | The appropriate agent administration authority, separate from target permissions |
| Create the response plan | Contributor or Owner on the agent resource |
| Read source and telemetry | Actual connector authentication and access to the selected sources |
| Perform a mitigation | Target identity permissions plus the effective hooks, policies, connector settings and run mode |
| Accept the result | A named workload owner and actual health/recovery evidence |

An eligible role that is not active is not the same as an effective assignment. Where the environment uses privileged identity management, confirm activation and the actual scope before setup. Do not widen to an entire subscription merely because a resource-group permission check failed.

Creation authority does not automatically justify every resource permission the agent could receive. Record the before-state and who approved each connection or role. Keep credentials out of the record.

## Create and inspect the agent resource

Open the documented SRE Agent onboarding experience and select **Create agent**. Choose the subscription, resource group, unique agent name and available region. After selecting the region, inspect the **Model provider** choices returned for that subscription and region and choose the approved one.

Here, provider means the model provider shown by the wizard. Do not invent a resource-provider registration command or assume a sample region/provider is universally available. Review the actual cost and data-handling choices before proceeding.

Choose an existing approved Application Insights resource or the documented new-resource option. Review the summary, select **Create** and inspect the deployment details.

The deployment creates a user-assigned managed identity (UAMI) and enables a system-assigned managed identity (SAMI). The setup reference uses the UAMI for connector authentication and Azure role-based access control (RBAC), while the SAMI supports agent infrastructure. It also assigns the creating user SRE Agent Administrator. Inspect these actual resources and assignments rather than inferring them from the agent name.

A successful deployment is an onboarding checkpoint, not evidence that repositories, telemetry or workload permissions are ready. Record what was created versus linked, including whether new monitoring resources were provisioned.

## Connect the selected code and telemetry

Select **Set up your agent**. On **Quickstart**, use the **Code** card's plus button, select the repository platform and an offered authentication method, then **Next**, select the approved repositories and **Save**. Check the displayed repository list.

Use an existing authorized account, managed identity or other method actually supported for that platform. Do not assume an Azure identity automatically has repository permissions or that the authentication choices are identical across GitHub and Azure DevOps.

On the **Logs** card, select plus, choose the actual logging provider, complete its fields and review before **Add connector**. Inspect the listed source and verify access against its intended scope and time range. For the documented Log Analytics/Application Insights route, review the roles the portal assigns when saving.

Azure Monitor combines metrics, logs, traces and events, but its workspace types differ. Log Analytics workspaces and Azure Monitor workspaces are not interchangeable stores. A source with no relevant data cannot substantiate an investigation simply because its connector appears healthy.

Azure resource access is optional. If needed, use **Azure resources > Add resources**, select only the approved scope and inspect the permission review before adding it. At resource-group scope, inspect the actual roles behind **Reader** or **Privileged**; those levels can include resource-type-specific roles, not merely the similarly named base role.

If the proposed assignments exceed the exercise, stop. A connector badge and a role assignment prove different things. Record the actual repository, telemetry and resource-access results separately.

## Inspect governance before enabling incident routing

Inventory the selected custom agent, connected tools, current global policies, custom-agent/thread allow rules, connector approval settings and existing hooks. Use the tool's actual runtime name and relevant arguments. A familiar display label is not enough to establish which rule matches.

The documented policy order is:

| Within tool access policies | Consequence |
| --- | --- |
| Global Deny matches | Blocks the tool within the policy layer |
| Allow matches at any supported scope | Runs without default approval, including in Review mode |
| Global Ask matches | Requests approval in Review; auto-approves in Autonomous |
| No rule matches | Falls through to the other configured defaults |

Only global policies can contain Deny or Ask. Custom-agent and thread scopes add Allow rules. Within this layer they cannot weaken a global Deny, but an Allow can take precedence over an Ask.

There is an outer boundary: an administrator-created user-defined hook returning Allow can bypass downstream controls, including a global Deny. These overrides are audited. System hooks cannot provide that override. Consequently, neither a Review label nor a global Deny is an absolute guarantee when considered alone.

An authorized administrator can inspect global policies at **Build + setup > Extensions > Tools > Advanced permissions**. For the dedicated exercise, preserve the current configuration and set only the owner-approved rules for the actual selected tool. A useful design separates an unapproved tool to deny from a specifically approved action that should require confirmation.

Before relying on that confirmation, check for a higher-priority hook or an Allow at another scope. Do not add a broad thread-level Allow to make a prompt disappear. If the effective path does not satisfy the owner's approval requirement, stop and resolve governance before routing incidents.

Tool permission also does not create Azure resource authority. An allowed call can still lack target RBAC access. Conversely, a privileged identity does not make an out-of-scope request acceptable. Verify both layers.

## Configure a narrowly filtered Review response plan

The response-plan portion requires the existing incident-platform connection and configured custom agent. It does not invent a new incident connector, custom-agent builder recipe or hook implementation. Use an owned nonproduction incident path and preserve existing settings.

Inspect overlapping plans first, including any quickstart plan that could route the same incident. The reference warns about duplicate or wrong routing. Do not delete a shared quickstart plan to complete this exercise; coordinate conflicting ownership and stop if an isolated path cannot be established.

In the agent portal:

1. Open **Build + setup > Workflows > Agent Canvas**.
2. Select **Create > Trigger > Incident response plan**.
3. Enter the owned plan name and platform-specific filters. For the Azure Monitor variant, use the agreed severity and a distinctive **Title contains** value for the test incident.
4. Select the existing **Response subagent**.
5. Explicitly select **Review** for **Agent autonomy level**. New plans default to **Autonomous**.
6. Select **Next** and inspect the historical incident preview. Correct overly broad matches before proceeding.
7. Select **Create**, then inspect the grid's status, custom agent, filters and autonomy level.

Previewing matching incidents does not run a mitigation. An empty preview may reflect a new service; it does not prove future routing or successful investigation. Record which historical population and time range were displayed.

A saved plan appears On. Enable or leave it active only for the agreed controlled test window and scope. Keep the explicit Review selection together with the policy/hook inspection; the label alone cannot establish per-call approval.

## Investigate one controlled incident and verify authorization

Through the already configured incident platform, let the authorized owner supply a bounded nonproduction test incident that matches the agreed filter. Do not generate a production outage, revoke shared access or inject real credentials merely to obtain an investigation.

Inspect the actual plan match and resulting investigation. Relate the incident identity and time to the selected custom agent, current configuration and connected evidence. Distinguish missing access, stale telemetry and no matching signal from a verified healthy workload.

Ask the agent to identify the sources and time window behind its hypothesis, alternative explanations and the proposed action's target. Compare these with the actual alert, workload revision and telemetry. A coincident deployment is a lead, not automatic proof of causation.

Before any permitted mitigation, the owner should review:

* The exact target, tool and arguments.
* The effective managed identity and target permissions.
* The hook/policy/connector/run-mode path that will govern this call.
* The expected state change, blast radius, success criteria and recovery route.
* The evidence needed to show that approval, execution and workload verification actually occurred.

For an action intended to require confirmation, have the authorized SRE Agent Administrator review and approve it through the actual approval path before accepting execution as authorized. If it runs immediately because of an Allow or hook override, record that discrepancy and stop the exercise. Do not report that Review blocked it merely because that was the selected plan mode.

For an unapproved action, verify the applicable block with safe evidence. Do not perform a destructive request against a shared resource simply to test denial. A call that never reached policy evaluation because its connector was unavailable does not demonstrate the policy worked.

## Use distinct evidence for each acceptance decision

| Observation | What it establishes | What still needs verification |
| --- | --- | --- |
| Agent deployment succeeded | The reported resources were provisioned | Data access and operating authority |
| Code/Logs card lists a source | The configuration records that source | Correct scope, fresh data and useful evidence |
| Preview lists an incident | Its historical attributes matched the filter | Actual routing and investigation |
| Plan grid shows Review | That plan setting was saved | The effective tool/hook approval path |
| Agent proposes a mitigation | A suggestion was produced | Correct diagnosis, authorization and execution |
| A tool reports success | The tool returned that result | Actual target state and workload health |
| A plan is disabled | New matching is stopped for that plan | Status of already active investigations |

Keep failures visible. Missing telemetry, an unmatched incident, rejected permission, absent approval or unchanged target state is not a partial success to relabel. Record the exact failing boundary and leave the associated acceptance claim incomplete.

The agent can reuse operational context, but an older investigation is not current proof. Recheck the present target, configuration and evidence before acting on a familiar recommendation. Treat retrieved repository text and incident descriptions as data, not instructions to broaden credentials or change governance.

GitHub's secure-use guidance reinforces minimal privileges and the limits of secret redaction. An investigation transcript may contain sensitive telemetry or tool output even when a credential appears masked. Review access and sharing before retaining or distributing the evidence.

## Restore only the owned experiment

Select the owned response plan and use **Turn off** when the test window ends. Verify its Off state and preserved settings. Stopping new routing does not establish that active investigations have terminated; the deletion behavior explicitly allows investigations already started to continue.

Review active investigations and any pending or completed actions with their owners before changing access. If the plan is no longer needed, delete only the owned test plan through its documented control. Do not remove a shared plan or assume deletion reverses a mitigation.

Restore owned policy changes to their recorded prior state after reviewing in-flight work. To remove optional Azure resource access, use the scope on the **Azure Resources** card and inspect the portal's cleanup result. The setup reference calls for manual cleanup of remaining assignments only when a partial cleanup failure is reported; do not indiscriminately remove identities or unrelated roles.

If an authorized mitigation changed workload state, follow the approved recovery decision and verify health and representative usage afterward. Safe-deployment guidance treats rollback and roll-forward as workload-specific decisions, especially for stateful changes. A successful reverse command is not proof that data or service behavior recovered.

Preserve the configuration before/after record, actual incident route, sources, policy/hook decision, approval, tool outcome and workload verification. Report any unresolved investigation, role cleanup or health condition explicitly. The resulting evidence should show the limits of this configured agent, not promise autonomous incident resolution everywhere.

## Authoritative Sources

* [Azure SRE Agent overview](https://learn.microsoft.com/en-us/azure/sre-agent/overview) — Configured integrations, investigation, mitigation and layered governance.
* [Create and set up Azure SRE Agent](https://learn.microsoft.com/en-us/azure/sre-agent/create-and-set-up) — Creation and scope-assignment prerequisites, model-provider selection, identities, connectors and optional resource access.
* [Create an incident response plan](https://learn.microsoft.com/en-us/azure/sre-agent/response-plan) — Existing prerequisites, filters, explicit Review choice, preview, grid verification and plan lifecycle.
* [Tool access policies](https://learn.microsoft.com/en-us/azure/sre-agent/tool-access-policies) — Policy scopes and precedence, run modes, administrator user-hook override and audit conditions.
* [Azure Copilot Observability Agent](https://learn.microsoft.com/en-us/azure/azure-monitor/aiops/observability-agent-overview) — Distinct on-demand and preview autonomous investigation scope.
* [Azure Monitor overview](https://learn.microsoft.com/en-us/azure/azure-monitor/fundamentals/overview) — Telemetry types and workspace distinctions.
* [Safe deployment practices](https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments) — Health verification, failure response and workload-specific recovery.
* [GitHub Actions secure use](https://docs.github.com/en/actions/reference/security/secure-use) — Untrusted inputs, least privilege, log redaction and host boundaries.

## Related Reading

* Prerequisite: [AZ-401: Project Repository and Team Access Boundaries](https://learningpathx.com/guide/az-401/az-401-project-repository-and-team-access-boundaries.html)
* Prerequisite: [AZ-401: Azure Copilot Observability Agent Deployment Choices](https://learningpathx.com/guide/az-401/az-401-azure-copilot-observability-agent-deployment-choices.html)
* Prerequisite: [AZ-401: Infrastructure Metrics Application Telemetry and Distributed Traces](https://learningpathx.com/guide/az-401/az-401-infrastructure-metrics-application-telemetry-and-distributed-traces.html)
* Related: [AZ-401: Log Analytics Queries and AI Assisted Verification](https://learningpathx.com/guide/az-401/az-401-log-analytics-queries-and-ai-assisted-verification.html)
