Skip to content

Commit 0b3f744

Browse files
authored
Merge pull request #302966 from craigshoemaker/sre/troubleshooting
[SRE Agent] Update: Troubleshooting doc -> new scenarios
2 parents e6fa711 + e08f86e commit 0b3f744

File tree

5 files changed

+57
-2
lines changed

5 files changed

+57
-2
lines changed
116 KB
Loading
46.3 KB
Loading
12.7 KB
Loading
29.2 KB
Loading

articles/sre-agent/troubleshoot.md

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn to troubleshoot common problems in Azure SRE Agent.
44
author: craigshoemaker
55
ms.author: cshoe
66
ms.topic: tutorial
7-
ms.date: 07/16/2025
7+
ms.date: 07/17/2025
88
ms.service: azure
99
---
1010

@@ -22,6 +22,61 @@ The following table outlines frequent issues you might encounter and their solut
2222
| 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. |
2323
| The *Create* button is disabled. | Lack of administrative permissions. | Agent identity assignments fail if the user account lacks *Owner* or *User Access Administrator* permissions. |
2424

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.
33+
34+
:::image type="content" source="media/troubleshoot/sre-agent-failure-notification.png" alt-text="Screenshot of Azure SRE Agent provisioning failure notification.":::
35+
36+
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.
79+
2580
## Related content
2681
27-
- [Security contexts](./security-context.md)
82+
* [Security contexts](./security-context.md)

0 commit comments

Comments
 (0)