0
0
Azurecloud~10 mins

Deployment methods (Git, ZIP, CI/CD) 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 deploy an app using Git in Azure CLI.

Azure
az webapp deployment source config --name myApp --resource-group myResourceGroup --[1]
Drag options to blanks, or click blank then click option'
Abranch
Bquery
Crepo-url
Dslot
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'branch' instead of 'repo-url' will cause the command to fail.
Confusing 'slot' with repository information.
2fill in blank
medium

Complete the command to deploy a ZIP package to Azure App Service.

Azure
az webapp deployment source config-zip --resource-group myResourceGroup --name myApp --src [1]
Drag options to blanks, or click blank then click option'
Aapp.json
Bapp.zip
Capp.js
Dapp.tar
Attempts:
3 left
💡 Hint
Common Mistakes
Using a non-ZIP file like .js or .json will cause deployment errors.
3fill in blank
hard

Fix the error in the Azure DevOps pipeline YAML to trigger on push to main branch.

Azure
trigger:
  branches:
    include:
      - [1]
Drag options to blanks, or click blank then click option'
Amain
Bdevelop
Cfeature
Drelease
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'develop' or other branch names will not trigger the pipeline on main branch pushes.
4fill in blank
hard

Fill both blanks to define a CI/CD pipeline step that builds and deploys an app.

Azure
- stage: BuildAndDeploy
  jobs:
  - job: Build
    steps:
    - script: dotnet build [1]
    - script: az webapp deploy --name myApp [2]
Drag options to blanks, or click blank then click option'
A--configuration Release
B--resource-group myResourceGroup
C--slot production
D--verbose
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--slot production' without specifying resource group causes errors.
Omitting build configuration leads to default debug build.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that filters and transforms deployment logs.

Azure
filtered_logs = [1]: log.upper() for log in logs if [2].startswith('[3]')
Drag options to blanks, or click blank then click option'
A{log.lower()
Blog
Cerror
D{log
Attempts:
3 left
💡 Hint
Common Mistakes
Using parentheses instead of curly braces causes syntax errors.
Using 'log.lower()' as key instead of 'log' changes the keys unexpectedly.