Answers: <p>You need to enable the <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started/multi-stage-pipelines-experience?view=azure-devops" rel="nofollow noreferrer">multi-stage pipelines preview</a> feature. <a href="https://docs.microsoft.com/en-us/azure/devops/project/navigation/preview-features?view=azure-devops#enable-features-for-your-use" rel="nofollow noreferrer">Here is a guide to enable preview features.</a></p>
  
Answers: CC BY-SA 4.0
Answers: 2020-01-10T16:18:38.420Z
Answers: 2020-01-10T16:18:38.420Z
Answers: Anthony Klotz
Body: <p>I am trying to understand where you actually use the environments you setup in a project. I though I could use them to deploy on specific servers from deployment agent which are hosted on another on premise server.</p>
  
  <p>The example given in the documentation shows that you can define the environment inside a deployment job.
  But I can't find it inside the UI when defining a release pipeline</p>
  
  <p>Where do you use environments if you're not using a yaml pipeline ?</p>
  
  <pre><code>- stage: deploy
    jobs:
    - deployment: DeployWeb
      displayName: deploy Web App
      pool:
        vmImage: 'Ubuntu-16.04'
      # creates an environment if it doesn't exist
      environment: 'smarthotel-dev'
      strategy:
        runOnce:
          deploy:
            steps:
            - script: echo Hello world
  </code></pre>
  
Tags: <azure-pipelines><release>
Title: Where Azure DevOps Services Enviromnent come into play?
UserDisplayName: EagerLearner
ThreadText: # Where Azure DevOps Services Enviromnent come into play?
  
  (Asked by: username_0 on 2020-01-09)
  
  I am trying to understand where you actually use the environments you setup in a project. I though I could use them to deploy on specific servers from deployment agent which are hosted on another on premise server.
  
  The example given in the documentation shows that you can define the environment inside a deployment job.
  But I can't find it inside the UI when defining a release pipeline
  
  Where do you use environments if you're not using a yaml pipeline ?
  
  ```
  - stage: deploy
    jobs:
    - deployment: DeployWeb
      displayName: deploy Web App
      pool:
        vmImage: 'Ubuntu-16.04'
      # creates an environment if it doesn't exist
      environment: 'smarthotel-dev'
      strategy:
        runOnce:
          deploy:
            steps:
            - script: echo Hello world
  
  ```
  
  **Tags:** azure-pipelines, release
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-01-10. Score: 1
  
  You need to enable the [multi-stage pipelines preview](https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started/multi-stage-pipelines-experience?view=azure-devops) feature. [Here is a guide to enable preview features.](https://docs.microsoft.com/en-us/azure/devops/project/navigation/preview-features?view=azure-devops#enable-features-for-your-use)
  
  
  ---
  
  