Pull down to refresh

Azure DevOps Complete Zero to Hero Guide

date
Apr 29, 2024
slug
azure-devops-hero-to-zero-guide
author
status
Public
tags
CI/CD
DevOps
Azure DevOps
Guide
summary
Azure DevOps is a suite of services you can implement end-to-end DevOps in your organization. It includes services such as Azure Repos, Boards, Wiki, Build and Release pipelines, Test plans, Artifacts, etc.,
type
Post
thumbnail
azure-devops-banner.png
category
๐Ÿ“ข DevOps Blogs
updatedAt
Apr 29, 2024 04:32 AM

Intoduction:

Azure DevOps is a suite of services you can implement end-to-end DevOps in your organization. It includes services such as Azure Repos, Boards, Wiki, Build and Release pipelines, Test plans, Artifacts, etc.,
Azure DevOps Link โ€”ย https://dev.azure.com
notion image
Logically separate the projects
Azure DevOps includes the following services:
  • Azure Boards:ย A project management tool that assists teams in planning, tracking, and discussing work.
  • Azure Pipelines:ย A continuous integration/continuous delivery (CI/CD) platform that automates software development, testing, and deployment.
  • Azure Repos:ย A Git repository hosting service that offers code version control.
  • Azure Artifacts:ย A centralized storage and management system for software artifacts such as NuGet packages and Docker images.
  • Azure Test Plans:ย A test management solution that assists teams in planning, executing, and analyzing tests.
  • Azure Security Center:ย A security management tool that assists teams in identifying and mitigating security threats.
Charges are based on the number of users and build and deployment agents you purchased during the month, plus the actual usage of other services that were used.
In the basic plan, you will get the first 5 users free of cost with all the services within certain limits except the Azure test plan, for which you need a Basic+Test plan subscription.
Two types of services provide
  1. Azure DevOps Services โ€” Cloud offering
  1. Azure DevOps Server โ€” On-Premises implentation (or) Own data centre
notion image
Service limit applicable to these plans
notion image
The Visual Studio IDE is a creative launching pad that you can use to edit, debug, and build code, and then publish an app.
notion image
How to create a project
notion image
If you have any project side โ†’ Look bottom left side โ†’ Click Project setting you need to change.
notion image

Azure Boards

Azure Boards is a service for managing the work for your software projects. Teams need tools that flex and grow.
notion image
Azure Boards
Azure Boards does just that, brining you a rich set of capabilities including native support for Scrum and Kanban, customizable dashboards, and integrated reporting. Here you are aided by three work item types:
  • Epics
  • Issues
  • Tasks
notion image
Also as the work gets completed the status gets updated stage by stage from:
  • To Do
  • Doing
  • Done
Here is the image below depicting the same
notion image
Each time we create or add an issue, task or an epic, it means we are creating a work item.
Useful links below, hope it helps.
Choose a processย โ† Process
Agile workflowย โ† Agile
CMMI workflowย โ† CMMI
Agileย is an iterative approach to project management and software development that helps teams deliver value to their customers faster and with fewer headaches.
The Capability Maturity Model Integration (CMMI) is a model that helps organizations to: Effectuate process improvement. Develop behaviors that decrease risks in service, product, and software development

Azure Boards Processes

  1. Basic: Choose Basic when your team wants the simplest model that uses Issues, Tasks, and Epics to track work.
  1. Agile: Methodology is a way to manage a project by breaking it up into several phases.
  1. Scrum: Framework for creating and maintaining a consistent rate of work for complex projects.
  1. CMMI: Structured collection of best practices in engineering, service delivery and management, which aims to assist companies improve their ability to deliver customer satisfaction through an ever increasing understanding of their capabilities.
notion image
The basic process contains three work item types:
  • Epics: Group your more significant items into Epics such as Website updates, Cloud migration, CICD implementation
  • Issues: Further divide your Epics into Issues such as Homepage, about us page, secure sign-in
  • Task: Tasks are the smallest amount of work that can be assigned to someone, for example, designing a homepage header, standardizing fonts, and fixing the homepage CSS to make it mobile responsive.
Read moreย โ† Azure Boards

Defining Teams and Work Items

What is a Work Item:

A work item can track all types of activities. It could be a
  • Task to do
  • A bug to fix,
  • An issue or anything that we can assign to people and keep track of the progress.
notion image

Kanban Board

Kanbanย is a visual system for managing work as it moves through a process. Kanbanvisualizes both the process (the workflow) and the actual work passing through that process.
Kanban has two significant elements namely:
  1. Cards
  1. Boards
The board can beย physical, but the software team has a preference towardsย virtual boardย as this could be easily accessed from various locations and thus makes the team collaboration more proficient.
Usually, the board can be split into three sections namely:
  1. To-Do
  1. In Progress
  1. Done
Basic principles associated with the Kanban process
  1. Visualize the workflow
  1. Limit work in progress
  1. Managing the workflow
  1. Make explicit process policies
  1. Implement feedback loops
  1. Continuous Improvement

Hands-On

Create a new project
notion image
Click left side Boards โ†’ Boards
notion image
This is a todo list template or notion template and this a board view.
notion image
Swithch on the view as backlog. Using create a workitem and list over here.
notion image
Lets go to the board view and lets try to add the work items.
notion image
Two types of workitem here
  1. Epics
  1. Issues
Create a workitem
notion image
Click on the workitem it will be expand. So you can add more details
notion image
Created a first workitem which is to-do state
notion image
Create a new issues workitem and add to the task
notion image
Expand the website homepage workitems. Add a description after save and close.
notion image
Click the particular task add the activity
notion image
Lets move to the workitem the task is complete.
notion image
We will go the advanced concept โ†’ Scrum
Go to this link โ†’ย https://azuredevopsdemogenerator.azurewebsites.net/ย โ†’ Sign In
Generates from dummy data in our project.
notion image
Create a new project โ†’ Select a template & Organization
notion image
How to check the project created or not? Go to the organization the project showing
notion image
Make some changes in project setting
notion image
Create a new team
notion image
Open the PUL-Web after click iteration and access paths
notion image
Go to iteration tab and add to the sprint
notion image
notion image
Go to my dashboard โ†’ Click Overview
notion image
Create a new workitems add sprint2
notion image
notion image
Go to boards โ†’ work items. If you have check the workitems created or not?
notion image
notion image
Add to the child work items
notion image
notion image
notion image
Go to the boars โ†’ My team boards โ†’ PUL-Web boards
notion image
Change the features state โ†’ Add Product Backlog Item
notion image
notion image
Go to the View as backlog you can approve the separate features and assign to the task particular members.
notion image
notion image
Click view as backlog โ†’ to create a task another way
notion image
notion image
Sprint means a fixed period of time during which the team commit and work towards a fixed goal which does not change.
notion image
There is no changes in particular project
notion image
So if you change the project
notion image
Now you add itetation. Go to Project setting โ†’ Team Configuration โ†’ Iterations
notion image
It shows the sprints
notion image
Assign to someone โ†’ Sometask
notion image
Capacity โ†’ adjust the team planning
notion image
Goto the taskboard
notion image
Modify the task the working hours automatically change
notion image
Or let move to the another sprint in particular tasks
notion image
notion image
Lets check the sprint 3
notion image
Easily identify the some color technique. Go to setting
notion image
Go and check the development the color will be change
notion image
Changed the p1 issue show the red color
notion image
notion image
I change the priority select 1 color will automatically change
notion image
Other setting will be change โ†’ tag color
notion image
Add tag
notion image
The automatically change the data tag
notion image
One more column add in work items
notion image
notion image
Split the column
notion image
Swimlanes โ†’ Track the more items
notion image
notion image
Now check the another work item
notion image
notion image

How to create a Custom dashboard

Dashboards โ†’ New dashboard
notion image
notion image
Add a Widget โ†’ Sprint Overview โ†’ Click Configure
notion image
Add another widget โ†’ Sprint Capacity โ†’ Select the team โ†’ PUL Web
notion image
Goto boards โ†’ queries โ†’ New query โ†’ Create a custom query
notion image
notion image
Add Charts โ†’ New
notion image
Save all โ†’ Click save as
notion image
Shared queries โ†’ Queries shared across the board.
Goto chart โ†’ Add new chart โ†’ Assigned to โ†’ Save
notion image
Add to dashboard
notion image
The chart is added to dashboards
notion image
Click Edit button โ†’ Chart for Work Items โ†’ Add
notion image
notion image
Click Configure
notion image
Customize the team process
Goto Organization setting โ†’ Process โ†’ Scrum โ†’ Create inherited process
notion image
Create a process
notion image
Click the Customized Scrum โ†’ Product Backlog Item
notion image
Add โ†’ New field โ†’ Click Add field
notion image
Go to All processes โ†’ Scrum โ†’ Projects โ†’ Parts Unlimited โ†’ Change Process
notion image
Save โ€” Customized Scrum
notion image
Go to our project โ†’ Parts Unlimited โ†’ Boards โ†’ Work Items
notion image
The Ticket ID has been created
notion image
If you create a new project the work item process show the customized processโ€ฆ.
notion image
Thanks for readingโ€ฆI hope it would be more helpful for understand the Azure Boards.!

Azure Pipelines

Azure Pipelines automatically builds and tests code projects. It supports all major languages and project types and combines continuous integration, continuous delivery, and continuous testing to build, test, and deliver your code to any destination.
An Azure SPN is a security identity used by user-created applications, services, and automation tools to access specific Azure resources.
This access is restricted by the roles assigned to the service principal, giving you control over which resources can be accessed and at which level.
The service principal name (SPN) is the name that a client uses to identify a service for mutual authentication.
notion image
Go to the azure devops portal create a new project
notion image
Go to the azure repo copy the code
notion image
Paste the location of the folder terminal
notion image
Check the code is update for azure repo
git remote show origin
notion image
Not update the remote repository remove that and again add to the azure devops remote repo.
git remote remove origin git remote add origin https://Ibrahimsi909@dev.azure.com/Ibrahimsi909/Youtube%20Clone/_git/Youtube%20Clone git push -u origin --all
notion image
Check devops portal the code is updated?
notion image

Create a webapp from azure portal

Azure App Services is a platform for building, deploying, and scaling web applications and services. It offers a variety of services, each with its own unique capabilities and use cases.
Azure App Service is an HTTP-based service for hosting web applications, REST APIs, and mobile back ends. You can develop in your favorite language, be it . NET, . NET Core, Java, Node. js, PHP, and Python.
Go to โ†’ weapp โ†’ Create a webapp
notion image
notion image
Once created a webapp the website is ready
notion image
Check the default domainย ibrahimsi.azurewebsites.net
notion image

Create a Pipeline

Go to pipeline โ†’ Create a pipeline โ†’ Click classic editor
notion image
Select Azure Repos Git โ†’ Select repo โ†’ Click Continue
notion image
Select a template click Empty job
notion image
Add another agent
notion image
Add the agent
  1. npm install
  1. npm build
  1. Publish artifact
  1. Azure app service deploy
notion image
notion image
notion image
notion image
notion image
4 Task are set remaining variable,trigger see on later release handson. Click save and queue.
notion image
Finally save the pipeline
notion image
If you faced problem some error
โ€œError: No hosted parallelism has been purchased or granted. To request a free parallelism grantโ€
notion image
Follow the below steps:
notion image
Finally run the pipeline
notion image
notion image
Click the URL the page redirect but the same default homepage
notion image
Why?
Default enable the cache in app services disable it now.
Go to azure portal โ†’ Webapp โ†’ Configuration โ†’ Finally save the setting
notion image
Restart the webservice application. Again hit the URLย https://ibrahimsi.azurewebsites.net/
notion image
Successfully hosted the applicationsโ€ฆ
Export to pipeline
notion image
notion image
YAML code

Another way to create a pipeline

Pipeline โ†’ New pipeline โ†’ Azure repos git โ†’ You tube Clone โ†’ Starter pipeline โ†’ Save and run
notion image
notion image
trigger: - main stages: - stage: Build jobs: - job: Build pool: vmImage: 'ubuntu-latest' steps: - task: Npm@1 inputs: command: 'install' - task: Npm@1 inputs: command: 'custom' customCommand: 'run build' - task: PublishBuildArtifacts@1 inputs: PathtoPublish: 'build' ArtifactName: 'drop' publishLocation: 'Container' - stage: Deploy jobs: - job: Deploy pool: vmImage: 'ubuntu-latest' steps: - task: DownloadBuildArtifacts@1 inputs: buildType: 'current' downloadType: 'single' artifactName: 'drop' downloadPath: '$(System.ArtifactsDirectory)' - task: AzureRmWebAppDeployment@4 inputs: ConnectionType: 'AzureRM' azureSubscription: 'f2d858b2-0b52-4d8e-a750-adae9358c49a' appType: 'webAppLinux' WebAppName: 'ibrahimsi' packageForLinux: '$(System.ArtifactsDirectory)/drop' RuntimeStack: 'STATICSITE|1.0'
Finally run the code
notion image
Successfully completed the job
notion image
notion image
Rehit the URL
notion image

Azure Repos

Azure Repos is a set ofย version control toolsย that you can use to manage your code. Whether you work with a team or independently, Azure Repos providesย Git repositoriesย (or)ย Team Foundation Version Controlย (TFVC) for source control of your code.
ย 
notion image
Itโ€™s integrated with Azure DevOps, a suite of tools thatย cover the entire software development lifecycle, from planning and project management to CI/CD and monitoring.
notion image
Azure Repos supports two types of Version Control:
  • Git
  • TFVC ( Team Foundation Version Control)
notion image
Git
Gitย is a version control system that lets you manage and keep track of your source code history.ย GitHubย is a cloud-based hosting service that lets you manage Git repositories.
More Git ๐Ÿ‘‰ย Click the link
TFVC
Team Foundation Version Control (TFVC)ย is aย centralizedย version control system. Typically, team members have only one version of each file on their dev machines. Historical data is maintainedย only on the server. Branches are path-based and created on the server.
Configure the VSCode Git client using
git config --global credential.helper wincred git config --global user.name "Ibrahim S" git config --global user.email Ibrahimsi909@hotmail.com
notion image
Goto the last projectย PartsUnlimited
Repos โ†’ Files โ†’ Clone โ†’ Clone in VS Code
notion image
Clone the repository on VS Code
notion image
PartsUnlimited repository cloned successfully let make the changes to source code
notion image
Save & Commit the code
notion image
Finally sync the code to remote repository
notion image
Go to the azure devops the code is commit or not?
notion image
If you get the old code go to the previous commit code and you clone (or) download the old code
notion image
Branchย is an independent line of development. It works as aย pointerย to your next commits. Whenever a new branch is created, Git creates a new pointer while keeping the original code base untouched.
Branch is a pointer to one specific commit, while a commit is a snapshot of your repository at a specific point in time
Five types of branches, each with different roles:
  • Main branch.
  • Feature branch (i.e., Topic branch)
  • Release branch.
  • Hotfix branch.
  • Develop branch (i.e., Integration branch)
notion image
Aย local branchย exists only on your local machine. All the changes you introduce and commit to your local repository are stored only on your local system. Create a branch using the below command.
git branch <branchname> git checkout -b <branchname> git branch <branchname> <tag> git branch <branchname> <commit id>
Remote branchesย are how developers collaborate on the same project simultaneously. A remote branch exists in a remote repository (most commonly referred to as origin by convention) and is hosted on a platform such as GitHub.
git remote -v git remote add origin git@github.com:github URL git push origin master
notion image
โ€œOriginโ€ย remote refers to the default remote repository that is created when a Git repository is cloned. This remote repository is typically the central repository that is used to share changes and collaborate with other developers.
Find out the branch.
notion image
Create a new branch and switch out the new one.
notion image
Created a branch in azure repo
notion image
Git pullย copies changes from a remote repository directly into your working directory.
Git fetchย command only copies changes into your local Git repo.
Locking a branch will make the branch read-only and ensures that no commits can be made to the branch.
Locking a branch prevents other users from changing the existing commit history.
Tagsย in git are valuable for marking significant points in your projectโ€™s history, documenting releases, and providing a clear reference for important milestones.
Pull Requestsย are specific requests to merge changes from one branch into another.

Azure Artifacts

Azure Artifacts enables developers to efficiently manage all their dependencies from one place. With Azure Artifacts, developers can publish packages to their feeds and share them within their team, across organizations, and even publicly across the internet.
notion image
Azure Artifacts if you need to share packages within the same team, across organizations, or even publicly.
Create a new project
notion image
Go to azure repository โ†’ Import a repository
notion image
Successfully imported
notion image
Create a Webapp in Azure portal
App Services โ†’ Create โ†’ Web App
notion image
Modify the configuration setting
Note: You must set the app settings as below to disable all file caching:
notion image
Add 2 New application setting
Name: WEBSITE_DYNAMIC_CACHE Value: 0
notion image
Name: WEBSITE_ENABLE_SYNC_UPDATE_SITE Value: never
notion image
Save the changes
notion image
If you click the URL the page is goes to default web page
notion image
Default web page is running on Azure
notion image

Create a new pipeline

Set of automated processes and tools that allows both developers and operations professionals to work cohesively to build and deploy code to a production environment.
Create Pipeline โ†’ Azure Repos Git โ†’ Day7_Artifacts โ†’ Starter Pipeline
trigger: - main stages: - stage: Build jobs: - job: Build pool: vmImage: 'ubuntu-latest' steps: - task: Npm@1 inputs: command: 'custom' customCommand: 'install -D tailwindcss postcss autoprefixer' - task: Npm@1 inputs: command: 'custom' customCommand: 'run build'
Organizational constructs that allow you to store, manage, and group your packages and control who to share it with.
Letโ€™s Create a artifacts feed
notion image
Created
notion image
Again goto the pipelines click show assistant
notion image
npm stands for Node Package Manager. Itโ€™s a library and registry for JavaScript software packages.
Add NPM
notion image
Add NPM the code automatically add to the pipelines
trigger: - main stages: - stage: Build jobs: - job: Build pool: vmImage: 'ubuntu-latest' steps: - task: Npm@1 inputs: command: 'custom' customCommand: 'install -D tailwindcss postcss autoprefixer' - task: Npm@1 inputs: command: 'custom' customCommand: 'run build' - task: Npm@1 inputs: command: 'publish' workingDir: './dist' publishRegistry: 'useFeed' publishFeed: '515a2edb-27f5-416f-88c0-0c50138edec1/336630b1-903f-4ae3-88c6-69149d01550e'
Pipeline Code
notion image
Finally save the run Got some error
notion image
Goto azure artifacts given to the contributor access
Click the Feed Settings
notion image
Remove the old one
notion image
Add the โ†’ย contributorย permission
Enables users to manage personal views, edit items and user information, delete versions in existing lists and document libraries and add, remove, and update personal Web Parts.
notion image
Again run the pipeline. Change the version 1.3
notion image
Automatically trigger the pipeline
notion image
Goto the azure feed
notion image

Create a release pipeline

A Release Pipeline consumes the Artifacts and conducts follow-up actions within a multi-staging system.
Release pipeline is a process to ship committed code into production by incorporating CI/CD, automated testing, and finally, software release.
Pipelines โ†’ Releases โ†’ New Pipeline โ†’ Select โ†’ Azure App Service deployment
notion image
Given to the name โ†’ Deployment
notion image
Click Add an artifact โ†’ Azure artifacts
notion image
Enable the continuous deployment trigger
A trigger consists of a specified component, deployment process, and user.
notion image
Enter the stage name and select the subscription, Service nameโ€ฆ
notion image
Select the azure pipelines on agent pool.
An agent is a service that runs the jobs defined in your pipeline. The execution of these jobs can occur directly on the agentโ€™s host machine or in containers.
notion image
Deploy Azure App Service
Added to the some script on app service.
cp -rf /home/site/wwwroot/package/* /home/site/wwwroot/
notion image
Save the all setting. Check the release pipelines there is no create
notion image
Goto azure artifact promote artifactory
notion image
Pre-release means software, online services, and additional products and features that are provided for preview, beta, (or) early access versions. Click that Prerelease
notion image
Check the release pipeline
notion image
Deploy the stages
notion image
Job is completed
notion image
Check the URL
notion image
KUDU Console is a debugging service for Azure platform which allows you to explore your web app and surf the bugs present on it, like deployment logs, memory dump, and uploading files to your web app, and adding JSON endpoints to your web appsโ€ฆ
Kudu gives you helpful information about your App Service app, Such as App settings. Connection strings. Environment variables.
Diagnostic and troubleshooting purposes when your function or function host fails.
notion image
Redirect the console
notion image
Click an SSH you should able to the access in web app
notion image
File created before 10 minutes

Azure Test Plans

Azure Test Plans is a test management module within Azure DevOps that lets users manage test plans, test suites, and test cases for everyone in the software development process.
notion image
Using test plans, you can Azure Test Plans also provides a browser extension for exploratory testing and gathering feedback from stakeholders.
Activate the azure test plan trial period enableย Organization + User side
notion image
User level change
notion image
notion image
Changes made
notion image
notion image

Access level

  • You should haveย Basic + test planย access to execute, create, and publish test cases
  • To execute theย test cases using Test Runner, you should have at least basic access
  • Toย run exploratory testing with the Feedback extension, you should have stakeholder access
notion image
Create a Plan
notion image
C
notion image
A test suite is a set of tests designed toย check the functionality and performance of the software. It collects individual test cases based on their specific purpose or characteristics.
The Azure Test Plans contain andย configure test suites and individual test cases. Test suites are the collection of test cases. So, when you create a test plan, you must create test suites within it. Three types of test suitesโ€ฆ
  • Static-based: You can use these test cases to group out other test suites or test cases.
  • Requirement based:ย These test suites are the basic test suites. They pull all the test cases for a given requirement.
  • Query based:ย these test suites pull a group of test cases from your project as per the requirement.
notion image
Create some dummy data for azure test plan
Azure Bioards โ†’ Create a new work item โ†’ Epic
notion image
Save the Epic
notion image
Go to the azure boards โ†’ Select Epic
notion image
Change the name Testing instead of UI Testing
notion image
notion image
Goto the azure test suite and change the work item type โ€œMicrosoft.EpicCategoryโ€
notion image
Run a query โ†’ Create suites
notion image
notion image
Add the test case
notion image
Another one test case created
notion image
Assign the test case for someone (users)
notion image
Theย test hubย provides a central place for all test planning, execution, and analysis. Test hubย displays the results of test runs. This includes all test runs, both manual and automated.
notion image
Goto the azure board check the work item. The test case reflected to the board.
notion image
First install the test & case feedback extension. I already add
notion image
Connect to the dev azure portal
notion image
Select the project
notion image
Execute the test case
notion image
Manually stop the test case
notion image
Capture the screenshot
notion image
notion image
Finally check the test case
notion image
Again run the second test case
notion image
Go to the azure board check the work item
notion image
Finally check the report
notion image

Azure Release Pipelines

A Release Pipeline consumes the Artifacts and conducts follow-up actions within a multi-staging system.
A blue/green deployment is a deployment strategy in which you create two separate, but identical environments. One environment (blue) is running theย current application versionย and one environment (green) is running theย new application version.
notion image
Using a blue/green deployment strategy increases application availability and reduces deployment riskย by simplifying the rollback process if a deployment fails.
Once testing has been completed on the green environment, live application traffic is directed to theย green environment and the blue environment is deprecated.
A Build Pipeline is used to generate Artifacts out of Source Code. A Release Pipeline consumes the Artifacts and conducts follow-up actions within a multi-staging system.
notion image
Letโ€™s see the release pipeline hands-on ๐Ÿ‘‡
Pipeline โ†’ release pipeline โ†’ new pipelinev โ†’ azure app development
notion image
Select s template
notion image
Artifactory helps in keeping your data center and automated pipelines ticking, so your business is often running at its best.
Whatever happens, putting in Artifactory with High Availableness ensures that your Artifactory will continue to be available even if one of its nodes is unavailable or down for an upgrade.
One of the foremost benefits of running builds from Artifactory is fully reproducible build.
notion image
Click Add an artifact
notion image
Click continuous deployment trigger
notion image
Continuous deployment triggers allow you to create a release every time a new build artifact is available.
Using the build branch filters you can trigger deployment for a specific target branch. A release will be triggered only if the Git push contains a commit on the specified branch.
notion image
The work items represent the core of the Azure DevOps tracking system and can be a bug, a requirement, a general to-do, and so on.
Each work item has a unique ID to keep track of its references from its creation to its implementation as a piece of executable software.
Boards โ†’ work items โ†’ new work item โ†’ task
notion image
Go to the queries โ†’ Create a new query
notion image
Create a chart also
notion image
Goto the pipeline click predeployment conditions
notion image
notion image
notion image
Next goto the task
notion image
Agent โ†’ Modify
notion image
notion image
Azure Functions deployment slots allow your function app to run different instances called slots. Slots are different environments exposed via a publicly available endpoint.
One app instance is always mapped to the production slot, and you can swap instances assigned to a slot on demand.
Goto the azure portal โ†’ webapp โ†’ deployment slots โ†’ add slot
notion image
Staging is a creating different subdomain. its created
notion image
Deploy an azure service
notion image
Select a path and save
notion image
Create a another stage (or) clone & Goto Pre-deployment conditions
notion image
Pre-deployment approval name add
notion image
Goto the task Check everything is same previous stage. Goto to the pipeline edit
notion image
notion image
Save to the YAML files
notion image
trigger: - main stages: - stage: Build jobs: - job: Build pool: vmImage: 'ubuntu-latest' steps: - task: Npm@1 inputs: command: 'install' - task: Npm@1 inputs: command: 'custom' customCommand: 'run build' - task: PublishBuildArtifacts@1 inputs: PathtoPublish: 'build' ArtifactName: 'drop' publishLocation: 'Container'
Its trigger the pipeline
notion image
Successfully run the build
notion image
Next go to the release pipeline got some query error
notion image
Goto the query make some changes
notion image
Add permission
notion image
Again save the pipeline its automatically trigger
notion image
Finally build the job
notion image
Check the release pipeline
notion image
Completed
notion image
Click the staging URL
notion image
Redirected the staging url successfully
notion image
Deploy the application in production but its need to approval
notion image
Click on approve
notion image
Finally the application deployed the production
notion image
Both URL are working fine
notion image
ย 
Thank you for reading my blog โ€ฆ:)
ยฉ Copyrights: ProDevOpsGuy

Support ๐Ÿซถ

  • Help spread the word about ProDevOpsGuy by sharing it on social media and recommending it to your friends. ๐Ÿ—ฃ๏ธ

Thank you for reading this long article.
Feedback on typos and content is always welcome.

#Azure DevOps#CI/CD#DevOps#Guide