Author : MD TAREQ HASSAN
Introduction
- DevOps Starter automates the setup of an entire continuous integration (CI) and continuous delivery (CD) for application to Azure
- DevOps Starter does all the work for the initial configuration of a DevOps pipeline
- setting up the initial Git repository
- configuring the CI/CD pipeline
- creating an Application Insights for monitoring
- dashboard in the Azure portal
- Existing code or one of the provided sample applications can be used to start with
- Application can be deployed quickly to various Azure services such as App Service, Service Fabric, Azure Kubernetes Services(AKS) etc.
- Links:
Notes:
- DevOps Starter starts DevOps infrastructures from Azure Portal
- DevOps Project (created by DevOps Starter) will linked to Azure Portal
- In Azure Portal, DevOps Project is of type ‘DevOps Starter’ (will belong to a dedicated resource group)
Usage
- Best practices: view and understand how to properly set up a CI/CD workflow or pipeline
- Automatic setup: automating the setup of a CI/CD workflow or pipeline
- Quick depolyment: Quickly deploy your application to Azure
- Customize the release pipelines based on your specific scenarios
Create new application
- Go to: https://portal.azure.com/#allservices
- Search “Devops” > DevOps Starter > “+ Add”
- Select .NET > Next
- Choose an application framework: “ASP.NET Core” > Next
- Select an Azure service to deploy the application: “Windows Web App” > Next
- Fill up followings:
- Project name
- DevOps organization
- Subscription
- Web app name
- Location
- Done
Created resources by create new application
- In Azure Portal:
- A resource group will be created for following resources
- App service plan
- App service
- Application insights
- A seperate (dedicated) resource group (named
VstsRG-<DevOpsOrganizationName>-xxx
) will be created for DevOps Project of type ‘DevOps Starter’
- A resource group will be created for following resources
- In Azure DevOps:
- A project will be created
- A repository will be created
- Repository will have sample application
- CI, CD pipelines will be created
- Note: create organization in Azure DevOps before using ‘DevOps Starter’
Created resources in Azure Portal
Created Project, Repository and Pipelines in Azure DevOps
Start with existing application
Organization and project can be created beforehand or on the fly:
Integrating Github:
- https://docs.microsoft.com/en-us/azure/devops-project/azure-devops-project-github
- There will be no repository in Azure DevOps (because code will be pulled from Github)
- Each change to the GitHub repo starts a build in Azure DevOps, and a CD pipeline runs a deployment to Azure
DevOps Starter:
- Go to: DevOps Starter > “+ Add”
- Select (or start with your application) ‘Bring your own code’ > Next
- Set followings:
- Repository (for Github, Bitbucket authorization will be handled, for other Git either make repository public or give id, password)
- Repository URL
- Branch
- Next
- Set Application runtime and application framework > Next
- Select an Azure service > Next
- Set Project name, Web App name, Select organization and subscription > additional setting (resource group, pricing and app insight location)
Accessing DevOps Starter in Azure portal
- Go to: All services > Search “DevOps Starter” > Select DevOps Starter resource
- Go to: Resource groups > Select the Resource Groups where DevOps Starter resource belongs > Select DevOps Starter resource