{
  "slug": "azd-deploys-docker-services-to-app-service-e2c29768f65c",
  "title": "azd deploys Docker services to App Service",
  "tools": [
    "azd"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-30T21:28:18.000Z",
  "announced_at": "2026-06-30T21:28:18.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When deploying a Docker-based service to App Service, set `host: appservice` and `language: docker` or `docker.path`. Then run `azd deploy <service>` to build and push the image to ACR and update the site’s container image reference.",
    "examples": [
      "services:\n  <service>:\n    project: ./src/web\n    host: appservice\n    language: docker\n    docker:\n      path: ./Dockerfile",
      "azd deploy <service>"
    ],
    "gotchas": [
      "Version: 1.27.0",
      "`host` (required): Set to `appservice` for Azure App Service.",
      "`project` (required): Path to the service source directory when building the image from source.",
      "`language`: Set to `docker` to trigger container mode; alternatively, set `docker.path`.",
      "`docker.path`: Path to the Dockerfile; setting it triggers container mode on the App Service host. The docs do not state that it is mutually exclusive with `language: docker`.",
      "`<service>` (required): Service name from `azure.yaml` to deploy.",
      "Prerequisite: The App Service site must already be provisioned as a Linux container app; `azd deploy` does not provision or configure infrastructure.",
      "Prerequisite: Infrastructure must configure a Linux App Service plan, a container-ready `linuxFxVersion` using `DOCKER|`, a single container, and user-assigned managed identity access to ACR.",
      "Prerequisite: Infrastructure must define the ACR instance used for the image push.",
      "This applies to services configured with `host: appservice` and `language: docker` or `docker.path`."
    ]
  },
  "why_it_matters": "Deploy a Docker-based Web App for Containers scenario to App Service from an azd project.",
  "sources": [
    "https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.27.0",
    "https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/app-service-containers",
    "https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/reference",
    "https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/azd-schema"
  ],
  "rank": 0.95025,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-6b1348cb5815b1ca-3:gate",
    "evidence_hash": "b6ce7b6b46e95ed065aa7ef2b2d64cb64db4a583daf5586cda9b03730543292e"
  },
  "review": {
    "draft_hash": "c99d3cda46ed6b7e322236c087480b7c883cbbe5a0aa2f5388b51294bdfff922",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.69 (>= 0.6 needed)."
  }
}
