MicrosoftLearning / AZ400-DesigningandImplementingMicrosoftDevOpsSolutions

AZ-400 Course Repository for Labs and Demos.
https://microsoftlearning.github.io/AZ400-DesigningandImplementingMicrosoftDevOpsSolutions/
MIT License
540 stars 1k forks source link

M02-Configure Pipelines as Code with YAML: Deployment task fails #583

Closed mkennten closed 3 months ago

mkennten commented 3 months ago

Contact Details

mkennten@microsoft.com

What happened?

Exercise : 01 Task: 02 Step: 14

Description of issue: When using DownloadBuildArtifacts@0 the task AzureRmWebAppDeployment@4 fails with the following message:

Changing the version to 1 without any other change lets the task run successfully and the stage completes.

Note1: this happened to several learners in this exercise - when one adds the task from the library the version should be automatically set to 1. Maybe then the 0 in the YAML snippet is confusing people and they change it to 0. Either way, there must be an explanation why this isn't working with version 0. But anyway, please change the version to 1.

Note2: the program group recommends using Download Pipeline Artifacts and Publish Pipeline Artifacts for faster performance. Maybe this should be updated in the instructions afterall.

https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/download-build-artifacts-v1?view=azure-pipelines

Lab

Configuring pipelines as code with YAML

Relevant screenshots

image

Do you want to help us? 👏