Complete the code to deploy an app using Git in Azure CLI.
az webapp deployment source config --name myApp --resource-group myResourceGroup --[1]The repo-url option specifies the Git repository URL for deployment.
Complete the command to deploy a ZIP package to Azure App Service.
az webapp deployment source config-zip --resource-group myResourceGroup --name myApp --src [1]The --src option expects a ZIP file for deployment.
Fix the error in the Azure DevOps pipeline YAML to trigger on push to main branch.
trigger:
branches:
include:
- [1]The pipeline should trigger on pushes to the main branch.
Fill both blanks to define a CI/CD pipeline step that builds and deploys an app.
- stage: BuildAndDeploy
jobs:
- job: Build
steps:
- script: dotnet build [1]
- script: az webapp deploy --name myApp [2]The build step uses --configuration Release to build the app for release.
The deploy step requires the resource group with --resource-group.
Fill all three blanks to create a dictionary comprehension that filters and transforms deployment logs.
filtered_logs = [1]: log.upper() for log in logs if [2].startswith('[3]')
The dictionary comprehension starts with {log as the key.
We filter logs where log starts with 'error'.