docs/current_docs/adopting/triggers/azure-pipelines.mdx
Azure Pipelines can run dagger check in any pipeline, so the same checks you run locally run on every push — without rewriting your pipeline.
:::tip
For checks with no pipeline YAML at all, enable Cloud Checks with dagger ws autocheck on. The Azure Pipeline below is the hybrid-mode alternative for when you want to drive Dagger from your existing Azure Pipelines setup.
:::
When running a CI pipeline with Dagger using Azure Pipelines, the general workflow looks like this:
azure-pipelines.yml file.dagger check against the modules installed in your workspace.DAGGER_CLOUD_TOKEN environment variable is set..dagger/config.toml) — see Workspace Setup.The following example runs all of your workspace's checks with dagger check:
dagger check runs every check and exits non-zero if any fails. You can scope it to a subset — for example dagger check go:* to run a single module's checks.
By default the Dagger CLI starts a Dagger Engine inside the Azure Pipelines runner. For a faster, more reliable experience, offload execution to a managed Dagger Engine provided by Dagger Cloud by adding --cloud to the command:
dagger check --cloud
Cloud Engines provide a large persistent cache shared across runs and far more compute than an Azure Pipelines runner, so checks are typically much faster — and you don't provision or maintain any infrastructure. This requires the DAGGER_CLOUD_TOKEN secret configured for the pipeline.
If you have any questions about additional ways to use Azure Pipelines with Dagger, join our Discord and ask your questions in our help channel.
Azure Pipelines is the CI/CD service of Azure DevOps. It enables developers to quickly and easily build, test and deploy their applications, and works with multiple languages and platforms. It supports both self-hosted and managed agents.