0
0
Azurecloud~10 mins

Release pipeline basics in Azure - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define a release pipeline stage in Azure DevOps.

Azure
stages:
- stage: [1]
  jobs:
  - job: Build
    steps:
    - script: echo Building...
Drag options to blanks, or click blank then click option'
ABuild
BDeploy
CTest
DRelease
Attempts:
3 left
💡 Hint
Common Mistakes
Using a stage name that doesn't match the job purpose.
Confusing job names with stage names.
2fill in blank
medium

Complete the code to specify the trigger for the release pipeline.

Azure
trigger:
  branches:
    include:
    - [1]
Drag options to blanks, or click blank then click option'
Afeature
Bdev
Crelease
Dmain
Attempts:
3 left
💡 Hint
Common Mistakes
Using a feature branch as the trigger for production releases.
Forgetting to include the branch name under include.
3fill in blank
hard

Fix the error in the deployment job to correctly specify the agent pool.

Azure
jobs:
- deployment: DeployWeb
  pool:
    vmImage: [1]
  environment: 'production'
  strategy:
    runOnce:
      deploy:
        steps:
        - script: echo Deploying...
Drag options to blanks, or click blank then click option'
Awindows-latest
Bubuntu-latest
Cmacos-latest
Dlinux-latest
Attempts:
3 left
💡 Hint
Common Mistakes
Using an invalid vmImage name like 'linux-latest' which is not recognized.
Confusing OS names or misspelling the image name.
4fill in blank
hard

Fill both blanks to define a job with a script step that runs a deployment command.

Azure
jobs:
- job: Deploy
  steps:
  - script: [1] [2]
Drag options to blanks, or click blank then click option'
Aaz
Bdeploy
Crun
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect command words that do not form a valid Azure CLI command.
Swapping the order of command parts.
5fill in blank
hard

Fill all three blanks to create a release pipeline variable group reference with a secret variable.

Azure
variables:
- group: [1]
- name: [2]
  value: [3]
  isSecret: true
Drag options to blanks, or click blank then click option'
AProdSecrets
BAPI_KEY
C$(mySecretValue)
DDevSecrets
Attempts:
3 left
💡 Hint
Common Mistakes
Using a non-secret value for a secret variable.
Mixing variable group names or variable names incorrectly.