az-repos Verified for current stable LTS

Az Repos Command: Add Build Validation To Repo

Use for add build validation to repo with Az Repos. Exact CLI syntax to add build validation to repo using Az Repos.

When to use this: Use for add build validation to repo with Az Repos.

Command Syntax

az repos policy build create --repository-id <repository_id> --build-definition-id <build_pipeline_id> --branch main --blocking --enabled --queue-on-source-update-only true --display-name <name> --valid-duration <minutes>

Command Breakdown

--repository-id
Command Option
Tool-specific option used by this command invocation.
--build-definition-id
Command Option
Tool-specific option used by this command invocation.
--branch
Command Option
Tool-specific option used by this command invocation.
--blocking
Command Option
Tool-specific option used by this command invocation.
--enabled
Command Option
Tool-specific option used by this command invocation.
--queue-on-source-update-only
Command Option
Tool-specific option used by this command invocation.
--display-name
Command Option
Tool-specific option used by this command invocation.
--valid-duration
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to add build validation to repo using Az Repos.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Az Repos directory