Skip to content

Never abort deployment on validation errors - always let user choose #7115

Closed

Description

Context

Follow-up from PR #7053 review. Parent tracking issue: #7112

PR Conversations

What needs to change

  1. Remove code that blocks/aborts deployment when validation errors are found.
  2. Always ask the user whether to stop and fix or try to deploy anyway, even for errors that seem certain to fail.
  3. Validation should be strictly informational with ignorable warnings — forward compatibility concerns mean we should never block based on heuristics that could become stale.

Files to update

  • cli/azd/pkg/infra/provisioning/bicep/bicep_provider.go (line ~2185)
  • cli/azd/docs/design/local-preflight-validation.md (update design to reflect non-blocking behavior)

Activity

  1. spboyer commented on Mar 23, 2026

    @spboyer
    Member

    Telemetry data supporting the "never abort" direction.

    From Kusto analysis of service.arm.deployment.failed in March 2026 (23 days):

    RoleAssignmentExists accounts for 351 ARM deployment failures per month (4.0% of inner error codes). These are not real failures -- the role assignment already succeeded on a previous run. The current behavior treats an idempotent success state as a deployment-blocking error.

    Additionally, DeploymentActive (199/mo) represents cases where a previous deployment is still running. Rather than aborting, azd could detect this and wait for the in-progress deployment to complete.

    Both of these support treating certain "errors" as warnings rather than abort conditions:

    Inner Error Monthly Count Current Behavior Proposed Behavior
    RoleAssignmentExists 351 Deployment fails Treat as success (already done)
    DeploymentActive 199 Deployment fails Wait for in-progress deployment, then proceed

    Data source: ddazureclients.kusto.windows.net / DevCli / RawEventsAppRequests, March 1-23, 2026.

  2. vhvb1989 commented on Apr 6, 2026

    @vhvb1989
    MemberAuthor

    Feature is already working like this.
    Warnings prompt users if they want to continue or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions