Devops Project
Devops Project
Azure DevOps Starter makes it easy to get started on Azure. It helps you launch your favorite app on the Azure
service of your choice in just a few quick steps from the Azure portal.
DevOps Starter sets up everything you need for developing, deploying, and monitoring your application. You can
use the DevOps Starter dashboard to monitor code commits, builds, and deployments, all from a single view in the
Azure portal.
Azure DevOps Starter presents a simplified process for creating a continuous integration (CI) and continuous
delivery (CD) pipeline to Azure. You can bring your existing code and Git repo, or you can select a sample
application.
You will:
Use DevOps Starter to create a CI/CD pipeline
Configure access to your GitHub repo and choose a framework
Configure Azure DevOps and an Azure subscription
Commit changes to GitHub and automatically deploy them to Azure
Examine the Azure Pipelines CI/CD pipeline
Clean up resources
Prerequisites
An Azure subscription. You can get one free through Visual Studio Dev Essentials.
Access to a GitHub or external Git repo that contains .NET, Java, PHP, Node.js, Python, or static web code.
4. From the drop-down menus, select an application runtime and an application framework , and then
select Next . The application framework dictates the type of Azure service deployment target that's available.
5. Select an Azure ser vice to deploy the application, and then select Next .
5. To see an audit trail of your recent changes for the build, select the Histor y tab. Azure DevOps tracks any
changes made to the build pipeline and allows you to compare versions.
6. Select the Triggers tab. Azure DevOps Projects automatically creates a CI trigger with some default settings.
You can set triggers such as Enable continuous integration to run a build each time you commit a code
change. You can also set triggers to schedule builds to run at specific times.
Clean up resources
When you no longer need Azure App Service and the related resources that you created in this tutorial, you can
delete them. Use the Delete functionality on the DevOps Projects dashboard.
Next steps
When you configured your CI/CD process in this tutorial, you automatically created a build and release pipeline in
Azure DevOps Projects. You can modify these build and release pipelines to meet the needs of your team.
To learn more about the CI/CD pipeline, see:
Define your multi-stage continuous deployment (CD) pipeline
To learn more about application monitoring, see:
What is Azure monitor?
Tutorial: Deploy your ASP.NET app to Azure virtual
machines by using Azure DevOps Starter
4/29/2020 • 8 minutes to read • Edit Online
Azure DevOps Starter presents a simplified experience where you can bring your existing code and Git repo or
choose a sample application to create a continuous integration (CI) and continuous delivery (CD) pipeline to Azure.
DevOps Starter also:
Automatically creates Azure resources, such as a new Azure virtual machine (VM).
Creates and configures a release pipeline in Azure DevOps that includes a build pipeline for CI.
Sets up a release pipeline for CD.
Creates an Azure Application Insights resource for monitoring.
In this tutorial, you will:
Use DevOps Starter to deploy your ASP.NET app
Configure Azure DevOps and an Azure subscription
Examine the CI pipeline
Examine the CD pipeline
Commit changes to Azure Repos and automatically deploy them to Azure
Configure Azure Application Insights monitoring
Clean up resources
Prerequisites
An Azure subscription. You can get one free through Visual Studio Dev Essentials.
3. Select Time range , and then select Last hour . To filter the results, select Update . You can now view all
activity from the last 60 minutes.
4. To exit the time range, select x .
5. Select Aler ts , and then select Add metric aler t .
6. Enter a name for the alert.
7. In the Metric drop-down list, examine the various alert metrics. The default alert is for a ser ver response
time greater than 1 second . You can easily configure a variety of alerts to improve the monitoring
capabilities of your app.
8. Select the Notify via Email owners, contributors, and readers check box. Optionally, you can perform
additional actions when an alert is displayed by executing an Azure logic app.
9. Select OK to create the alert. After a few moments, the alert appears as active on the dashboard.
10. Exit the Aler ts area, and go back to the Application Insights pane.
11. Select Availability , and then select Add test .
12. Enter a test name, and then select Create . A simple ping test is created to verify the availability of your
application. After a few minutes, test results are available, and the Application Insights dashboard displays an
availability status.
Clean up resources
If you are testing, you can avoid accruing billing charges by cleaning up your resources. When they are no longer
needed, you can delete the Azure virtual machine and related resources that you created in this tutorial. To do so,
use the Delete functionality on the DevOps Starter dashboard.
IMPORTANT
The following procedure permanently deletes resources. The Delete functionality destroys the data that's created by the
project in DevOps Starter in both Azure and Azure DevOps, and you will be unable to retrieve it. Use this procedure only
after you've carefully read the prompts.
Next steps
In this tutorial, you learned how to:
Use DevOps Starter to deploy your ASP.NET app
Configure Azure DevOps and an Azure subscription
Examine the CI pipeline
Examine the CD pipeline
Commit changes to Azure Repos and automatically deploy them to Azure
Configure Azure Application Insights monitoring
Clean up resources
To learn more about the CI/CD pipeline, see:
Define your multi-stage continuous deployment (CD) pipeline
Tutorial: Deploy your ASP.NET app and Azure SQL
Database code by using Azure DevOps Starter
9/22/2020 • 8 minutes to read • Edit Online
Azure DevOps Starter presents a simplified experience where you can bring your existing code and Git repo or
choose a sample application to create a continuous integration (CI) and continuous delivery (CD) pipeline to Azure.
DevOps Starter also:
Automatically creates Azure resources, such as a database in Azure SQL Database.
Creates and configures a release pipeline in Azure Pipelines that includes a build pipeline for CI.
Sets up a release pipeline for CD.
Creates an Azure Application Insights resource for monitoring.
In this tutorial, you will:
Use Azure DevOps Starter to deploy your ASP.NET app and Azure SQL Database code
Configure Azure DevOps and an Azure subscription
Examine the CI pipeline
Examine the CD pipeline
Commit changes to Azure Repos and automatically deploy them to Azure
Connect to Azure SQL Database
Clean up resources
Prerequisites
An Azure subscription. You can get one free through Visual Studio Dev Essentials.
Create a project in DevOps Projects for an ASP.NET app and Azure SQL
Database
DevOps Starter creates a CI/CD pipeline in Azure Pipelines. You can create a new Azure DevOps organization or use
an existing organization. DevOps Starter also creates Azure resources, such as Azure SQL Database, in the Azure
subscription of your choice.
1. Sign in to the Azure portal.
2. In the search box, type DevOps Star ter , and then select. Click on Add to create a new one.
3. Select .NET , and then select Next .
4. Under Choose an application framework , select ASP.NET .
5. Select Add a database , and then select Next . The application framework, which you chose in a previous
step, dictates the type of Azure service deployment target that's available here.
6. Select Next .
NOTE
Perform the following step only if you changed the SQL Server password. There is a single password variable.
6. Next to the Value box, select the padlock icon, enter the new password, and then select Save .
7. At the left, select Tasks , and then select your environment. Tasks are the activities that your deployment
process executes, and they are grouped in phases. This release pipeline has a single phase, which contains an
Azure App Service Deploy and Azure SQL Database Deployment task.
8. Select the Execute Azure SQL task, and examine the various properties that are used for the SQL
deployment. Under Deployment Package , the task uses a SQL DACPAC file.
9. At the right, select View releases to display a history of releases.
10. Select the ellipsis (...) next to a release, and then select Open . You can explore several menus, such as a
release summary, associated work items, and tests.
11. Select Commits . This view shows code commits that are associated with this deployment. Compare releases
to view the commit differences between deployments.
12. Select Logs . The logs contain useful information about the deployment process. You can view them both
during and after deployments.
You're now ready to collaborate with a team on your app by using a CI/CD process that automatically deploys your
latest work to your website. Each change to the Git repo starts a build in Azure DevOps, and a CD pipeline executes
a deployment to Azure. Follow the procedure in this section, or use another technique to commit changes to your
repository. The code changes initiate the CI/CD process and automatically deploy your changes to Azure.
1. In the left pane, select Code , and then go to your repository.
2. Go to the SampleWebApplication\Views\Home directory, select the ellipsis (...) next to the Index.cshtml file,
and then select Edit .
3. Make a change to the file, such as adding some text within one of the div tags.
4. At the top right, select Commit , and then select Commit again to push your change. After a few moments, a
build starts in Azure DevOps and a release executes to deploy the changes. Monitor the build status in the
DevOps Starter dashboard or in the browser with your Azure DevOps organization.
5. After the release is completed, refresh your application to verify your changes.
NOTE
If you change your password for the SQL login, you must change the password in the release pipeline variable, as
described in the Examine the CD pipeline section.
Clean up resources
If you are testing, you can avoid accruing billing charges by cleaning up your resources. When they are no longer
needed, you can delete Azure SQL Database and related resources that you created in this tutorial. To do so, use the
Delete functionality on the DevOps Starter dashboard.
IMPORTANT
The following procedure permanently deletes resources. The Delete functionality destroys the data that's created by the
project in DevOps Starter in both Azure and Azure DevOps, and you will be unable to retrieve it. Use this procedure only
after you've carefully read the prompts.
Next steps
You can optionally modify these build and release pipelines to meet the needs of your team. You can also use this
CI/CD pattern as a template for your other pipelines. In this tutorial, you learned how to:
Use Azure DevOps Starter to deploy your ASP.NET app and Azure SQL Database code
Configure Azure DevOps and an Azure subscription
Examine the CI pipeline
Examine the CD pipeline
Commit changes to Azure Repos and automatically deploy them to Azure
Connect to Azure SQL Database
Clean up resources
To learn more about the CI/CD pipeline, see:
Define your multi-stage continuous deployment (CD) pipeline
Videos
Deploy ASP.NET Core apps to Azure Kubernetes
Service with Azure DevOps Starter
4/29/2020 • 7 minutes to read • Edit Online
Azure DevOps Starter presents a simplified experience where you can bring your existing code and Git repo or
choose a sample application to create a continuous integration (CI) and continuous delivery (CD) pipeline to Azure.
DevOps Starter also:
Automatically creates Azure resources, such as Azure Kubernetes Service (AKS).
Creates and configures a release pipeline in Azure DevOps that sets up a build and release pipeline for CI/CD.
Creates an Azure Application Insights resource for monitoring.
Enables Azure Monitor for containers to monitor performance for the container workloads on the AKS cluster
In this tutorial, you will:
Use DevOps Starter to deploy an ASP.NET Core app to AKS
Configure Azure DevOps and an Azure subscription
Examine the AKS cluster
Examine the CI pipeline
Examine the CD pipeline
Commit changes to Git and automatically deploy them to Azure
Clean up resources
Prerequisites
An Azure subscription. You can get one free through Visual Studio Dev Essentials.
You're now ready to collaborate with a team on your app by using a CI/CD process that automatically deploys your
latest work to your website. Each change to the Git repo starts a build in Azure DevOps, and a CD pipeline executes
a deployment to Azure. Follow the procedure in this section, or use another technique to commit changes to your
repo. For example, you can clone the Git repo in your favorite tool or IDE, and then push changes to this repo.
1. In the Azure DevOps menu, select Code > Files , and then go to your repo.
2. Go to the Views\Home directory, select the ellipsis (...) next to the Index.cshtml file, and then select Edit .
3. Make a change to the file, such as adding some text within one of the div tags.
4. At the top right, select Commit , and then select Commit again to push your change. After a few moments, a
build starts in Azure DevOps and a release executes to deploy the changes. Monitor the build status on the
DevOps Starter dashboard or in the browser with your Azure DevOps organization.
5. After the release is completed, refresh your app to verify your changes.
Clean up resources
If you are testing, you can avoid accruing billing charges by cleaning up your resources. When they are no longer
needed, you can delete the AKS cluster and related resources that you created in this tutorial. To do so, use the
Delete functionality on the DevOps Starter dashboard.
IMPORTANT
The following procedure permanently deletes resources. The Delete functionality destroys the data that's created by the
project in DevOps Starter in both Azure and Azure DevOps, and you will be unable to retrieve it. Use this procedure only
after you've carefully read the prompts.
Next steps
You can optionally modify these build and release pipelines to meet the needs of your team. You can also use this
CI/CD pattern as a template for your other pipelines. In this tutorial, you learned how to:
Use DevOps Starter to deploy an ASP.NET Core app to AKS
Configure Azure DevOps and an Azure subscription
Examine the AKS cluster
Examine the CI pipeline
Examine the CD pipeline
Commit changes to Git and automatically deploy them to Azure
Clean up resources
To learn more about using the Kubernetes dashboard, see:
Use the Kubernetes dashboard
Tutorial: Deploy your ASP.NET Core app to Azure
Service Fabric by using Azure DevOps Starter
4/29/2020 • 6 minutes to read • Edit Online
Azure DevOps Starter presents a simplified experience where you can bring your existing code and Git repo or
choose a sample application to create a continuous integration (CI) and continuous delivery (CD) pipeline to Azure.
DevOps Starter also:
Automatically creates Azure resources, such as Azure Service Fabric.
Creates and configures a release pipeline in Azure DevOps that sets up a CI/CD pipeline.
Creates an Azure Application Insights resource for monitoring.
In this tutorial, you will:
Use DevOps Starter to create an ASP.NET Core app and deploy it to Service Fabric
Configure Azure DevOps and an Azure subscription
Examine the CI pipeline
Examine the CD pipeline
Commit changes to Git and automatically deploy to Azure
Clean up resources
Prerequisites
An Azure subscription. You can get one free through Visual Studio Dev Essentials.
You're now ready to collaborate with a team on your app by using a CI/CD process that automatically deploys your
latest work to your website. Each change to the Git repo starts a build, and a release deploys your changes to Azure.
Follow the procedure in this section, or use another technique to commit changes to your repo. For example, you
can clone the Git repo in your favorite tool or IDE, and then push changes to this repo.
1. In the Azure DevOps menu, select Code > Files , and then go to your repo.
2. Go to the Views\Home directory, select the ellipsis (...) next to the Index.cshtml file, and then select Edit .
3. Make a change to the file, such as adding some text within one of the div tags.
4. At the top right, select Commit , and then select Commit again to push your change.
After a few moments, a build starts, and then a release executes to deploy the changes. You can monitor the
build status on the DevOps Starter dashboard or in the browser with Azure DevOps real-time logging.
5. After the release is completed, refresh your app to verify your changes.
Clean up resources
If you are testing, you can avoid accruing billing charges by cleaning up your resources. When they are no longer
needed, you can delete the Azure Service Fabric cluster and related resources that you created in this tutorial. To do
so, use the Delete functionality on the DevOps Starter dashboard.
IMPORTANT
The following procedure permanently deletes resources. The Delete functionality destroys the data that's created by the
project in DevOps Starter in both Azure and Azure DevOps, and you will be unable to retrieve it. Use this procedure only
after you've carefully read the prompts.
Next steps
You can optionally modify the Azure CI/CD pipeline to meet the needs of your team. You can also use this CI/CD
pattern as a template for your other pipelines. In this tutorial, you learned how to:
Use DevOps Starter to create an ASP.NET Core app and deploy it to Service Fabric
Configure Azure DevOps and an Azure subscription
Examine the CI pipeline
Examine the CD pipeline
Commit changes to Git and automatically deploy them to Azure
Clean up resources
To learn more about Service Fabric and microservices, see:
Use a microservices approach for building applications
Deploy Node.js apps powered by Azure Cosmos DB
with DevOps Starter
9/22/2020 • 6 minutes to read • Edit Online
Azure DevOps Starter offers a streamlined experience where you can create a continuous integration (CI) and
continuous deployment (CD) pipeline to Azure. You do this by using your existing code and Git repository (repo) or
by selecting a sample application.
DevOps Starter also:
Automatically creates Azure resources, such as Azure Cosmos DB, Azure Application Insights, Azure App
Service, and App Service plans
Creates and configures a CI/CD release pipeline in Azure DevOps
In this tutorial, you will:
Use DevOps Starter to deploy a Node.js app powered by Azure Cosmos DB
Configure Azure DevOps and an Azure subscription
Examine Azure Cosmos DB
Examine the CI pipeline
Examine the CD pipeline
Commit the changes to Git and automatically deploy them to Azure
Clean up the resources
Prerequisites
You need an Azure subscription, which you can get through Visual Studio Dev Essentials for free.
Azure DevOps Starter supports various application frameworks, such as Express.js , Sample Node.js app ,
and Sail.js . In this tutorial, we use Express.js .
5. Select an Azure service to deploy the application, and then select Next . Your options include Windows Web
App, Azure Kubernetes Service, and Azure Web App for Containers. In this tutorial, we use Windows Web
App .
2. At the right, select Azure Cosmos DB. A pane opens for Azure Cosmos DB. From this view, you can perform
various actions, such as monitoring operations and searching logs.
3. Select Edit . In this pane, you can examine the various tasks for your build pipeline. The build performs
various tasks, such as fetching source code from the Git repo, building the application, running unit tests,
and publishing outputs that are used for deployments.
4. Select Triggers . DevOps Starter automatically creates a CI trigger, and every commit to the repo starts a
new build. You can choose to include or exclude branches from the CI process.
5. Select Retention . Depending on your scenario, you can specify policies to keep or remove a certain number
of builds.
6. At the top of the build pipeline, select the build pipeline name.
7. Change the name of your build pipeline to something more descriptive, and then select Save from the Save
& queue dropdown.
8. Under your build pipeline name, select Histor y . This pane displays an audit trail of your recent changes for
the build. Azure DevOps keeps track of any changes made to the build pipeline, and it allows you to compare
versions.
You're now ready to collaborate with a team on your app by using a CI/CD process that deploys your latest work to
your App Service. Each change to the Git repo starts a build in Azure DevOps, and a CD pipeline executes a
deployment to Azure. Follow the procedure in this section, or use another technique to commit changes to your
repo. For example, you can clone the Git repo in your favorite tool or IDE, and then push changes to this repo.
1. In the Azure DevOps menu, select Repos and then Files . Then go to your repo.
2. The repo already contains code based on the application language that you chose in the creation process.
Open the Application/views/index.pug file.
3. Select Edit , and then make a change to line number 15 . For example, you can change it to "My First
deployment to Azure App Service powered by Azure Cosmos DB."
4. In the upper-right corner, select Commit , and then select Commit again to push your change.
After a few seconds, a build starts in Azure DevOps and a release executes to deploy the changes. Monitor
the build status on the DevOps Starter dashboard or in the browser with your Azure DevOps organization.
Clean up resources
Delete the related resources you've created when you don't need them anymore. Use the Delete functionality on
the DevOps Starter dashboard.
Next steps
You can modify these build and release pipelines to meet the needs of your team. You can also use this CI/CD
pattern as a template for your other pipelines. In this tutorial, you learned how to:
Use DevOps Starter to deploy a Node.js app powered by Azure Cosmos DB
Configure Azure DevOps and an Azure subscription
Examine Azure Cosmos DB
Examine the CI pipeline
Examine the CD pipeline
Commit changes to Git and automatically deploy them to Azure
Clean up resources
See Define your multi-stage continuous deployment (CD) pipeline for more information and next steps.
Deploy to Azure Functions with DevOps Starter
9/22/2020 • 6 minutes to read • Edit Online
Azure DevOps Starter presents a simplified experience where you can bring your existing code and Git repo or
choose a sample application to create a continuous integration (CI) and continuous delivery (CD) pipeline to Azure.
DevOps Starter also:
Automatically creates Azure resources, such as Azure Functions
Creates and configures a release pipeline in Azure DevOps for CI/CD
In this tutorial, you will:
Use DevOps Starter to deploy an ASP.NET app to Azure Function
Configure Azure DevOps and an Azure subscription
Examine the Azure Function
Examine the CI pipeline
Examine the CD pipeline
Commit changes to Git and automatically deploy them to Azure
Clean up resources
Currently the supported runtimes for functions are .NET and Node.js . We use. NET runtime for this tutorial to
deploy to Azure Functions.
Prerequisites
An Azure subscription. You can get one free through Visual Studio Dev Essentials
You're now ready to collaborate with a team on your app by using a CI/CD process that automatically deploys your
latest work to your Azure Function. Each change to the Git repo starts a build in Azure DevOps, and a CD pipeline
executes a deployment to Azure. Follow the procedure in this section, or use another technique to commit changes
to your repo. For example, you can clone the Git repo in your favorite tool or IDE, and then push changes to this
repo.
1. In the Azure DevOps menu, select Repos | Files , and then go to your repo.
2. The repository already contains code called SampleFunctionApp based on the application language that
you chose in the creation process. Open the Application/SampleFunctionApp/Function1.cs file.
3. Select Edit , and then make a change to line number 31 . For example, you can update it to Hello there!
Welcome to Azure Functions using DevOps Star ter
4. At the top right, select Commit , and then select Commit again to push your change.
5. Open the Application/SampleFunctionApp.Test/Function1TestRunner.cs file.
6. Select Edit , and then make a change to line number 21 . For example, you can update it to Hello there!
Welcome to Azure Functions using Azure DevOps Star ter .
After a few moments, a build starts in Azure DevOps and a release executes to deploy the changes. Monitor
the build status on the DevOps Starter dashboard or in the browser with your Azure DevOps organization.
Clean up resources
You can delete the related resources that you created when you don't need them anymore. Use the Delete
functionality on the DevOps Starter dashboard.
Next steps
You can optionally modify these build and release pipelines to meet the needs of your team. You can also use this
CI/CD pattern as a template for your other pipelines. In this tutorial, you learned how to:
Use DevOps Starter to deploy an ASP.NET Core app to Azure Function
Configure Azure DevOps and an Azure subscription
Examine the Azure Function
Examine the CI pipeline
Examine the CD pipeline
Commit changes to Git and automatically deploy them to Azure
Clean up resources