microsoft / microsoft/sre-agent
[Issue] SRE Agent unable to use 'az graph'
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 160
- Forks
- 97
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 12
Description
Issue Description
SRE agent is pulling information from az cli with the command 'az graph query....' the error gets returned is:
ERROR: 'graph' is misspelled or not recognized by the system.
Examples from AI knowledge base:
https://aka.ms/cli_ref
Read more about the command in reference docs
Error: ERROR: 'graph' is misspelled or not recognized by the system.Examples from AI knowledge base:
https://aka.ms/cli_ref
Read more about the command in reference docs
Thread ID
de371a29-c19f-43d8-b365-50cdac231c99
Steps to Reproduce
- Have the SRE agent pull Azure VM information. It attempts to use the 'az graph query' command then fails with the log output above.
Expected Behavior
What should happen?
SRE Agent should be able to execute query.
Actual Behavior
It used 'az vm list' with a filter to find the VM instead.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the SRE agent's Azure VM information request and inspect the logs around the attempted az graph query command and its fallback to az vm list. Determine why the agent cannot execute the graph command, then verify that the request completes using the intended query path rather than the fallback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100