A comprehensive guide defining mandatory patterns and best practices for Azure development, deployment, and operations.
Note: This constitution file (
azure-constitution.md) is designed for use with GitHub Spec-Kit, a tool for creating and managing project specifications that can be referenced by AI assistants.
This constitution establishes a standardized approach to Azure development that ensures:
- Security: Managed Identity, Key Vault, and credential-free authentication patterns
- Cost Optimization: Resource right-sizing, consumption-based pricing, and governance
- Observability: Application Insights, OpenTelemetry, and structured logging
- Infrastructure as Code: Bicep templates with Azure Verified Modules
- AI/ML Best Practices: Agent Framework integration with Azure AI Foundry
- Compliance: Automated verification and architecture reviews
- Development Teams: Building applications on Azure
- Platform Engineers: Managing Azure infrastructure and governance
- AI/ML Engineers: Developing agents with Microsoft Agent Framework
- DevOps Teams: Implementing CI/CD pipelines for Azure deployments
- Architects: Designing Azure solutions with best practices
The constitution defines mandatory patterns across:
- Azure Development Prerequisites - CLI setup, authentication, MCP tool usage
- Service Discovery & Dynamic Configuration - Environment portability
- Authentication & Authorization - Managed Identity and Key Vault
- AI Agent Architecture - Azure AI Foundry integration patterns
- Observability & Telemetry - Application Insights and OpenTelemetry
- Environment-Aware Behavior - Development vs production configurations
- Bicep & Infrastructure as Code - Declarative resource management
- Container Registry & Image Management - ACR security and optimization
- Cost Management - Governance and budget controls
This Azure Development Constitution is designed to be used with GitHub Spec-Kit's constitution feature. To integrate it into your project:
-
Install Spec-Kit: Follow the installation instructions at github.com/github/spec-kit
-
Reference this constitution: When running Spec-Kit commands, you can either:
- Copy
azure-constitution.mdto your project'smemory/directory (or create one if it doesn't exist) - Reference this file directly using Spec-Kit's constitution command.
- Copy
-
Apply to your workflow: Once configured, AI assistants (like GitHub Copilot) will automatically reference these principles when helping with Azure development tasks in your repository.
The constitution will guide code generation, infrastructure decisions, and deployment practices to ensure consistency with Azure best practices.
Before any Azure development:
# Verify Azure CLI
az --version
# Authenticate
az login
# Verify subscription access
az account showThe constitution emphasizes using Azure MCP (Model Context Protocol) tools for best practices:
# Before code generation
# Invoke: mcp_azure_mcp_get_bestpractices
# Parameters: resource="general", action="code-generation"
# Before deployment
# Invoke: mcp_azure_mcp_get_bestpractices
# Parameters: resource="general", action="deployment"
# For AI agents
# Invoke: aitk-get_agent_code_gen_best_practicesThe azure-constitution.md file contains:
- Core Principles: 11 mandatory patterns for Azure development
- Development Workflow: Step-by-step guidance with compliance checklists
- Governance: Amendment process and compliance verification
- Related Documentation: Links to official Microsoft resources
Before Azure deployment:
- Azure CLI installed and authenticated
- Azure MCP best practices invoked
- No hardcoded credentials or URLs
- Managed Identity configured
- Application Insights enabled
- Bicep templates using Azure Verified Modules
- Resources properly tagged
- Health checks implemented
This constitution uses semantic versioning:
- MAJOR: Breaking changes to principles or patterns
- MINOR: New principles or expanded guidance
- PATCH: Clarifications, typos, non-semantic refinements
Changes require:
- Architecture decision record with rationale
- Impact assessment on existing patterns
- Approval from architecture/platform team
- Azure Architecture Center
- Azure Well-Architected Framework
- Microsoft Agent Framework Documentation
- Bicep Documentation
- Azure Verified Modules
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or issues:
- Open an issue in this repository
- Refer to official Azure documentation via MCP tools
- Consult Azure Architecture Center for patterns
Version: 1.0.0 | Last Updated: November 18, 2025