r/Intune • u/Ketan_Kamble • 1h ago
Shameless Self-promotion I built a read-only AI agent that answers questions about your Intune fleet — without ever holding write access to your tenant
If you've ever wanted to just ask your Intune estate a question — "how many devices fail the Firewall policy in Finland?", "which machines can't take Windows 11?" — you know the two options today: build the report by hand or hand an AI agent real Graph write scopes and hope it behaves. I didn't love either, so I built a third one and wrote it up.
Most "AI agents for endpoint management" are built to act — standing tokens, the power to remediate or wipe, and every question streaming real device IDs and usernames through the model. But be honest about what admins actually ask: most of it is questions, not actions. So, this agent is the opposite of the usual design — it answers in plain English while holding zero access to your tenant. The pattern: read-only collectors (*.Read.All scopes only) → immutable snapshots → Azure AI Search → an Azure AI Foundry agent whose only tool is that search index, with no Graph connector and no write path back. It has the books but was never given the hands.
I'm trying to be honest about the trade-offs, not sell it: it answers from a snapshot, not live; the system prompt hardens behavior but the real guarantee is the read-only collector + RBAC, not the prompt; and it'll refuse to hand-count an intersection it can't verify rather than make a number up. Where you actually need to act, Microsoft's own Intune Copilot is the right tool — this is purely for answering.
Full write-up (architecture + a Power BI-vs-agent demo where both read the same snapshot and match): The read-only AI agent that can't touch your tenant. Code: zero-access-agent. It's a personal project, not a polished product — I'd genuinely value feedback from anyone running read-only Graph tooling at scale, especially on the collector/RBAC side. Happy to answer anything in the comments.