1
votes

I am new to Azure DevOps and would like to use Environments in my Azure DevOps pipeline. I have seen examples online on regarding how to configure Environments in the yml file (Azure pipeliens.yml) if you are using the yaml editor. However, I am using the classic editor and I am not sure how to integrate the use of Environments into the pipeline or what task should I be editing. I would greatly appreciate any help or sharing of knowledge, thank you!

The following is my current pipeline in the classic editor:

enter image description here

These are examples I seen online where they are able to make use of environment in the pipelines yaml editor

enter image description here enter image description here

1
Agree with Krzysztof Madej. The environment appeared in response to Deployment group jobs are not yet supported in YAML. So, you should use deployment group when you using classic editor. If below answer resolved your question, you could Accept it as an Answer , so it could help other community members who get the same issues and we could archive this thread, thanks.Leo Liu-MSFT

1 Answers

5
votes

You can't. They are designed to work with YAML pipelines. Please check this topic on developer community. There is comparison between deployment group and environment. In fact Environment are kind of replacement of deployment group.