📋 Note: This guide is specifically for post-deployment steps after using the AVM template. For complete deployment from scratch, see the main Deployment Guide.
This document provides guidance on post-deployment steps after deploying the Document Knowledge Mining Solution Accelerator from the AVM (Azure Verified Modules) repository.
After deploying the infrastructure using AVM, you'll need to complete the application layer setup, which includes:
- Configuring Kubernetes infrastructure
- Building and deploying container images
- Setting up certificates and ingress controllers
- Configuring application settings
Before starting the post-deployment process, ensure you have the following:
-
PowerShell (v7.0+ recommended, v5.1+ minimum) - Available for Windows, macOS, and Linux
-
Azure CLI (v2.50+) - Command-line tool for managing Azure resources
-
kubectl - Kubernetes command-line tool
Install using Azure CLI:az aks install-cli -
aks-preview extension - Azure CLI extension for AKS preview features
az extension add --name aks-preview
-
Helm (v3.0+) - Package manager for Kubernetes
-
Docker Desktop - Container platform for building and publishing images
⚠️ Important: Ensure Docker Desktop is running before executing the deployment script
-
Azure Access - One of the following roles on the subscription:
OwnerUser Access Administrator
-
Microsoft.Compute Registration - Verify this resource provider is registered:
- Navigate to Azure Portal
- Go to your Azure subscription
- Select Settings → Resource Providers
- Search for Microsoft.Compute and ensure it's Registered
-
Deployed Infrastructure - A successful Document Knowledge Mining Accelerator deployment from the AVM repository
First, clone this repository to access the post-deployment scripts:
git clone https://github.com/microsoft/Document-Knowledge-Mining-Solution-Accelerator.gitcd Document-Knowledge-Mining-Solution-AcceleratorThe post-deployment process is automated through a single PowerShell script that completes the following tasks in approximately 20-30 minutes:
- Configure Kubernetes Infrastructure - Set up AKS cluster settings and networking
- Update Configuration Files - Generate FQDN, container image paths, and certificate settings
- Deploy Kubernetes Components - Install Cert Manager, Ingress Controller, and application pods
- Build and Push Container Images - Compile and publish application containers to Azure Container Registry
- Provide Access Information - Display the final application URL and next steps
-
Navigate to the deployment directory:
cd .\Deployment\
-
Choose the appropriate command based on your deployment method:
If you deployed using custom templates, ARM/Bicep deployments, or
az deployment groupcommands:.\resourcedeployment.ps1 -ResourceGroupName "<your-resource-group-name>"
If you deployed using
azd upcommand:.\resourcedeployment.ps1
Note: Replace
<your-resource-group-name>with the actual name of the resource group containing your deployed Azure resources.💡 Tip: Since this guide is for AVM deployments, you'll most likely use the first command with the
-ResourceGroupNameparameter. -
If you encounter execution policy issues, use this alternative command:
powershell.exe -ExecutionPolicy Bypass -File ".\resourcedeployment.ps1" -ResourceGroupName "<your-resource-group-name>"
During script execution, you'll be prompted for:
- Purpose: Used for issuing SSL certificates through Let's Encrypt
- Requirement: Must be a valid email address
- You'll be prompted to authenticate with Azure
- Select the appropriate Azure account
- Ensure you have the required permissions on the target subscription
Upon successful completion, you'll see a success message with important information:
🎉 Congratulations! Your deployment is complete.
Important: Save the application URL displayed in the console - you'll need it for data upload and accessing the application.
⚠️ Critical: The default deployment creates models with minimal TPM (Tokens Per Minute) limits. You must increase these limits for proper performance.
| Model Name | Recommended TPM | Minimum TPM |
|---|---|---|
| gpt-4.1-mini | 100K TPM | 10K TPM |
| text-embedding-3-large | 200K TPM | 50K TPM |
⚠️ Warning: Insufficient quota will cause failures during document upload and processing. Ensure adequate capacity before proceeding.
-
Navigate to Azure AI Foundry:
- Go to Azure AI Foundry
- Select your project
- Go to Deployments section
-
Update Each Model:
- Select each deployed model
- Click Edit deployment
- Increase the Tokens per Minute Rate Limit
-
Apply Changes: Save the configuration for each model
After configuring the TPM limits, upload sample documents:
-
Navigate to the deployment directory (if not already there):
cd .\Deployment\
-
Execute the upload script with the URL from the deployment output:
.\uploadfiles.ps1 -EndpointUrl https://kmgs<your-dns-name>.<datacenter>.cloudapp.azure.com
-
Alternative execution (if you encounter policy issues):
powershell.exe -ExecutionPolicy Bypass -File ".\uploadfiles.ps1" -EndpointUrl https://kmgs<your-dns-name>.<datacenter>.cloudapp.azure.com
Once document upload is complete, you can:
- Access the web application at the URL provided in the deployment output
- Start exploring the knowledge mining capabilities
- Upload additional documents through the web interface


