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/troubleshoot.md
+57-2Lines changed: 57 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn to troubleshoot common problems in Azure SRE Agent.
4
4
author: craigshoemaker
5
5
ms.author: cshoe
6
6
ms.topic: tutorial
7
-
ms.date: 07/16/2025
7
+
ms.date: 07/17/2025
8
8
ms.service: azure
9
9
---
10
10
@@ -22,6 +22,61 @@ The following table outlines frequent issues you might encounter and their solut
22
22
| The location dropdown is blank. | A non-US region policy blocks access to Sweden Central. | If your subscription or management group limits to US-only deployments, then the creation step fails. |
23
23
| The *Create* button is disabled. | Lack of administrative permissions. | Agent identity assignments fail if the user account lacks *Owner* or *User Access Administrator* permissions. |
24
24
25
+
## Deployment not found
26
+
27
+
There are few reasons you might encounter an error stating the deployment isn't found. First make sure you're naming your agent correctly, and you have the proper firewall rules in place:
28
+
29
+
* Ensure the agent’s name is unique across the subscription.
30
+
* Check for geo-blocking or firewall rules that can prevent access to the agent endpoint.
31
+
32
+
If you’re naming and your network configuration is correct, use the following steps to resolve the agent "couldn't be found" error.
1. Confirm your user account has owner or admin permissions and permissions to create resources in the Sweden Central region.
37
+
38
+
1. Confirm that the subscription is allow-listed for SRE Agent preview. Run the following command to check if your subscription is allow-listed:
39
+
40
+
```azurecli
41
+
az provider show -n Microsoft.App | grep -C 15 agents
42
+
```
43
+
44
+
If your subscription is allow-listed successfully, you see output similar to the following message.
45
+
46
+
:::image type="content" source="media/troubleshoot/sre-agent-verify-access.png" alt-text="Screenshot of console response verifying user has access to agents.":::
47
+
48
+
Look specifically for `"resourcetype : agents"` and `"defaultApiVersion : 2025-05-01-preview"`.
49
+
50
+
If running this command doesn’t return the expected result, you need to register your subscription.
51
+
52
+
1. To re-register your subscription, run the az provider register command in the Azure portal cloud shell:
53
+
54
+
```azurecli
55
+
az provider register --namespace "Microsoft.App"
56
+
```
57
+
58
+
Try creating the SRE Agent again.
59
+
60
+
## Permission errors
61
+
62
+
If you're unable to chat or interact with the agent, and you encounter 403 Forbidden or CORS Policy errors, use the following steps to help resolve your issue.
63
+
64
+
The following screenshot shows the error message:
65
+
66
+
:::image type="content" source="media/troubleshoot/sre-agent-permission-errors.png" alt-text="Screenshot of errors resulting from incorrect permissions.":::
67
+
68
+
Or, you might see the following output in your network trace:
69
+
70
+
:::image type="content" source="media/troubleshoot/sre-agent-network-trace-error.png" alt-text="Screenshot of the browser network trace when the agent encounters a permissions error.":::
71
+
72
+
To resolve the issue:
73
+
74
+
* Ensure you have Contributor or Owner access to the resource group hosting the SRE Agent.
75
+
76
+
* Avoid relying solely on group-based role assignments. Assign roles directly to your account if issues persist.
77
+
78
+
* Use the *Check Access* feature in the Azure portal to verify you have the right permissions.
0 commit comments