Skip to content

Deploy to Azure

  1. Register the resource providers a new subscription needs:
    Terminal window
    az provider register --namespace Microsoft.App
    az provider register --namespace Microsoft.ContainerRegistry
    az provider register --namespace Microsoft.OperationalInsights
    az provider register --namespace Microsoft.ManagedIdentity
    az provider register --namespace Microsoft.Authorization
  2. Create a resource group and a Container Apps environment in it:
    Terminal window
    az group create --name my-rg --location eastus
    az containerapp env create --name my-env --resource-group my-rg --location eastus --enable-workload-profiles false
  3. Add an Azure cloud account with a service principal scoped to that resource group — see Cloud accounts → Azure.
name: my-agent
version: 1.0.0
cloud: azure
region: eastus
strategy: containers # or serverless (scale to zero)
source: { type: local, path: . }
resources: { memory: 512Mi, cpu: 0.25 }
permissions: []
secrets: [OPENAI_API_KEY]
networking: { public: true }
cloudOptions:
resourceGroup: my-rg
environmentName: my-env
registryName: myagentacr123 # optional; must be globally unique in Azure

Sign in locally and set your subscription, then deploy:

Terminal window
az login
agent-platform deploy

The image is built with Azure Container Registry Tasks. AbstractAI then creates a dedicated managed identity for the agent, grants it AcrPull on the registry (no admin user), and creates the Container App. You get a stable HTTPS hostname straight away. Logs come from Log Analytics.

If the CLI can’t detect your subscription, set it for the shell: $env:AZURE_SUBSCRIPTION_ID = "<sub-id>" (PowerShell) or export AZURE_SUBSCRIPTION_ID=<sub-id>. If the registry name is taken, set cloudOptions.registryName to another one.