Deploy to Azure
Run the kit on Azure Container Apps.
The Azure kit runs your model on Azure Container Apps. Download it from the Deploy anywhere tab of the Deploy & export panel, on the Azure Container Apps card, and unzip it. The README.md inside has these commands with your model's name and tag filled in. If you have not used a kit before, read Choose where to deploy.
You need the Azure CLI (az) signed in to your subscription, with the Container Apps extension available. In the commands below, values in angle brackets are yours to fill in, and my-model and v-1 stand for the image name and tag from your kit's README.
Push the image to Azure Container Registry
Create a resource group and a registry, then build the image in Azure. az acr build uploads the kit folder and builds there, so you do not need Docker on your machine.
export RG=<RESOURCE_GROUP>
export LOCATION=<LOCATION>
export ACR=<ACR_NAME> # globally unique, lowercase letters and digits
az group create --name $RG --location $LOCATION
az acr create --resource-group $RG --name $ACR --sku Basic --admin-enabled true
az acr build --registry $ACR --image my-model:v-1 .The container app pulls the image with the registry's admin credentials. The kit reads them into shell variables so they are never written to a file:
export ACR_USERNAME=$(az acr credential show --name $ACR --query username -o tsv)
export ACR_PASSWORD=$(az acr credential show --name $ACR --query "passwords[0].value" -o tsv)Create the container app
Create an environment, then the app.
az containerapp env create --name my-model-env --resource-group $RG --location $LOCATION
az containerapp create --name my-model --resource-group $RG \
--environment my-model-env \
--image $ACR.azurecr.io/my-model:v-1 \
--registry-server $ACR.azurecr.io \
--registry-username "$ACR_USERNAME" --registry-password "$ACR_PASSWORD" \
--target-port 8080 --ingress internal \
--min-replicas 1 --max-replicas 5 --cpu 1.0 --memory 2.0GiThis runs between 1 and 5 replicas, each with 1 CPU and 2 GiB of memory. Change these numbers to fit your traffic.
Ingress is internal on purpose
--ingress internal makes the app reachable only from inside the Container Apps environment's virtual network, because the prediction service has no authentication of its own. To reach it from outside, put Azure Front Door or API Management in front and authenticate callers there. For a short test only, you can use --ingress external. Delete the app when you finish.
Declarative alternative
The kit also includes deploy/azure-containerapps/containerapp.yaml. Fill in the placeholders (subscription, resource group, location, registry name and credentials) and run:
az containerapp create --name my-model --resource-group $RG \
--yaml deploy/azure-containerapps/containerapp.yamlThe file describes the same app, with liveness and readiness probes on /health. It stores the registry password as an app secret, so do not commit the filled-in file.
Call the endpoint
Find the app's address:
az containerapp show --name my-model --resource-group $RG \
--query properties.configuration.ingress.fqdn -o tsvWith internal ingress, call it from a machine or service inside the same virtual network. The request body is the kit's sample.json.
curl https://<APP_FQDN>/health
curl -X POST https://<APP_FQDN>/predict \
-H "Content-Type: application/json" \
-d @sample.jsonThe answer has a predictions list, and classification models add probabilities and classes. Requests are limited to 5 MB and 1,000 records. The routes and error codes are in Deploy with Docker.
To stop paying for the model, delete the resource group when you no longer need it: az group delete --name $RG. This removes everything in the group, so check what else it holds first.
Next steps
Updated 2026-11-22