Introduction:
In this article we are going to use YAML pipelines for doing the deployment of synapse code along with customization of input parameters which can help you create the deployment d...
Although I did face an issue when trying to implement it. So, I want to share the issue I have faced in case anyone have the same, but also, to ask what is the right way of doing it. Basically I have copied the same CD YAML code and changed the values for my context, then when I run I started getting the error:
"Environment validation failed"
In the end I figured it out that the input "Environment" was the root cause. I was using the name of the environment I have set in Azure DevOps and when I removed it from the YAML the pipeline started to work. Then I also noticed it was printing ##[debug]Environment=prod, while I don't have an Environment called "prod" and it didn't impact anything either. So, my question is, am I doing something wrong here or how is the right way to use this input?