AZ-400 • Practice Test 22
Free AZ-400 practice test — 15 questions with explanations. Set 22. No signup required.
The pipeline above fails with: 'The deployment job 'DeployToProd' references environment 'Production' which does not exist.' What should you do to resolve this error?
Refer to the exhibit.
```yaml
# azure-pipelines.yml
trigger:
branches:
include:
- main
- release/*
pool:
vmImage: ubuntu-latest
variables:
- group: 'Prod-Environment'
stages:
- stage: Build
jobs:
- job: BuildJob
steps:
- script: echo Building...
- stage: Deploy
jobs:
- deployment: DeployToProd
environment: 'Production'
strategy:
runOnce:
deploy:
steps:
- script: echo Deploying...
```