How to disable auto Environment creation from a YAML in Azure DevOps?

Viewed 458

I'm using Azure DevOps 2020 on-premise. Working on YAML release pipeline, I figured out that the environments are automatically created if it doesn't exist. Is there a way I could disable the Environment creation from YAML file? I want to do this to avoid misspelling the environment names and restrict non-admins to create Environments.

1 Answers

As this doc: Create and target an environment stated, If the specified environment doesn't already exist, an empty environment is created using the environment name provided.

Thus I am afraid that we cannot disable auto Environment creation from a YAML in Azure DevOps. But this is indeed a good suggestion. I found a similar suggestion ticket in Developer community. You can vote and follow this ticket. You can also create a new suggestion ticket here. The product group will review these tickets regularly, and consider take it as roadmap.

Related