Azure DevOps has two distinct way to create release pipeline, the new one, fully YAML and the old one, based on a GUI. Let's discover which one to use in your scenario
Thanks to REST api creating a pipeline that is capable to create a new environment is matter of few lines of PowerShell code.