Run on Azure¶
Two Azure Developer CLI (azd) templates are in the public repository, folder deploy/azd/:
| Template | What it creates |
|---|---|
container-apps |
Azure Container Apps, with data on an Azure Files NFS share |
aks |
AKS with the Helm chart, data on an Azure Disk |
Steps¶
- Push the server image to your registry (or use
ghcr.io/sandaal/aiapp-server:3.0). git clone https://github.com/Sandaal/ai-app-server.git, then put your app folders in the template'sapps/folder (deploy/azd/container-apps/apps/ordeploy/azd/aks/apps/).- Read the template's
azure.yaml, then:
Use Azure services from your apps¶
| Need | How |
|---|---|
| Azure OpenAI | provider: azure-openai in the app, with AZURE_OPENAI_ENDPOINT and a key or the server's managed identity, see Model providers |
| Keys in Key Vault | api_key_env: "kv:openai-key", see Secrets and vaults |
| Sign-in with Entra ID | Sign-in |
| Harmful content checks | the azure-content-safety guardrail |
| Monitoring | send OpenTelemetry to Azure Monitor, see Monitoring |
Storage must be NFS or a disk
Don't put the data on SMB file shares (such as App Service storage mounts): the embedded database needs NFS or block storage.