Back to Trending
RepositoryPowerShellUSUnited States
microsoft

microsoft/Deploy-Your-AI-Application-In-Production

A deployment of a secure, extensible and integrated environment for running AI Foundry workloads in Production. It simplifies the process of including essential Azure services necessary to run mission-critical AI applications and adhere to Microsoft Well Architected Framework recommendations.

236stars
171forks
0issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: azd-templates

#1 Repository of the month

1
TINIX TRENDING·Topic: microsoft-fabric

#1 Repository of the month

1
TINIX TRENDING·Topic: onelake-indexer

#1 Repository of the month

Deploy Your AI Application In Production

Stand up a complete, production-ready AI application environment in Azure with a single command. This solution accelerator provisions Microsoft Foundry, Microsoft Fabric, Azure AI Search, and connects to your tenant level Microsoft Purview (when resourceId is provided) —all pre-wired with private networking, managed identities, and governance controls—so you can move from proof-of-concept to production in hours instead of weeks.


Start Here

Use This Accelerator When

This accelerator is a good fit if you want an end to end AI and Data platform built from the AI Landing Zone, in one deployment:

  1. Microsoft Foundry
  2. Azure AI Search and OneLake index
  3. Microsoft Fabric workspace and lakehouses
  4. Optional Microsoft Purview integration
  5. Private networking and production-style Azure controls

If you only want a small Foundry demo or a basic RAG sample, this repo is heavier than you need.

Required Deployment Steps

  1. Start from an environment with azd, az, and pwsh available
  2. Authenticate with Azure and select the target subscription and region
  3. Initialize git submodules if you are not using Codespaces or Dev Containers
  4. Review infra/main.bicepparam and decide whether Fabric and Purview are enabled for the first run
  5. Check Azure OpenAI quota in the target region
  6. Run azd up
  7. Validate the deployment in docs/post_deployment_steps.md

For the first attempt, the lowest-risk path is to keep Fabric and Purview disabled unless you already have their prerequisites in place.

Important: The checked-in values in infra/main.bicepparam are an opinionated end-to-end provisioning path for this accelerator, not a neutral baseline for every scenario. They are useful for demonstrating the full stack and the automation flow, but they might enable services, networking, mirroring behavior, or governance hooks that you do not want in your target deployment.

Before running azd up, review the active settings across:

  • repo wrapper parameters in infra/main.bicepparam
  • AI Landing Zone feature flags and topology implied by the preprovision deployment
  • postprovision automation expectations in azure.yaml
  • supporting server-specific settings such as PostgreSQL networking, mirroring mode, and Fabric/Purview inputs

Treat the current defaults as the repo's "golden path" for a broad end-to-end demo and validation flow. Adjust them deliberately if you want a smaller, cheaper, or less integrated deployment.

Security note (PostgreSQL mirroring): The mirroring prep script must run from a VNet-connected host when Key Vault and PostgreSQL are private. If you need a non-VNet demo, temporarily open access to both Key Vault and PostgreSQL, run the script, then lock them down. See docs/post_deployment_steps.md for the manual steps, including the temporary Key Vault override.

Dependency Map

AreaRequired to enable itIf missing
Base deploymentAzure subscription permissions, az, azd, pwsh, Azure sign-in, initialized submodules, Azure OpenAI quotaazd up fails before or during provisioning
Fabric automationFabric Administrator permissions or an existing Fabric setup, plus valid Fabric parameter valuesPostprovision Fabric steps fail
Fabric capacity creationAt least one valid fabricCapacityAdmins entry when fabricCapacityPreset='create'Capacity creation fails
Purview integrationExisting Purview account resource ID in the target tenant and subscriptionPurview steps fail
PostgreSQL mirroringPostgreSQL enabled in the deployment with postgreSqlNetworkIsolation = false, then follow the post-deploy mirror stepsDatabase deploys, but mirroring is not completed
Private networkingnetworkIsolation = true and enough deployment time for private endpoint provisioningDeployment takes longer and is harder to troubleshoot if other prerequisites are not already stable

Purview note: If you enable Purview integration, the identity running azd must have Purview Collection Admin (or equivalent) on the target collection. To ensure a collection is created or resolved, set purviewCollectionName so automation captures PURVIEW_COLLECTION_ID and the scan can be assigned.

Choose Your Starting Path

GoalRecommended path
Fastest realistic validationLocal azd up workflow
Clean environment with fewer local setup issuesGitHub Codespaces
Deep customization before deployRead docs/parameter_guide.md first
Lowest-risk first runDisable Fabric and Purview, then re-enable later

How to Install or Deploy

Follow the deployment guide to deploy this solution to your own Azure subscription.

Note: This solution accelerator requires Azure Developer CLI (azd) version 1.15.0 or higher. Download azd here.

Note: This solution accelerator also requires Bicep CLI version 0.33.0 or higher for compiling infrastructure templates. Install Bicep.

📘 Click here to launch the Deployment Guide


Open in GitHub CodespacesOpen in Dev Containers

Important: This repository uses git submodules
Clone with submodules included:

git clone --recurse-submodules https://github.com/microsoft/Deploy-Your-AI-Application-In-Production.git

If you already cloned without submodules, run:

git submodule update --init --recursive

GitHub Codespaces and Dev Containers handle this automatically.

Shell requirement
The repo uses azd as the main deployment interface. The preprovision and postprovision hooks run with PowerShell (pwsh), so your environment must be able to invoke pwsh.

Important: Check Azure OpenAI quota availability
To ensure sufficient quota is available in your subscription, please follow the quota check instructions guide before deploying.

First Deployment Checklist

  1. Run azd auth login and confirm the target subscription with az account show
  2. Create a new environment and set AZURE_SUBSCRIPTION_ID and AZURE_LOCATION
  3. Review infra/main.bicepparam, especially principalId, aiSearchAdditionalAccessObjectIds, fabricCapacityPreset, fabricWorkspacePreset, fabricCapacityAdmins, purviewAccountResourceId, purviewCollectionName, networkIsolation, postgreSqlNetworkIsolation, and postgreSqlAllowAzureServices
  4. Run azd up
  5. Follow docs/post_deployment_steps.md to verify the deployment

Note: Mirroring automation in the current branch is set for PostgreSQL deployments where postgreSqlNetworkIsolation = false. If you want PostgreSQL fully isolated, keep the private networking path and plan on the Fabric VNet gateway route for end-to-end mirroring.

Prerequisites & Costs

Click to see prerequisites
RequirementDetails
Azure SubscriptionOwner or Contributor + User Access Administrator permissions
Microsoft FabricOptional. Either access to create capacity/workspace, or provide existing Fabric capacity/workspace IDs, or disable Fabric automation
Microsoft PurviewExisting tenant-level Purview account (or ability to create one)
Azure CLIVersion 2.61.0 or later
Azure Developer CLIVersion 1.15.0 or later
Bicep CLIVersion 0.33.0 or later
QuotaSufficient Azure OpenAI quota (check here)

Note: Fabric automation is optional. To disable all Fabric automation, set fabricCapacityPreset = 'none' and fabricWorkspacePreset = 'none' in infra/main.bicepparam.

Note: If you enable Fabric capacity deployment (fabricCapacityPreset='create'), you must supply at least one valid Fabric capacity admin principal (Entra user UPN email or object ID) via fabricCapacityAdmins.

Note: If you enable Fabric provisioning (fabricWorkspacePreset='create'), the user running azd must have the Fabric Administrator role (or equivalent Fabric/Power BI tenant admin permissions) to call the required admin APIs.

Click to see estimated costs
ServiceSKUEstimated Monthly Cost
Microsoft FoundryStandardPricing
Azure OpenAIPay-per-tokenPricing
Azure AI SearchStandardPricing
Microsoft FabricF8 Capacity (if enabled)Pricing
Virtual Network + BastionStandardPricing

Cost Optimization: Fabric capacity can be paused when not in use. Use az fabric capacity suspend to stop billing.

Use the Azure Pricing Calculator for detailed estimates.


Solution Overview

This accelerator extends the AI Landing Zone reference architecture to deliver an enterprise-scale, production-ready foundation for deploying secure AI applications and agents in Azure. It packages Microsoft's Well-Architected Framework principles around networking, identity, and operations from day zero.

Solution Architecture

Architecture

Key Components

ComponentPurpose
Microsoft FoundryUnified platform for AI development, testing, and deployment with playground, prompt flow, and publishing
Microsoft FabricData foundation with lakehouses (bronze/silver/gold) for document storage and OneLake indexing
Azure Database for PostgreSQLOptional operational data source that can be prepared for Microsoft Fabric mirroring, including automated Fabric connection creation or reuse after deployment
Azure AI SearchRetrieval backbone enabling RAG (Retrieval-Augmented Generation) chat experiences
Microsoft PurviewGovernance layer for cataloging, scans, and Data Security Posture Management
Private NetworkingAll traffic secured via private endpoints—no public internet exposure

Additional Resources

Key Features

Click to learn more about the key features this solution enables
  • Single-command deployment
    Run azd up to provision 30+ Azure resources in ~45 minutes with pre-wired security controls.

  • Production-grade security from day zero
    Private endpoints, managed identities, and RBAC enabled by default—no public internet exposure.

  • Integrated data-to-AI pipeline
    Connect Fabric lakehouses → OneLake indexer → AI Search → Foundry playground for grounded chat experiences.

  • PostgreSQL-to-Fabric mirroring path
    Provision Azure Database for PostgreSQL, prepare it for Fabric mirroring, automatically create or reuse the Fabric connection, and mirror operational data into OneLake for downstream analytics and AI scenarios.

  • Governance built-in
    Microsoft Purview integration for cataloging, scoped scans, and Data Security Posture Management (DSPM).

  • Extensible AVM-driven platform
    Toggle additional Azure services through AI Landing Zone parameters for broader intelligent app scenarios.


Business Scenario

What You Get

After deployment, you'll have a complete, enterprise-ready platform that unifies AI development, data management, and governance:

LayerWhat's DeployedWhy It Matters
AI PlatformMicrosoft Foundry with OpenAI models, playground, and prompt flowBuild, test, and publish AI chat applications without managing infrastructure
Data FoundationMicrosoft Fabric with bronze/silver/gold lakehouses and OneLake indexingStore documents at scale and automatically feed them into your AI workflows
Operational Data MirroringAzure Database for PostgreSQL prepared for Fabric mirroringBring PostgreSQL operational data into Fabric with an automated connection-and-mirror flow plus documented fallback steps
Search & RetrievalAzure AI Search with vector and semantic searchEnable RAG (Retrieval-Augmented Generation) for grounded, accurate AI responses
GovernanceMicrosoft Purview with cataloging, scans, and DSPMTrack data lineage, enforce policies, and maintain compliance visibility
SecurityPrivate endpoints, managed identities, RBAC, network isolationZero public internet exposure—all traffic stays on the Microsoft backbone

Sample Workflow

  1. Deploy infrastructure → Run azd up to provision all resources (~45 minutes)
  2. Upload documents → Add PDFs to the Fabric bronze lakehouse
  3. Index content → OneLake indexer automatically populates AI Search
  4. Test in playground → Connect Foundry to the search index and chat with your data
  5. Publish application → Deploy the chat experience to end users
  6. Monitor governance → Review data lineage and security posture in Purview

PostgreSQL Post-Provision Steps

If you deploy Azure Database for PostgreSQL, use these docs after deployment:

  1. docs/postgresql_mirroring.md
  2. docs/post_deployment_steps.md

If the post-provision mirroring automation cannot complete, start with the Minimal Manual Fallback section in docs/postgresql_mirroring.md. It calls out the shortest path for both public-access and private-network deployments.


Supporting documentation

Deployment & Configuration

DocumentDescription
Deployment GuideComplete deployment instructions
Post Deployment StepsVerify your deployment
PostgreSQL MirroringAutomate or troubleshoot the Fabric connection and PostgreSQL mirror flow
Parameter GuideConfigure deployment parameters
Quota Check GuideCheck Azure OpenAI quota availability

Customization & Operations

DocumentDescription
Required Roles & ScopesIAM requirements for deployment
Parameter GuideAll deployment parameters, toggles & model configs
Deploy App from FoundryPublish playground to App Service
Accessing Private ResourcesConnect via Jump VM

Security Guidelines

Click to see security best practices

This template leverages Managed Identity between services to eliminate credential management.

Recommendations:

⚠️ Important: This template is built to showcase Azure services. Implement additional security measures before production use.


Provide Feedback

Have questions, found a bug, or want to request a feature? Submit a new issue and we'll connect.


Responsible AI Transparency FAQ

Please refer to Transparency FAQ for responsible AI transparency details of this solution accelerator.


Disclaimers

Click to see full disclaimers

To the extent that the Software includes components or code used in or derived from Microsoft products or services, including without limitation Microsoft Azure Services (collectively, "Microsoft Products and Services"), you must also comply with the Product Terms applicable to such Microsoft Products and Services. You acknowledge and agree that the license governing the Software does not grant you a license or other right to use Microsoft Products and Services. Nothing in the license or this ReadMe file will serve to supersede, amend, terminate or modify any terms in the Product Terms for any Microsoft Products and Services.

You must also comply with all domestic and international export laws and regulations that apply to the Software, which include restrictions on destinations, end users, and end use. For further information on export restrictions, visit https://aka.ms/exporting.

You acknowledge that the Software and Microsoft Products and Services (1) are not designed, intended or made available as a medical device(s), and (2) are not designed or intended to be a substitute for professional medical advice, diagnosis, treatment, or judgment and should not be used to replace or as a substitute for professional medical advice, diagnosis, treatment, or judgment. Customer is solely responsible for displaying and/or obtaining appropriate consents, warnings, disclaimers, and acknowledgements to end users of Customer's implementation of the Online Services.

You acknowledge the Software is not subject to SOC 1 and SOC 2 compliance audits. No Microsoft technology, nor any of its component technologies, including the Software, is intended or made available as a substitute for the professional advice, opinion, or judgement of a certified financial services professional. Do not use the Software to replace, substitute, or provide professional financial advice or judgment.

BY ACCESSING OR USING THE SOFTWARE, YOU ACKNOWLEDGE THAT THE SOFTWARE IS NOT DESIGNED OR INTENDED TO SUPPORT ANY USE IN WHICH A SERVICE INTERRUPTION, DEFECT, ERROR, OR OTHER FAILURE OF THE SOFTWARE COULD RESULT IN THE DEATH OR SERIOUS BODILY INJURY OF ANY PERSON OR IN PHYSICAL OR ENVIRONMENTAL DAMAGE (COLLECTIVELY, "HIGH-RISK USE"), AND THAT YOU WILL ENSURE THAT, IN THE EVENT OF ANY INTERRUPTION, DEFECT, ERROR, OR OTHER FAILURE OF THE SOFTWARE, THE SAFETY OF PEOPLE, PROPERTY, AND THE ENVIRONMENT ARE NOT REDUCED BELOW A LEVEL THAT IS REASONABLY, APPROPRIATE, AND LEGAL, WHETHER IN GENERAL OR IN A SPECIFIC INDUSTRY. BY ACCESSING THE SOFTWARE, YOU FURTHER ACKNOWLEDGE THAT YOUR HIGH-RISK USE OF THE SOFTWARE IS AT YOUR OWN RISK.

Similar Projects

Discover other similar projects and AI models.

RepositoryPowerShell
microsoft/Data-and-Agent-Governance-and-Security-Accelerator

Automate end-to-end AI governance with Microsoft Purview DSPM for AI and Defender for AI. Configure DLP, sensitivity labels, audit logging, and threat detection across M365 Copilot, Microsoft Foundry, Microsoft Fabric, and custom agentic solutions.

79
Sep 21, 2026
RepositoryHTML
animetanver-commits/fabric-unified-data-blueprint

Microsoft Fabric Unified Data Foundation with Databricks & Purview 2026

114
Nov 18, 2026
RepositoryPython
Azure-Samples/azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.

7.8k
Nov 26, 2026
RepositoryPython
Azure/agent-landing-zone

Enterprise-grade landing zone for AI agent applications on Azure. Deploy the secure infrastructure, the agent app, or both — built on Microsoft Foundry and Microsoft Agent Framework, with Zero-Trust networking, observability and IaC.

1.2k
Dec 3, 2026
RepositoryPython
microsoft/Multi-Agent-Custom-Automation-Engine-Solution-Accelerator

The Multi-Agent Custom Automation Engine Solution Accelerator is an AI-driven system that manages a group of AI agents to accomplish tasks based on user input. Powered by Microsoft Agent Framework, Azure Foundry, Azure Cosmos DB, and infrastructure services, it provides a reference application, allowing you to hit the ground running.

900
Nov 25, 2026
RepositoryC#
Azure-Samples/azure-search-openai-demo-csharp

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure Cognitive Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.

846
Oct 28, 2026
RepositoryBicep
Azure-Samples/contoso-chat

This sample has the full End2End process of creating RAG application with Prompty and Azure AI Foundry. It includes GPT-4 LLM application code, evaluations, deployment automation with AZD CLI, GitHub actions for evaluation and deployment and intent mapping for multiple LLM task mapping.

768
Oct 3, 2025
RepositoryPython
Azure-Samples/rag-postgres-openai-python

A RAG app to ask questions about rows in a database table. Deployable on Azure Container Apps with PostgreSQL Flexible Server.

512
Nov 24, 2026
RepositoryPython
microsoft/Conversation-Knowledge-Mining-Solution-Accelerator

This solution accelerator leverages Microsoft Foundry, Azure Content Understanding, Azure OpenAI Service, and Foundry IQ to enable organizations to derive insights from volumes of conversational data using generative AI. It offers key phrase extraction, topic modeling, and interactive chat experiences through an intuitive web interface.

481
Nov 27, 2026