Deploy to Azure
One-time setup (per subscription)
Section titled “One-time setup (per subscription)”- Register the resource providers a new subscription needs:
Terminal window az provider register --namespace Microsoft.Appaz provider register --namespace Microsoft.ContainerRegistryaz provider register --namespace Microsoft.OperationalInsightsaz provider register --namespace Microsoft.ManagedIdentityaz provider register --namespace Microsoft.Authorization - Create a resource group and a Container Apps environment in it:
Terminal window az group create --name my-rg --location eastusaz containerapp env create --name my-env --resource-group my-rg --location eastus --enable-workload-profiles false - Add an Azure cloud account with a service principal scoped to that resource group — see Cloud accounts → Azure.
Your agent.yaml
Section titled “Your agent.yaml”name: my-agentversion: 1.0.0cloud: azureregion: eastusstrategy: 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 AzureDeploy
Section titled “Deploy”Sign in locally and set your subscription, then deploy:
az loginagent-platform deployThe 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.