Ask about Azure resources and get CLI scripts
Ask Azure Copilot or the Azure MCP server about your resources and get answers or CLI scripts that an admin reviews before running.
DifficultyBeginner
Setup timeUnder 1 hour
CategoryIT & DevOps
The use case
Admins managing Azure often need quick answers: which VMs are not backed up, what is this storage account used for, how do I enable diagnostics on all app services. Azure Copilot answers questions about your resources in the portal and drafts CLI or PowerShell scripts, and Microsoft's MCP servers let coding agents do the same from an editor. Admins save time on lookups and boilerplate. Every script that changes resources should be read, tested in a non-production subscription and run by a person.
Example workflow
- Ask a question about resources in the portal or editor
- Review the answer and the resources it lists
- Ask for a script for any change
- Test the script in a non-production subscription
- Run it in production after review
Tools
- Azure Copilot
- Azure MCP Server
- Azure CLI
Risks and guardrails
- Answers depend on the user's permissions and can be incomplete
- Scripts can affect many resources; test first
- Do not run agent-written scripts with owner rights unreviewed
Sources
Written by Agents Lookup. Credits and official pages for the tools this use case names:
- Microsoft Learn: Azure Copilot overview: learn.microsoft.com/en-us/azure/copilot/overview
- Microsoft on GitHub: MCP servers: github.com/microsoft/mcp
- Azure MCP Server (official page): learn.microsoft.com/en-us/azure/developer/azure-mcp-server (checked 2026-11-09)