Skip to content

[Docs] Document App Service slot deployment behavior and environment variables #7531

Description

@vhvb1989

Context

PR #7530 (fixing #7365) introduces AZD_DEPLOY_{SERVICE}_IGNORE_SLOTS and also documents the previously-undocumented AZD_DEPLOY_{SERVICE}_SLOT_NAME in the CLI reference (cli/azd/docs/environment-variables.md).

The official docs on learn.microsoft.com should be updated to cover:

Requested Documentation

  1. Slot deployment behavior — Document the automatic slot selection rules:

    • First deployment: deploys to main app + all slots
    • Subsequent with no slots: main app only
    • Subsequent with 1 slot: auto-selects that slot
    • Subsequent with 2+ slots: prompts user or uses AZD_DEPLOY_{SERVICE}_SLOT_NAME
  2. AZD_DEPLOY_{SERVICE}_SLOT_NAME — Existing env var for selecting a specific slot when multiple exist. {SERVICE} is the uppercase service name with hyphens replaced by underscores.

  3. AZD_DEPLOY_{SERVICE}_IGNORE_SLOTS — New env var that bypasses slot detection and deploys directly to the main app. Useful for CI pipelines that need to deploy to the main app while slots exist.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/public-docsPublic documentation (Microsoft Learn, etc.)enhancementNew feature or improvement

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions