Setting up an Azure DevOps pipeline is great for .NET projects, as we can setup continuous integration (CI) and continuous deployment (CD) in Azure.
It's also the same project that is used with our pipeline videos.
This is the software that will need to be installed onto your machine.
These are the steps to get the application working.
You are now ready to go.
If you wish to look at the solution, open up
RoundTheCode.AzureTestProject.sln in Visual Studio 2022.
Start the project in Visual Studio.
The application will run on
https://localhost:9001. Navigating to that link will display the Swagger documentation. There is one API endpoint that can be ran.
There are also unit tests provided with the solution if you wish to run them.
With Azure DevOps, you'll have to host the code with your own source control hosting service. You can do that by either forking the repo into your own GitHub account, or pushing the repo to another source control hosting service, like BitBucket.
From there, you will need to give your Azure DevOps account authorisation to your source control hosting service so it is able to access the repo.
The build pipeline YAML file (saved as
azure-pipelines.yml), and the release pipeline YAML file (saved as
azure-pipelines-1.yml), are available in the repo's root.
As there is already a
azure-pipelines-1.yml files in the repo, it will automatically pick these files up when creating your first pipeline in Azure Pipelines. If you wish to create the YAML file from scratch, you will need to delete these files from your repo.