PUBLIC BETA OFFER

Save 50% off on an Eligible Learning PlanValid for 1-month plan, 3-month plan, 12-month plan · Code LPXBETA50 · Ends Dec 6, 2026

AZ-401: Progressive Delivery and Deployment Slot Decisions

Choose rollout exposure, traffic cohorts and health gates, assess App Service slot eligibility and swap limits, and weigh capacity, state compatibility and recovery tradeoffs.

Guide

Content version 1.0

AZ-401: Progressive Delivery and Deployment Slot Decisions

AZ-401: Progressive Delivery and Deployment Slot Decisions

Choose rollout exposure by asking how much change the workload can tolerate, which users or instances can receive it first, what evidence justifies widening it, and whether the previous version can still operate against the resulting state. Select a traffic or feature-control mechanism that can implement those decisions, with enough capacity and an owner who can halt progression. Azure App Service deployment slots can support a staged application and traffic transition on eligible plans; they do not supply every progressive-delivery pattern or reverse arbitrary database changes.

This decision framework compares rollout choices and the boundaries of supported slot behavior. It is not a deployment lab, an executed rollout or a guarantee of disruption-free recovery. Establish the admission controls described in AZ-401: Protected Deployment Environments and Approvals first. A successful approval permits the governed work to proceed; it does not prove that the chosen exposure, application state or health evidence is safe.

Separate the decisions before choosing a pattern

A pattern name is an incomplete release plan. Record the answers to these questions before selecting a mechanism:

Decision Evidence needed Consequence if unresolved
What changes together? Candidate code, configuration, dependencies and state changes A code-only recovery plan can omit the actual risk
Who receives the candidate first? An identifiable user cohort, location, tenant group or instance set A small traffic percentage might reach the wrong population
What permits expansion? Relevant health and usage observations for that population Quiet or unobserved traffic cannot establish safety
What can be stopped or reversed? Actual routing, flag and application-state compatibility Returning traffic to old code might be unsafe
What capacity is available? Headroom during coexistence, maintenance and failure Partial deployment can overload the remaining capacity
Who owns the decision? Release, application, data and resource authorities An automation condition can be mistaken for authorization

Use the smallest exposure that can produce meaningful evidence for the risk being investigated. Smaller is not automatically more informative: an internal cohort that never exercises a changed customer workflow can miss the failure that matters. Conversely, exposing a representative external cohort requires the appropriate authority and protection for those users.

The framework is a design aid. The actual platform, application and routing system must support the chosen cohort and transition; a pipeline label cannot create that capability.

Compare the patterns by what they control

The following working distinctions help separate decisions that are often grouped under progressive delivery. They are not a promise that one hosting feature implements every row.

Choice Useful decision it supports Main tradeoff to resolve
Blue-green Keep current and candidate deployments available and change which receives traffic after validation Coexistence capacity, configuration equivalence and shared-state compatibility
Canary Limit initial exposure, then widen it when the required health evidence supports doing so A representative sample, reliable attribution and a controllable routing or flag mechanism
Rings Advance through deliberately ordered groups, such as internal users followed by selected customer cohorts Stable group membership and evidence appropriate to each ring
Rolling replacement Replace parts of an instance population in batches Mixed-version operation and sufficient capacity while instances change
Feature flags Separate deployment of code from activation of selected behavior Correct targeting, safe defaults, ownership and later removal of obsolete flag paths
Comparison of variants A and B, or A/B experimentation Evaluate an explicit product hypothesis across variants A valid experiment design and separate operational safety limits

These dimensions can be combined in a reviewed design. For example, a candidate deployment may retain the previous version while a flag limits a behavior to one cohort. That combination still needs independent answers about data writes, capacity and observation; adding two labels does not eliminate either mechanism's failure modes.

Progressive exposure describes the controlled widening of risk. A canary might use percentage-based routing, while a ring requires a meaningful group definition. Rolling replacement concerns the instance population and can leave old and new versions active together. Verify the actual selection mechanism rather than treating these descriptions as interchangeable configuration syntax.

Feature activation and traffic routing also differ. A flag can keep one behavior disabled while the candidate code serves other work. Routing a client to another deployment changes the version serving that client. Neither action necessarily prevents the new version from performing background work or writing shared data; inspect the workload design.

An experiment's improved business metric is not a deployment health verdict. Keep operational stop criteria in force even when a variant appears to improve conversion or engagement. A/B experimentation does not replace the quality and authorization controls required to expose the variant.

Choose evidence for advancing, holding or stopping

Azure Well-Architected guidance recommends progressive exposure with a workload health model and time to observe each group. It also calls for usage evidence, because an absence of reported problems can conceal a lack of meaningful use. Its bake-time guidance emphasizes hours and days rather than a universal short pause.

Translate that guidance into a workload-specific decision record. Identify the candidate and comparison population, the user journeys that must occur, the relevant error and response behavior, the observation window and the person accountable for the next decision. Include the dependencies most likely to reveal this change's failure, without turning this framework into a monitoring-installation procedure.

Observation Decision to prepare Reasoning
Required usage occurred and relevant indicators remain acceptable Consider the next bounded exposure after required owner admission Evidence relates to the candidate, population and intended risk
Too little usage, missing telemetry or uncertain attribution Hold expansion and resolve the evidence gap No observed fault is weaker than demonstrated health
A relevant user-impacting health signal deteriorates Halt progression and investigate promptly Continuing exposure can enlarge the affected population
Candidate or previous version cannot safely use the resulting state Hold the transition for an explicit compatibility or recovery decision Traffic reversal alone cannot repair incompatible state

These are engineering decision rules to adapt, not product-default thresholds. Define acceptable behavior before looking at the candidate's results. Compare meaningful populations and time windows; an aggregate green dashboard can hide a failing cohort or a critical workflow.

Distinguish a stopped rollout from a completed recovery. Halting further expansion limits additional exposure. The release owner still needs to decide how to treat users already exposed, in-flight work and changed data. Preserve the observations that caused the stop instead of widening thresholds to make the release appear healthy.

Evaluate App Service deployment slots within their boundary

App Service deployment slots require a Standard, Premium or Isolated plan and permission for the intended operation. Slots are live apps with distinct host names. Configuration cloning does not clone a private endpoint, so inspect the actual connectivity and access boundary rather than assuming a cloned configuration is equivalent.

Before a swap, inspect the source, target and settings that move or remain slot-specific. When moving staging into production, production is the target. App settings and connection strings can be sticky; managed identities and virtual network integration are among settings that do not swap. Platform warm-up can accept any Hypertext Transfer Protocol (HTTP) response by default, so it is not sufficient workload-health evidence. Former production workers are recycled after the swap, which matters for long-running operations.

Percentage routing randomly selects clients and uses session affinity. It does not establish a named-ring assignment or exact per-request exposure. A new slot starts with no automatic production traffic, but its endpoint still requires access review. Slots have no extra slot charge; capacity and plan limits still require assessment.

Use those constraints to decide whether a slot is a suitable mechanism for the transition. Review questions include whether both versions can operate with the intended settings, whether the staged endpoint is appropriately protected, and whether background tasks or shared dependencies introduce effects outside the routed requests.

A slot can be useful for preproduction validation and a supported traffic transition. It does not by itself provision two independent copies of every dependency or implement a rolling host replacement, a complete ring controller and an experiment-analysis system. Select and verify any additional capability explicitly.

Resolve state compatibility before relying on traffic reversal

Treat state as a separate decision dimension. Ask whether old and new application versions can both read and write the state that will exist during coexistence. Identify irreversible side effects, asynchronous messages, external actions and schema changes that outlive a request. A deployment label or traffic percentage does not capture those consequences.

For example, returning clients to the previous code can be reasonable only if that code remains compatible with the actual state and required dependencies. If the candidate has already produced records the previous version cannot interpret, routing alone cannot restore compatibility. A feature flag might prevent future use of a behavior without undoing records already written.

The Azure guidance explicitly warns that database, schema and other stateful recovery can be complex. Require an owner-reviewed compatibility and recovery plan before exposure, rather than claiming a slot swap provides a database rollback. This framework does not prescribe a schema migration or data-restoration command.

Keep normal rollout selection separate from emergency ordering, hotfix authority and workload recovery. Those decisions continue in AZ-401: Ordered Deployments Hotfixes and Workload Recovery. Record the dependency and stop the planned transition if its required state decision remains unresolved.

Account for capacity, cost and independent authority

Compare the resources needed during the transition, not just after it. A blue-green design can retain two deployment pools; a rolling design needs sufficient healthy capacity while part of the population changes. A smaller exposure can still put substantial load on a shared dependency. Review actual headroom, limits and operational ownership instead of assuming a pattern name supplies capacity.

Include coexistence duration and observation time in the cost discussion. A longer bake period can improve evidence while extending the time that additional capacity and support must remain available. Decide what evidence justifies that cost and how an inconclusive observation affects the release window. Do not trade away necessary health checks simply to match an arbitrary schedule.

Azure Pipelines stages and GitHub Actions jobs can organize the reviewed deployment work. Their dependencies and authored conditions do not supply application routing or resource-owner approval. Azure checks govern resources a stage actually consumes; GitHub protection rules apply to jobs that reference the relevant environment, subject to plan, visibility and bypass conditions.

Keep the actual environment binding, permitted actor and required approval separate from the health decision. A protected job that never consumes the intended resource does not establish admission. Likewise, a healthy candidate does not authorize changing a protected environment. Preserve the prerequisite's existing controls while choosing the rollout mechanism.

Apply the framework to a concrete selection

Consider a hypothetical web application with a candidate feature, an existing supported App Service plan and a shared database. The team wants early feedback from internal users while retaining the current customer behavior. No deployment or traffic change is performed for this example.

If both versions are compatible with the existing state, the team can assess a staged candidate and an owner-approved feature-targeting mechanism for the internal cohort. A slot's random percentage routing alone would not guarantee that only those internal users receive the feature. The decision therefore needs either verified cohort targeting or an explicitly different, authorized exposure objective.

The release record should identify the candidate, intended population, routing or flag mechanism, expected workload use, health criteria, observation period, capacity allowance and stop owner. Advancing to another group requires the corresponding evidence and admission; a ready slot or a successful pipeline run does not fill in those fields.

Now change one assumption: the candidate requires a state change that breaks the previous version. Retaining the previous code in another slot no longer provides a demonstrated recovery path. Hold the transition for the application and data owners' compatibility decision. Choosing a smaller percentage might reduce immediate exposure, but it does not remove the shared-state risk.

A defensible choice ends with both a selected mechanism and explicit unresolved limits. Keep that record linked to the actual release evidence. Pattern names, traffic settings, experiment outcomes and approval captions each answer different questions; the release decision needs the relevant answers together.

Authoritative Sources

0 views