You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/sre-agent/usage.md
+13-26Lines changed: 13 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Create and use an Azure SRE Agent (preview)
3
3
description: Learn to use an automated agent to resolve problems and keep your apps running in Azure.
4
4
author: craigshoemaker
5
5
ms.topic: how-to
6
-
ms.date: 07/15/2025
6
+
ms.date: 07/17/2025
7
7
ms.author: cshoe
8
8
ms.service: azure
9
9
---
@@ -14,18 +14,6 @@ An Azure SRE Agent helps you maintain the health and performance of your Azure r
14
14
15
15
This article demonstrates how to create an SRE Agent, connect it to your resources to maintain optimal application performance.
16
16
17
-
## Run modes
18
-
19
-
Azure SRE Agent operates in one of three different modes. Your agent behaves differently, depending on the mode type you select.
20
-
21
-
The three different types of modes are:
22
-
23
-
***Read-only**: The read-only mode puts your agent in an observation mode. The agent has access to your inspect and report on your apps and can advise you on what actions to take. In this mode, the agent only has *reader* access to most services. In limited instances, the agent is granted *contributor* access to services solely to access configuration data.
24
-
25
-
***Review**: As the agent operates in review mode, the agent can make changes to your apps and services on your behalf, but doesn't take action unless you give express approval. In this mode, the agent has *reader* or *contributor* access to services.
26
-
27
-
***Autonomous**: Autonomous mode gives the agent full ability to work on your behalf without the need to request approval to proceed. In this mode, the agent has *reader* or *contributor* access to services.
28
-
29
17
## Create an agent
30
18
31
19
Create an agent by associating resource groups you want to monitor to the agent.
@@ -36,9 +24,7 @@ You need to grant your agent the correct permissions and access to the right nam
36
24
37
25
***Security context**: Before you can create a new agent, make sure your user account has the `Microsoft.Authorization/roleAssignments/write` permissions using either [Role Based Access Control Administrator](/azure/role-based-access-control/built-in-roles) or [User Access Administrator](/azure/role-based-access-control/built-in-roles).
38
26
39
-
***Associate your allow list subscription ID**: Make sure your Azure CLI session is set to
40
-
the subscription ID on the preview allow list. If you need to set the CLI context to your
41
-
subscription ID, use the following command:
27
+
***Associate your allow list subscription ID**: Make sure your Azure CLI session is set to the subscription ID on the preview allow list. If you need to set the CLI context to your subscription ID, use the following command:
42
28
43
29
```azurecli
44
30
az account set --subscription "<SUBSCRIPTION_ID>"
@@ -78,15 +64,16 @@ To create an SRE Agent, follow these steps:
78
64
| Property | Value |
79
65
|---|---|
80
66
| Agent name | Enter a name for your agent. |
81
-
| Region | Select **Sweden Central**.<br><br>During preview, Azure SRE Agent is only available in the *Sweden Central* region, but the agent can monitor resources in any Azure region. |
82
-
| Run mode| Select **Review**.<br><br>When in *review mode*, the agent works on your behalf only with your approval. |
67
+
| Region | Select **Sweden Central**.<br><br>During preview, Azure SRE Agent is only available in the *Sweden Central* region, but the agent can monitor resources in any Azure region. If don't see any options in the dropdown, then you may not have permissions to access to the Sweden Central region. |
83
68
84
69
1. Select **Choose resource groups**.
85
70
86
71
1. In the *Choose resource groups to monitor* window, search for the resource group you want to monitor.
87
72
88
73
**Avoid selecting the resource group link.**
89
74
75
+
From the resource group picker you'll see a checkmark (:::image type="icon" source="media/blue-check.png" border="false":::) next to the group name indicating the group includes services with specialized support.
76
+
90
77
To select a resource group, select the checkbox next to the resource group.
91
78
92
79
1. Scroll to the bottom of the dialog window and select **Save**.
@@ -105,17 +92,17 @@ Your agent has access to any resource inside the resource group associated with
105
92
106
93
Once the chat window loads, you can begin asking your agent questions. Here's a series of questions that can help you get started:
107
94
108
-
- What can you help me with?
109
-
- What subscriptions/resource groups/resources are you managing?
110
-
- What alerts should I set up for `<RESOURCE_NAME>`?
111
-
- Show me visualization of `2xx` requests vs HTTP errors for my web apps across all subscriptions
95
+
* What can you help me with?
96
+
* What subscriptions/resource groups/resources are you managing?
97
+
* What alerts should I set up for `<RESOURCE_NAME>`?
98
+
* Show me visualization of `2xx` requests vs HTTP errors for my web apps across all subscriptions
112
99
113
100
If you have a specific problem in mind, you could ask questions like:
114
101
115
-
- Why is `<RESOURCE_NAME>` slow?
116
-
- Why is `<RESOURCE_NAME>` not working?
117
-
- Can you investigate `<RESOURCE_NAME>`?
118
-
- Can you get me the `<METRIC>` of `<RESOURCE_NAME>`?
102
+
* Why is `<RESOURCE_NAME>` slow?
103
+
* Why is `<RESOURCE_NAME>` not working?
104
+
* Can you investigate `<RESOURCE_NAME>`?
105
+
* Can you get me the `<METRIC>` of `<RESOURCE_NAME>`?
0 commit comments