Skip to content

samikroy/azure-policy-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Azure Policy Analyzer

A GitHub Copilot custom agent for Azure Policy governance reviews.

This repository contains a production-oriented agent definition focused on single-pass compliance analysis, standards mapping, and actionable remediation guidance.

What This Agent Does

The agent in .github/agents/azure-policy-analyzer.agent.md is designed to:

  • Analyze Azure Policy posture across the highest readable scope (management group -> subscription -> resource group)
  • Map findings to:
    • NIST SP 800-53 Rev. 5
    • Microsoft Cloud Security Benchmark (MCSB)
    • CIS Azure Foundations
    • ISO 27001
    • PCI DSS
    • SOC 2
  • Produce structured, executive-ready reports in a single pass
  • Include concrete remediation commands for high-impact findings
  • Prefer Azure MCP data sources and clearly declare fallback behavior

Repository Structure

Prerequisites

  • Visual Studio Code with GitHub Copilot and chat enabled
  • Access to Azure subscription(s)
  • Azure CLI authenticated (az login) when running fallback command paths

Usage

  1. Open this repository in VS Code.
  2. Ensure Copilot custom agents are enabled.
  3. Invoke the agent from chat and provide your audit request, for example:
Analyze my current subscription for policy exemptions and classify them by Governance Drift vs Operational Necessity.

Example Prompts

  • Analyze the compliance of my current subscription against NIST 800-53.
  • Perform a single-pass compliance audit of Prod-Connectivity-RG against NIST 800-53 and identify Critical hotspots.
  • Analyze my current subscription for policy exemptions and classify them by Governance Drift vs Operational Necessity.

Security and Compliance Notes

  • This agent reports control alignment and gaps; it does not issue formal compliance certification.
  • Review generated remediation commands before applying changes in production.
  • Avoid sharing sensitive resource identifiers publicly in issue threads.

Contributing

See CONTRIBUTING.md.

Security Reporting

See SECURITY.md.

License

This project is licensed under the MIT License. See LICENSE.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors