Enterprise AI Landing Zone
A comprehensive solution accelerator for governing, observing, and accelerating AI deployments at scale with unified security, compliance, and intelligent orchestration.
Citadel Governance Hub is an enterprise-grade AI landing zone that provides a centralized, governable, and observable gateway plane for AI consumption across teams and environments.
This repository is a solution accelerator that helps you deploy and operate the hub using:
- Infrastructure-as-code (Bicep, Terraform)
- A unified AI gateway pattern (Azure API Management)
- Usage ingestion components (Logic Apps + Event Hub + Cosmos DB)
- Validation notebooks and operational guides
Important
This accelerator is the reference implementation of Layer 1 β Governance Hub in the AI Citadel Blueprint layered security architecture.
The AI Citadel Blueprint is a unified, layered approach to AI security and compliance, designed to enable enterprises to scale AI innovation while maintaining trust, security, and regulatory alignment. The blueprint is composed of four interlocking layers:
| Layer | Name | Responsibility | Implementation |
|---|---|---|---|
| π· Layer 1 | Governance Hub | Runtime enforcement β unified AI gateway, policy-as-code, identity validation, token rate limiting, content filtering, cost attribution | π This Accelerator (aka.ms/ai-hub-gateway) |
| πΆ Layer 2 | Agent Operations | Agent runtime, observability & compliance β agent traces, AI evaluations, fleet operations, automated compliance checks | Microsoft Foundry Agents & Control Plane |
| π’ Layer 3 | Agent Management | Agent identity & lifecycle governance and security β unique agent identities, blueprints, shadow agent detection, sponsorship model, access packages | Governing Agent Identities with Agent 365 |
| π‘οΈ Layer 4 | Security Foundation | Unified protection β Microsoft Defender for AI threat intelligence, Purview for data governance, Entra for authentication and authorization |
Microsoft Defender, Purview & Entra |
The layers are not isolated silos β they form an integrated architecture grounded in the principle of separation of concerns with unified oversight.
Layer 1: Governance Hub (this accelerator) acts as the runtime gateway through a hub-and-spoke deployment where a centrally managed AI gateway (Azure API Management) enforces runtime policies, while Layer 2: Agent Operations spoke environments give each business unit autonomous development within guardrails. Adding Layer 3: Agent Management ensures that every agent has a unique, governable identity, while Layer 4: Security Foundation provides unified threat protection and data governance across the entire architecture.
π For the full Citadel Blueprint approach and guidance, visit: aka.ms/foundry-citadel
Citadel Governance Hub helps you standardize AI governance while maintaining developer velocity:
- Governance & security: consistent access control, identity patterns, policy enforcement
- Observability & compliance: central logging/metrics and near real-time usage analytics
- Developer velocity: repeatable onboarding patterns and contract-driven configuration
For a detailed stakeholder- and capability-level breakdown, see Governance Hub Benefits.
At a high level, the accelerator includes:
- bicep/infra: main IaC entrypoint and modules for provisioning the hub in addition to submodules for operational processes.
- src/usage-ingestion-logicapp: Logic App workflows for processing usage/log streams and other governance workflows.
- validation: Jupyter notebooks for post-deployment validation and onboarding.
- guides: operational and architecture documentation.
Terraform support is now available in the github.com/Azure/terraform-ai-gateway-landing-zone repo, with a parallel structure to the Bicep implementation.
AI Citadel Governance Hub follows a Central-Control-Plane with decentralized Agent-Execution-Plane architecture** that integrates seamlessly with your existing Azure Enterprise Landing Zone network topology:
Detailed networking approach guidance for Citadel Governance Hub can be found in the Network Approach Guide.
Initial deployments support optional private-only Logic App website and SCM/Kudu access. This is opt-in; defaults remain public access enabled with no Logic App private endpoint.
Below is a high-level overview of the two supported deployment approaches:
In this approach, the Citadel Governance Hub is deployed within a dedicated spoke VNet that connects to the hub VNet via VNet peering.
Agentic workloads in other spokes are routed first to the hub network firewall through direct peering, then forwarded to the Citadel Governance Hub gateway network.
This provides an additional layer of isolation for AI workloads while still enabling secure communication with other enterprise resources in the hub.
This is the recommended approach for large enterprises with strict network segmentation requirements or those who want to isolate AI workloads from other enterprise resources.
In this approach, the Citadel Governance Hub is deployed within the existing enterprise hub virtual network (VNet) of your Azure Enterprise Landing Zone.
This allows for direct communication between the unified AI gateway and connected agentic spokes (as the hub already peered with all spoke networks), leveraging existing networking configurations.
This approach is suitable for enterprises that prefer to integrate the governance hub within their existing network architecture without additional segmentation.
The central governance layer with unified AI Gateway that all AI workloads route through.
| Component | Classification | Purpose | Enterprise Features |
|---|---|---|---|
| πͺ API Management | Required | Unified AI gateway | LLM governance, AI resiliency, AI registry gateway |
| π API Center | Recommended | Universal AI Registry | Discovery of available AI tools, agents and AI services |
| π Microsoft Foundry | Required | Control Plane/Models/Observability | Platform LLMs, Control Plane & AI Evaluations |
| π Log Analytics | Required | Logs, metrics & audits | Scalable enterprise telemetry ingestion and storage |
| π Application Insights | Required | Platform monitoring | Performance dashboards, automated alerts |
| π¨ Event Hub | Required | Usage data streaming | Real-time usage streaming, custom logging |
| ποΈ Cosmos DB | Required | Usage analytics | Long-term storage of usage, automatic scaling |
| β‘ Logic App | Required | Event processing | Workflow-based processing of usage/logs & AI Eval |
| π Virtual Network | Required | Private connectivity | BYO-VNET support, private endpoints |
AI Gateway security & compliance enforcements components:
| Component | Classification | Purpose | Enterprise Features |
|---|---|---|---|
| π Managed Identity | Required | Zero-credential auth | Secure service-to-service communication |
| π‘οΈ Content Safety | Required | LLM protection | Prompt Shield and Content Safety protections (served from the primary Microsoft Foundry / AI Services account) |
| π³ Language Service | Required | PII detection | Natural language and RegEx based PII entity detection with anonymization support (served from the primary Microsoft Foundry / AI Services account) |
| π Microsoft Foundry | Recommended | Control Plane | Control plane, responsible AI, registration of external agents |
Supported by subscription wide security services:
| Component | Classification | Purpose | Enterprise Features |
|---|---|---|---|
| Defender for AI | Recommended | Threat protection | AI workload security posture management |
| Purview | Recommended | Data governance | Sensitivity labeling, data classification |
| Entra ID | Required | Identity & access management | Zero Trust architecture, conditional access |
Optionally you can deploy one or more generative AI services as part of the Citadel Governance Hub to provide fully functional gateway with LLMs already integrated:
| Component | Classification | Purpose | Enterprise Features |
|---|---|---|---|
| Microsoft Foundry | Required | Model Catalog | Access to rich foundational model catalog with variety of deployment options and required for Azure Language and Azure Content Safety services |
Pluggable components to enhance AI Citadel Governance capabilities:
| Component | Classification | Purpose |
|---|---|---|
| Azure Managed Redis | Optional | Semantic caching layer for high-throughput AI workloads |
To govern AI agents through Citadel Governance Hub, agents must communicate with AI backends (central LLMs, tools and agents) through the Citadel's unified AI gateway.
Leverage Citadel Access Contracts to declare the required access to LLMs, tools and agents through the gateway along with precise governance policies.
Access contracts are infrastructure-as-code declarations of the access requirements and governance policies for an agent, which are then automatically enforced at runtime by the gateway.
NOTE: Recommendation is to create one contract per business-unit/use-case/environment to allow for precise governance policies and better observability in the hub.
Leverage Citadel Publish Contracts to onboard and publish centrally protected AI assets β Tools (MCP) and Agents (A2A) β through the gateway with per-asset backends, resiliency, baseline policies, usage tracking, and optional API Center registration.
Publish contracts are infrastructure-as-code declarations of the AI assets published on the gateway. See the Publish Contract Guide for asset types, backend/auth options, and Foundry A2A publishing.
NOTE: Publish Contracts and Foundry-hosted A2A publishing are available in Preview (
publish-contract-version: 1.0.0-preview). Publishing an asset does not grant access to it β governed access (products/subscriptions) is handled by Access Contracts.
Guidance to bring existing agents is through updating endpoint and credentials to access central LLMs, tools and agents through the unified gateway endpoint and credentials that are produced by the access contract provisioning for each agent.
NOTE: Recommendation is to use Azure Key Vault to store these information due to its sensitivity when the agent is running on Azure.
Building new agents is accelerated through the AI Landing Zone for Microsoft Foundry guidance, which helps enterprises adopt AI faster by offering a governed, secure, and repeatable foundation for deploying AI applications and agents on Azure at scale.
For detailed guidance and technical implementation, see AI App Landing Zone Repo.
Deployment Approach:
- One Agent Execution Plane per business unit or use case - Deploy dedicated Foundry landing zone environments for each business unit, such as insurance claims processing, customer support automation, or other agentic scenarios
- Flexible runtime options - with Microsoft Foundry Agents (fully managed agent runtime) you get to choose between native Foundry agents or bring-your-own agent container frameworks like LangChain, Microsoft Agent Framework, or custom implementations while still benefiting from the unified governance and security of the hub
- Pre-configured infrastructure - Automated deployment via Bicep or Terraform with all networking, security, and monitoring built-in
- Hub integration - Seamless connection to Citadel Governance Hub through Citadel Access Contracts
Deployment Patterns:
- Greenfield (Standalone with New Resources) - Creates all infrastructure from scratch with new VNet and Log Analytics workspace
- Brownfield (Standalone with Existing Resources) - Integrates with existing enterprise landing zones, reusing VNets and centralized monitoring
NOTE: As per Citadel Blueprint principles for Layer 2: Agents Operations, this landing zone provides a standardized foundation for enterprise AI workloads, with implementation options in Terraform and Bicep deployment. By activating Access Contracts, agents deployed in this landing zone can seamlessly integrate with the Citadel Governance Hub for unified runtime governance and observability.
Day-to-day operation of the Citadel Governance Hub is contract-driven: every change to what the gateway serves and who can consume it is declared as version-controlled infrastructure-as-code (.bicepparam files) rather than manual portal configuration. Three complementary contract types govern the gateway lifecycle:
- π Backend Contracts β govern the supply side: which LLM backends and models the gateway can route to.
- π€ Publish Contracts (Preview) β govern which Tools (MCP) and Agents (A2A) are published through the gateway.
- π Access Contracts β govern the demand side: which use cases and agents can consume those models, and under which policies.
Together they create a clean separation of concerns: platform teams curate AI capacity and published assets, while business units onboard use cases against those governed assets without touching gateway internals.
flowchart LR
subgraph Supply["π Backend Contracts (Supply)"]
B1[LLM Backends & Models]
B2[Load Balancing & Failover]
B3[Model Aliases]
end
subgraph Publishing["π€ Publish Contracts (Preview)"]
P1[Tools / MCP]
P2[Agents / A2A]
end
subgraph Gateway["πͺ AI Gateway (APIM)"]
G1[Routing & Policy Engine]
end
subgraph Demand["π Access Contracts (Demand)"]
A1[Products & Subscriptions]
A2[Per-use-case Policies]
A3[Foundry / Key Vault Credentials]
end
Supply --> Gateway
Publishing --> Gateway
Gateway --> Demand
Declares the governed AI capacity the gateway can route to, enabling dynamic backend routing without modifying APIM policies:
- Multi-provider backends (Microsoft Foundry, Azure OpenAI, Amazon Bedrock, external/OpenAI-compatible providers)
- Automatic load balancing and failover across backends serving the same model
- Model aliases that abstract a client-facing name over multiple underlying models (with priority/weighted routing)
- Dynamic model discovery (
GET /deployments) so clients and Microsoft Foundry can enumerate available models
π Learn More: Governance Hub Backend Contract Guide
Declares the governed dependencies an agent or use case needsβLLMs, AI services, tools, and reusable agentsβalong with precise access policies enforced at runtime by the gateway:
- Model selection and capacity allocation (scoped to the curated backend capacity)
- Per-use-case APIM product, subscription, and policy (one contract per business-unit / use-case / environment)
- Safety and security guardrails (content safety, PII handling, layered API key + JWT authentication, OAuth scopes)
- Usage quotas, cost limits, and flexible credential delivery (Key Vault, Microsoft Foundry connection, or direct output)
π Learn More: AI Citadel Access Contracts Guide
Publishes Tools (MCP) and Agents (A2A) through the gateway with declarative endpoint and backend configuration, baseline policies, usage tracking, resiliency for supported backend types, and optional Azure API Center registration. Foundry-hosted agents can be exposed as A2A endpoints.
NOTE: This capability is available in Preview (
publish-contract-version: 1.0.0-preview). Its contract surface may change before general availability. See the Publish Contract Guide.
- β Separation of concerns β platform teams manage backends; business units manage their own access contracts
- β Audit-ready traceability β every backend and access change is captured as reviewable infrastructure-as-code
- β Faster release cycles β repeatable, declarative onboarding with automated approvals via DevOps pipelines
- β Reduced manual effort β no manual gateway configuration for onboarding models or use cases
- β Continuous policy compliance β guardrails are enforced consistently at runtime for every request
For fast deployment, ensure you have the following prerequisites in place:
Azure Requirements:
- Azure CLI and Azure Developer CLI installed and signed in
- Owner or Contributor + User Access Administrator permissions on the subscription
- All required subscription resource providers registered (providers are outlined in the Full Deployment Guide).
Tools: Although it is recommended to have the below tools installed on a local machine or through DevOps agents to conduct the provisioning, you still can leverage Azure Cloud Shell (mounted to storage account) as an alternative which has all the tools pre-installed.
- Azure Developer CLI (azd)
- Azure CLI
- VS Code (optional)
NOTE: Azure Cloud Shell is a great option for quick deployment without local setup, but for ongoing development and operations, having the tools installed locally or in your DevOps environment along with a git-repo will provide a better experience especially when it comes to production deployments.
Deploy your Citadel Governance Hub in minutes with Azure Developer CLI:
# Authenticate and setup environment
azd auth login
# in a new folder, initialize the template (i.e. folder name: ai-hub-citadel-dev)
azd init --template Azure-Samples/ai-hub-gateway-solution-accelerator -e ai-hub-citadel-dev --branch citadel-v1
# Deploy Citadel Governance Hub
azd upπ‘ Tip: Use Azure Cloud Shell to avoid local setup. This accelerator is setup by default to deploy ready to use Governance Hub. Review main.bicepparam configuration in case your need adjustments before deployment.
During deployment, you might encounter transient errors related to resource provisioning, which are common in complex deployments. If you encounter errors, please try to rerun the azd up command. If the issue persists, please check the error message for specific details and ensure that all prerequisites are met.
TIP: For bicep deployments, a full list of deployed resources and status can be found in the Azure Portal under the resource group created -> Deployments.
After successful deployment, validate your Citadel Governance Hub setup using our interactive notebooks.
Detailed list and guidance of the available notebooks can be found in the Validation Notebooks Guide, which includes step-by-step instructions to test key functionalities.
Master AI Citadel Governance Hub implementation and operations with our detailed guides:
| Guide | Description |
|---|---|
| π Governance Hub Benefits | Detailed benefits and stakeholder value of adopting Citadel Governance Hub |
| π Citadel Sizing Guide | Guidance on sizing the Citadel Governance Hub based on workloads and environments |
| π PTU Estimation Guide | Azure OpenAI / Foundry LLM sizing guide for PTU vs Pay-as-you-Go capacity planning |
| Guide | Description |
|---|---|
| π Quick Deployment Guide | Fast deployment for non-production environments |
| π Full Deployment Guide | Comprehensive guide for dev, staging, and production |
| π Post-Deployment Guide | Day-2 activities: onboard backends & use cases, enable Entra ID, activate Power BI, go multi-region, and upgrade the gateway |
| π Parameters Deployment Guide | Comprehensive Bicep parameter file usage |
| π Network Approach Guide | Detailed networking approach for Citadel Governance Hub deployment |
| Guide | Description |
|---|---|
| π LLM Backend Onboarding Guide | Independent LLM backend routing deployment with load balancing and failover |
| π APIM Gateway Upgrade Guide | Update gateway policies, APIs, backends, diagnostics, and named values on an existing APIM instance without re-provisioning infrastructure |
| π Release Version Management | Versioning model of the accelerator, the /version runtime endpoint, and how to plan and implement migrations |
| Guide | Description |
|---|---|
| π AI Citadel Access Contracts Guide | Guide on integrating new/existing AI apps & agents with AI Citadel Governance Hub |
| π AI Citadel Access Contracts Policies | Deep dive into policy configurations for AI Citadel Access Contracts |
| π AI Citadel Publish Contracts Guide (Preview) | Guide on publishing Tools (MCP) and Agents (A2A) through the gateway with optional Foundry A2A publishing |
| Guide | Description |
|---|---|
| π PII Detection & Masking | Automated sensitive data protection |
| π Entra ID Authentication | JWT validation and Zero Trust implementation |
| π JWT Client Identity & Permissions | Configure client app identities, group-based access management, and permissions for JWT-protected endpoints |
| Guide | Description |
|---|---|
| π Platform Observability Guide | Layered observability: APIM Analytics dashboard, Application Insights, Log Analytics LLM logs (with optional prompt/response auditing), and Cosmos DB + Power BI |
| π Power BI Dashboard | Usage analytics and cost allocation dashboards |
| Guide | Description |
|---|---|
| π LLM Access Guide | Unified reference for the three LLM APIs and two access patterns, with a deep technical dive into model/backend routing |
| π LLM Backend Onboarding Guide | How to onboard LLM backends (Azure OpenAI, Foundry, external providers) with dynamic routing and load balancing |
| π Resiliency Guide | Circuit breaker, session affinity, automated failover, error handling, and alerting β what each does, how it works, and when to configure it |
| π Throttling & Critical Event Alerting | Comprehensive, opt-in alerting on throttling, backend, authorization, content-safety, and PII events per use case, model, and backend |
The accelerator tracks its release state in a single source-of-truth manifest at the repository
root β release.json. Instead of one monolithic version, it uses independent,
component-scoped version tracks so a change in one subsystem does not force re-versioning of
unrelated ones:
| Track | Meaning |
|---|---|
master-version |
Umbrella accelerator release version |
routing-version |
LLM request routing logic (backend pools, model resolution, failover) |
backend-contract-version |
Shape of the llmBackendConfig backend onboarding contract |
access-contract-version |
Shape of the Citadel Access Contract (products & access policies) |
gateway-upgrade-version |
In-place APIM Gateway Upgrade tooling (currently -preview) |
usage-ingestion-version |
Usage ingestion pipeline (Logic App + Function) |
The deployed manifest is exposed at runtime through the Release Version API in API Management:
curl https://<your-apim-gateway-host>/versionThis GET /version endpoint returns release.json. It is created automatically by the primary deployment and created/updated
by the APIM Gateway Upgrade, so the endpoint always reflects the currently deployed release.
The same API also exposes GET /version/backend-contract, which returns the active LLM backend
routing contract β a detailed projection of the effective onboarding configuration (APIM target,
full llmBackendConfig with per-model metadata, circuit breaker and session affinity settings, model
aliases, and derived pools), plus the backend-contract-version:
curl https://<your-apim-gateway-host>/version/backend-contractImportant
The primary deployment (main.bicep) is used for the initial implementation only. After the
hub is live, the APIM Gateway Upgrade submodule
is the standard way to move the accelerator to new releases β applying the new version in place
without re-provisioning the APIM service or landing-zone infrastructure.
π For version-track semantics, SemVer rules, and per-track migration guidance, see the Release Version Management Guide.
We welcome contributions from the community! Whether it's:
- π Bug reports and fixes
- π Documentation improvements
- π‘ Feature requests and enhancements
Please see our Contributing Guide for details.
- π Issues: GitHub Issues
This project is licensed under the MIT License - see the LICENSE file for details.
Citadel Governance Hub - Your organization's fortress in the new world of AI
Providing protection, structure, and strength as you scale new heights with enterprise AI
