MicrosoftLearning / AZ400-DesigningandImplementingMicrosoftDevOpsSolutions

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

Multiple Labs: Labs should explicitly set the default branch when importing eShopOnWeb #585

Closed rob-foulkrod closed 1 week ago

rob-foulkrod commented 1 week ago

Contact Details

robfoulkrod@microsoft.com

What should we change?

After importing eShopOnWeb, DevOps sets the default branch implicitly, often choosing a Dependabot branch, which makes labs difficult for learners. We should add steps to the lab to set the default branch as main explicitly. This step is already in labs such as the feature flag lab and should be propagated thru the rest of the labs.

Lab

Other

Relevant screenshots

Example:

Task 2: (skip if done) Import eShopOnWeb Git Repository

In this task you will import the eShopOnWeb Git repository that will be used by several labs.

  1. On your lab computer, in a browser window open your Azure DevOps organization and the previously created eShopOnWeb project. Click on Repos>Files , Import. On the Import a Git Repository window, paste the following URL https://github.com/MicrosoftLearning/eShopOnWeb.git and click on Import:

  2. The repository is organized the following way:

    • .ado folder contains Azure DevOps YAML pipelines.
    • .devcontainer folder container setup to develop using containers (either locally in VS Code or GitHub Codespaces).
    • infra folder contains Bicep&ARM infrastructure as code templates used in some lab scenarios.
    • .github folder container YAML GitHub workflow definitions.
    • src folder contains the .NET 8 website used on the lab scenarios.

Task 3: (skip if done) Set main branch as default branch

  1. Go to Repos>Branches.
  2. Hover on the main branch then click the ellipsis on the right of the column.
  3. Click on Set as default branch.

Task 3 should be standard in the import process