Search code examples
azureazure-devopsyaml

Can I validate an azure-pipelines.yml file via CLI?


I'm trying to build an azure-pipelines.yml for a monorepo, and I'm struggling to figure out how to debug the file as I move along.

Is there a command such as az deployment validate ./azure-pipelines.yml available?

If so, how do you recommend I go about doing this? I keep making changes, pushing them to my repo, and then letting Azure DevOps run it, and fail.


Solution

  • no, there is no way to validate it. when you try to run it - it will show you the error, thats the only real way to validate it.

    this VSCode extension provides syntax highlighting and autocompletion.

    https://marketplace.visualstudio.com/items?itemName=ms-azure-devops.azure-pipelines