|
| 1 | +--- |
| 2 | +title: Create and use an SRE Agent |
| 3 | +description: Learn to use an automated agent to resolve problems and keep your apps running in Azure. |
| 4 | +services: app-service |
| 5 | +author: craigshoemaker |
| 6 | +ms.service: azure-container-apps |
| 7 | +ms.topic: how-to |
| 8 | +ms.date: 05/16/2025 |
| 9 | +ms.author: cshoe |
| 10 | +--- |
| 11 | + |
| 12 | +# Create and use an Azure SRE Agent |
| 13 | + |
| 14 | +An Azure SRE Agent helps you maintain the health and performance of your Azure resources through AI-powered monitoring and assistance. Agents continuously watch your resources for issues, provide troubleshooting help, and suggest remediation steps available through a natural language chat interface. To ensure accuracy and control, any agent action taken on your behalf requires your approval. |
| 15 | + |
| 16 | +This article demonstrates how to create an SRE Agent, connect it to your resources to maintain optimal application performance. |
| 17 | + |
| 18 | +## Create an agent |
| 19 | + |
| 20 | +Create an agent by pointing it to the resource groups you want to monitor. |
| 21 | + |
| 22 | +### Prerequisites |
| 23 | + |
| 24 | +You need to grant your agent permissions so that it can access the Azure resources. |
| 25 | + |
| 26 | +Before you can create a new agent, make sure your user account has correct permissions. Your account needs `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). |
| 27 | + |
| 28 | +### Create |
| 29 | + |
| 30 | +To create an SRE Agent, follow these steps: |
| 31 | + |
| 32 | +1. Go to the Azure portal and search for and select **SRE Agent**. |
| 33 | + |
| 34 | +1. Select **Create**. |
| 35 | + |
| 36 | +1. Enter the following values in the *Create agent* window: |
| 37 | + |
| 38 | + | Property | Value | |
| 39 | + |---|---| |
| 40 | + | Subscription | Select your Azure subscription. | |
| 41 | + | Resource group | Select an existing resource group or to create a new one, enter a name. | |
| 42 | + | Name | Enter a name for your agent. | |
| 43 | + | Region | Select **Sweden Central**.<br><br>During preview, SRE Agents are only available in the *Sweden Central* region, but they can monitor resources in any Azure region.| |
| 44 | + | Choose role | Select **Contributor role**. | |
| 45 | + |
| 46 | +1. Select the **Select resource groups** button. |
| 47 | + |
| 48 | +1. In the *Select resource groups to monitor* window, search for the resource group you want to monitor. |
| 49 | + |
| 50 | + Avoid selecting the resource group name link. To select a resource group, check the checkbox next to the resource group. |
| 51 | + |
| 52 | +1. Scroll to the bottom of the dialog window and select **Save**. |
| 53 | + |
| 54 | +1. Select **Create**. |
| 55 | + |
| 56 | +## Chat with your agent |
| 57 | + |
| 58 | +Your agent has access to any resource inside the resource group associated with the agent. Use the chat feature to help you inquire about and resolve issues related to your resources. |
| 59 | + |
| 60 | +1. Go to the Azure portal, search for and select **SRE Agent**. |
| 61 | + |
| 62 | +1. Locate your agent in the list and select **Chat with agent**. |
| 63 | + |
| 64 | +Once the chat window loads, you can begin asking your agent questions. Here's a series of questions that can help you get started: |
| 65 | + |
| 66 | +- What can you help me with? |
| 67 | +- What subscriptions/resource groups/resources are you managing? |
| 68 | +- What alerts should I set up for `<RESOURCE_NAME>`? |
| 69 | +- Show me visualization of `2xx` requests vs HTTP errors for my web apps across all subscriptions |
| 70 | + |
| 71 | +If you have a specific problem in mind, you could ask questions like: |
| 72 | + |
| 73 | +- Why is `<RESOURCE_NAME>` slow? |
| 74 | +- Why is `<RESOURCE_NAME>` not working? |
| 75 | +- Can you investigate `<RESOURCE_NAME>`? |
| 76 | +- Can you get me the `<METRIC>` of `<RESOURCE_NAME>`? |
| 77 | + |
| 78 | +## Related content |
| 79 | + |
| 80 | +- [SRE Agent overview](./sre-agent-overview.md) |
0 commit comments