Skip to main content

Azure DevOps

Hands-on Lab Script - Part 1

Create Project / Application sampleโ€‹

Use Azure DevOps Starter https://portal.azure.com/#blade/HubsExtension/BrowseResource/resourceType/microsoft.visualstudio%2Faccount%2Fproject

  • Select Create DevOps Starter

  • If you see the message on screen "Setting up DevOps starter with GitHub, change settings here" - click on link and change to use Azure DevOps

  • Create a .NET project ... suggest use Windows AppService F1 free tier
    • Choose .NET | [Next]
    • Choose ASP.NET Core | [Next]
    • Choose Windows Wep App | [Next]
    • Enter details - webapp name must be unique, use local regions
    • Use the [Additional Settings] - select F1 free tier
    • [Done]

When the project has been provisioned, the following has happenend:

  • a sample application is stored in a Azure DevOps repo
  • infrastructure as code ARM template is stored in the same Azure DevOps repo (different top level folder)
  • build and release pipelines are generated, and invoked
  • an Azure DevOps Project dashboard is generated.

Note on the Azure DevOps Project dashboard links to the AzureDevs homepage, repos, pipelines and boards.

The website has been deployed on Azure App Service

Build Pipelines - Automated Testingโ€‹

Also note on the Azure DevOps Project dashboard that the pipelines did some automated testing.

In the Build pipeline there was one unit test executed and this passed successfully.

Release Pipelines - Automated Testingโ€‹

Also in the Release pipeline, there was one functional test executed and this passed successfully.

Amend Pipelinesโ€‹

Make the following change to the Release pipeline ... this will be useful later.

  • Select [Edit]

  • Select [Options]

  • Enable the Integrations :

    • Report deployment status to the repository host
    • Report deployment status to Work
    • Report deployment status to Boards
    • Enable the deployment status badge
  • [Save]

Create WorkItemsโ€‹

Next we will create a User Story with two Tasks and two Test Cases.

  • Go to WorkItems
  • Create Story

  • Go to Boards

  • Create two tasks:

  • Create two test cases:

  • Move story to Active

  • Goto Backlogs
  • Move story to iteraction 1

  • On the iteration, click Set Dates and allocate a three week period

Add .NET SDKโ€‹

It is possible to amend the version of .NET used. This is not currently required for the lab - but may be needed if things change.

Summaryโ€‹

In this section we created our DevOps project and set up some work items.

In the next section we shall take on the persona of a developer, and make some code changes that relate to the work items.