FREE STUDY NOTES · AZ-401

Deploying and configuring Azure SRE Agent

How to create Azure SRE Agent, scope its managed identity and choose run modes and response plans.

From Ultra Transcenders AZ-401 by Tony Rough

Azure SRE Agent is an Azure resource (Microsoft.App/agents) that connects to Azure resources, observability data, incident platforms and source code so it can investigate incidents, run scheduled operational tasks and, when permitted, execute mitigations. Its Learn pages don’t label the service itself as preview; some integrations, such as the Azure Cosmos DB specialisation and Teams conversations, are.

Creating the agent

Create it from https://sre.azure.com with Create agent. Prerequisites:

The wizard asks for subscription, resource group, name, region, model provider (Azure OpenAI or Anthropic, depending on region; Anthropic is excluded from EU Data Boundary commitments) and Application Insights. Deployment creates the agent, a user-assigned managed identity with the system-assigned identity also enabled, the creator’s role assignment and, if chosen, new Application Insights and Log Analytics resources.

Connecting context

Card Options Access granted
Code GitHub (account, PAT or bring-your-own GitHub App; Enterprise Cloud needs a GitHub App), Azure DevOps (account, managed identity or PAT), GitLab (PAT) Repository read for deployment correlation
Logs Log Analytics, Application Insights, Azure Data Explorer and other providers Log Analytics Reader and Monitoring Reader for the managed identity
Azure resources (optional) Management group, subscription or resource group; resource group is the recommended default Reader and Monitoring Contributor; at resource-group scope choose Reader or Privileged (adds contributor or operator roles)
Incidents Azure Monitor alerts (connected by default), PagerDuty or ServiceNow Platform credentials for the latter two

Who can do what

Role Can Can’t
SRE Agent Reader View threads, logs and incidents Chat or change anything
SRE Agent Standard User Chat, run diagnostics, request actions, manage scheduled tasks, upload knowledge, add repository connectors Approve actions or create custom agents
SRE Agent Author Create custom agents and response plans, configure incident management Chat, approve, upload knowledge or add repositories
SRE Agent Administrator Everything, including approving actions and managing connectors -

Azure Owner and Contributor grant control-plane rights only, not these data actions, so they don’t replace the SRE Agent roles.

Cost

Usage is metered in Azure Agent Units (AAUs): a fixed always-on charge of 4 AAUs per agent-hour from creation until deletion, plus active-flow charges for the tokens the agent consumes, at rates that depend on the model provider. Stopping an agent halts active flow but not the always-on charge; only deleting it ends both. A monthly active-flow limit (500 to 1,000,000 AAUs) makes the agent unavailable for chat and actions once reached. New customers can evaluate for 30 days without the always-on charge.

Common trap: Giving engineers Contributor on the agent resource so they can approve its actions - approvals need the SRE Agent Administrator role; Azure Owner and Contributor don’t include SRE Agent data actions.

Common trap: Stopping an idle SRE agent to save money - a stopped agent still incurs the always-on charge; delete it to stop billing.

Get the whole book

This note is one section of Ultra Transcenders AZ-401: Designing and Implementing Microsoft Agentic DevOps Solutions, an independent study guide that explains every topic the exam covers by technology, with comparison tables, diagrams and the common traps, plus a glossary linked to Microsoft Learn.

Amazon.co.ukKindlePaperback
Amazon.comKindlePaperback

Free to read with Kindle Unlimited. Opens Amazon in a new tab.

About the book · AZ-401 terms in the glossary · All AZ-401 study notes

More AZ-401 study notes