Sign in to the Microsoft Azure portal.
In the search box, type DevOps, and then select DevOps Starter. Then click on Create DevOps Starter.
By default, DevOps Starter project setup with GitHub. Click on change settings here to change the destination to Azure DevOps and click Don.
Now select the .NET sample application and click Next.
The .NET samples include a choice of either the open-source ASP.NET framework or the cross-platform .NET Core framework. Select the .NET Core application framework. This sample is an ASP.NET Core MVC application. And also, enable Add a database toggle to add the database to the application. When you’re done, choose Next.
Web App on Windows is the default deployment target. You can optionally choose Virtual Machine also. When you’re done, choose Next.
Select your Azure DevOps organization and choose a name for your project and Web app. When you’re done, choose Review + Create.
You can click on Additional Settings if you would like to edit the web app and database parameters.
Once the deployment completes, click Go to the resource.
DevOps project dashboard loads as shown in the below image.
DevOps project
You’re now ready to collaborate with a team on an ASP.NET Core app with a CI/CD process that automatically deploys your latest work to your website.
-
Created a team project with a sample .NET code repository
-
Created a build and release pipelines to compile, test, and deploy the application
-
Created Azure Web App and Azure SQL database in Azure using Azure Pipelines
If Azure Resources are not created, they will be created by CI/CD pipeline. You can track pipeline status in ‘CI/CD pipeline’ section
On the right side of the dashboard, select Browse to view your running application.
The web app looks like as shown in the figure below.