SlideShare a Scribd company logo
Azure DevOps Overview
Azure Pipeline - Release
Alan Tsai 2019/06/01
簡單自我介紹
http://blog.alantsai.net 2
簡單自我介紹
• Alan Tsai
• 蔡孟玹
• 後端工程師
• .NET 技術爲主
• 喜歡學習不同東西
• Azure
• Data Science、Chatbot
• Container
• DevOps
• 加强開發的Tools
• 架構
喜歡技術分享
• 2019 中華電信學院 講師
• 使用Azure AI打造有人工智能的Line聊天機器人 12小時
• DevOps與CI/CD實務研習班 12小時
• 2018 Study4 .NET Conf 講師
• 利用Machine Learning .NET整合機器學習至應用程式
• 2018 Study4 北京Azure Bootcamp 講師
• Azure Migrate 上云之路
• 2017 Sturdy4 .NET Conf 講師
• .Net core 與 .net standard 實戰教學 開發指南
• 2017 大家應該都要會的工具
• Git從放棄到會用 講師
• 2017 逢甲大學起飛計畫
• 電子內容管理 - 使用GIT, GIHUB, and Visual studio Code 講師
如何聯係我
• Alan Tsai 的學習筆記
• https://blog.alantsai.net
@alantsi2007
Line@
今天分享内容
• DevOps 以及 Azure DevOps
• Azure DevOps Pipeline – Build
• Continuous Integration (CI)
• Azure DevOps Pipeline – Release
• Continuous Delivery (CD)
• 整合起來的威力
http://blog.alantsai.net 6
今天分享内容
http://to.alantsai.net/event-20190601
http://blog.alantsai.net 7
http://blog.alantsai.net 8
Azure DevOps Pipeline
Release
Azure DevOps
http://blog.alantsai.net 9
Agenda
• 自動部署 (CD) 是什麽?
• Azure DevOps Pipeline的Release介紹
• Demo
• 如何設定自動發佈到Azure
• 模擬修改
http://blog.alantsai.net 10
部署在做什麽?
Continuous Deployment
需求
開發
建制測試
部署
部署有什麼難?
• 不同環境
• Testing
• Production
• 不同設定
• 多台機器
• 每次部署是否一致?
• 裝在哪裡
• 權限設定
• 目前最新在那一版?
• 退板
• 部署是否需要授權?
• 手動通過?
• 部署通知
Continuous Delivery vs Continuous Deployment
解決方案
• Release Management / Continuous Delivery (Deployment)
System
• Continues Integration (CI)直接發佈上去
Azure DevOps Pipeline
Release
http://blog.alantsai.net 16
Azure DevOps Pipeline
• 主要兩個功能
• Builds
• Releases
http://blog.alantsai.net 17
關鍵名詞
• Pipeline/Release Definition
• 不要和Azure Pipeline搞混
• 一個完整的Release定義
• Artifact
• 部署什麽東西上去
http://blog.alantsai.net 18
• Stage
• 定義每一個關卡
• 能夠定義pre和post condition
• Job
• 一個完整的執行工作
• Task
• 同build的step概念
對應
http://blog.alantsai.net 19
Release Definition 設定方式
• 兩種設定方式
• GUI
• YAML – 最近Build大會剛GA
• GUI
• 好上手
• 沒辦法和Source Code一起版本控制
• 官方目前還是以GUI爲主
http://blog.alantsai.net 20
Release流程
條件觸發 Agent 執行Release
一個stage
一個stage做
http://blog.alantsai.net 21
Release Demo
http://blog.alantsai.net 22
Demo 順序
• Azure建立Web App
• 建立Release Pipeline
• 建立Release
• 設定自動觸發
http://blog.alantsai.net 23
Release Demo
Azure 建立 Web App
http://blog.alantsai.net 24
Azure 建立 Web App
• https://portal.azure.com/#create/Microsoft.WebSite
http://blog.alantsai.net 25
Azure 建立完成
http://blog.alantsai.net 26
Release Demo
建立Release Pipeline
http://blog.alantsai.net 27
建立Release Pipeline
http://blog.alantsai.net 28
選擇 Template
http://blog.alantsai.net 29
設定Artifact
http://blog.alantsai.net 30
設定Stage
• 選擇Azure Subscription
• 如果Azure DevOps帳號以及Azure不同,需要定義connection
https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal
http://blog.alantsai.net 31
儲存修改
http://blog.alantsai.net 32
Release Demo
建立Release
http://blog.alantsai.net 33
建立一個Release
http://blog.alantsai.net 34
建立一個Release
http://blog.alantsai.net 35
實際觸發
http://blog.alantsai.net 36
Release Demo
設定自動觸發
http://blog.alantsai.net 37
設定自動觸發
http://blog.alantsai.net 38
整合在一起的好處
Demo
http://blog.alantsai.net 39
整合在一起的好處
• https://docs.microsoft.com/zh-tw/azure/architecture/example-scenario/apps/devops-dotnet-webapp
http://blog.alantsai.net 40
結語
http://blog.alantsai.net 41
自動部署做好
• 不再需要依賴某一個人記得上版要做什麽
• 或者要看word的更版順序
• 一切自動化
• 最多要上正式機器需要過一次審核
費用
http://blog.alantsai.net 43
參考資料
• 官方文件
• https://docs.microsoft.com/en-us/azure/devops/pipelines/?view=azure-devops
• 官方Lab
• https://azuredevopslabs.com/labs/vstsextend/azuredevopsprojectdotnet/
• 部落格-Code Review
• https://blog.alantsai.net/tags/code-review
http://blog.alantsai.net 44
感謝用心聆聽
Q&A
感謝大家
任何問題都可以在
contact@alantsai.net
部落格-Alan Tsai 的學習筆記
找到我
http://blog.alantsai.net 45

More Related Content

PDF
02 azure devops pipeline - build
PPTX
20200425 GlobalAzure-Azure API Management-協助邁向Open API及Micro Service架構的好用服務
PPTX
不會 Javascript 沒關係,用 Blazor 來解決前端需求 - 成為 Full Stack .NET 開發者吧 - .NET Conf 2020...
PDF
Visual Studio 開發密技大補帖 | Study4.TW 2021 小聚#2
PDF
架構這件事 - Azure 可以幫助什麼 - 如何選擇使用什麼 Azure 服務
PPTX
Azure Taiwan - Keep azure cost down (Azure 成本管控)
PDF
[Agile Tour Hsinchu 2019] Our practice in the DevOps Process for Manufacture ...
PPTX
我們與Azure DevOps的距離
02 azure devops pipeline - build
20200425 GlobalAzure-Azure API Management-協助邁向Open API及Micro Service架構的好用服務
不會 Javascript 沒關係,用 Blazor 來解決前端需求 - 成為 Full Stack .NET 開發者吧 - .NET Conf 2020...
Visual Studio 開發密技大補帖 | Study4.TW 2021 小聚#2
架構這件事 - Azure 可以幫助什麼 - 如何選擇使用什麼 Azure 服務
Azure Taiwan - Keep azure cost down (Azure 成本管控)
[Agile Tour Hsinchu 2019] Our practice in the DevOps Process for Manufacture ...
我們與Azure DevOps的距離

What's hot (20)

PPTX
[2020 .NET Conf] 企業Azure DevOps Service 實際應用架構與秘辛
PPTX
[2021 .NET Conf]善用 Azure Monitor 服務打造 DevOps 監控一環
PPTX
[2018 .NET Conf].NET Core與Azure DevOps應用於企業開發
PDF
01 DevOps and Azure DevOps overview
PDF
玩轉 .NET Interactive Notebooks 一次就上手
PDF
Vue 和 Angular 開發習慣
PDF
Angular Conf 2018 - 原來 Angular 可以這樣玩設定
PDF
美团点评技术沙龙05 - 前后端联调方案探索与应用
PPTX
Reactive application with akka.NET & .NET Core
PDF
VSCode Remote Development 介紹
PDF
KSDG BaaS Intro
PDF
Cncf k8s Ingress Example-02
PDF
[2021 DevDays]Microsoft Teams 整合 Azure DevOps之實務應用
PDF
使用最新 Edge 瀏覽器來進行開發​
PPTX
用Octopus deploy做自動部署 - 快速上手
PDF
美团点评技术沙龙14美团云-Docker平台
PDF
W3CTech美团react专场-React Native 初探
PPTX
The Journey of Source Generator
PPTX
使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)
PPTX
HTML5 規格最新發展現況 (HTML5 趨勢發展與技術應用論壇)
[2020 .NET Conf] 企業Azure DevOps Service 實際應用架構與秘辛
[2021 .NET Conf]善用 Azure Monitor 服務打造 DevOps 監控一環
[2018 .NET Conf].NET Core與Azure DevOps應用於企業開發
01 DevOps and Azure DevOps overview
玩轉 .NET Interactive Notebooks 一次就上手
Vue 和 Angular 開發習慣
Angular Conf 2018 - 原來 Angular 可以這樣玩設定
美团点评技术沙龙05 - 前后端联调方案探索与应用
Reactive application with akka.NET & .NET Core
VSCode Remote Development 介紹
KSDG BaaS Intro
Cncf k8s Ingress Example-02
[2021 DevDays]Microsoft Teams 整合 Azure DevOps之實務應用
使用最新 Edge 瀏覽器來進行開發​
用Octopus deploy做自動部署 - 快速上手
美团点评技术沙龙14美团云-Docker平台
W3CTech美团react专场-React Native 初探
The Journey of Source Generator
使用 Angular 2 與 Firebase 實現 Serverless 網站架構 (JSDC.tw 2016)
HTML5 規格最新發展現況 (HTML5 趨勢發展與技術應用論壇)
Ad

Similar to 03 azure devops pipeline - release (20)

PPTX
2021 Net Conf Taiwan-初探 Azure Communication Service 讓 App 也有視訊、通話、即時聊天、簡訊和電話功能
PDF
從 GitHub Copilot 到 Enterprise Copilot:打造符合企業需求的智能開發助手之路 | .NET Conf 2023 Taiwan
PDF
探索 API 開發的挑戰與解決之道 | .NET Conf 2023 Taiwan
PDF
初探 Data API Builder:在幾分鐘內將資料庫轉換成 REST 和 GraphQL 不再是夢想
PDF
2_Clustering.pdf
 
PDF
Azurebootcamp 2018
PDF
DevOps Taiwan CICD Pipeline Tools
PDF
twMVC#42 讓我們用一種方式來開發吧
PDF
1_大二班_資料視覺化_20221028.pdf
 
PPTX
Artifacts management with CI and CD
PDF
Langchain and Azure ML and Open AI
PDF
北區13校GDSC聯合流會.pdf
PPTX
GitHub Action Introduction
PDF
Introduction to MLOps in Azure Machine Learning with Live Demo
PPTX
微服務的基礎建設 - Service Discovery, Andrew Wu
PDF
twMVC#51-GitHub Copilot 徹底改變開發模式,探索 AI 驅動的智慧程式碼協作
PDF
20170108 微軟大數據整合解決方案- cortana intelligence suite
PDF
LangServe source code explain in 2024 COSCUP
PDF
SITCON 2019 - 誰說工程師一定爆肝!一起走入雲端世界吧
PDF
[2019 臺灣雲端大會]使用雲端技術打造快速的 AI 服務上線
2021 Net Conf Taiwan-初探 Azure Communication Service 讓 App 也有視訊、通話、即時聊天、簡訊和電話功能
從 GitHub Copilot 到 Enterprise Copilot:打造符合企業需求的智能開發助手之路 | .NET Conf 2023 Taiwan
探索 API 開發的挑戰與解決之道 | .NET Conf 2023 Taiwan
初探 Data API Builder:在幾分鐘內將資料庫轉換成 REST 和 GraphQL 不再是夢想
2_Clustering.pdf
 
Azurebootcamp 2018
DevOps Taiwan CICD Pipeline Tools
twMVC#42 讓我們用一種方式來開發吧
1_大二班_資料視覺化_20221028.pdf
 
Artifacts management with CI and CD
Langchain and Azure ML and Open AI
北區13校GDSC聯合流會.pdf
GitHub Action Introduction
Introduction to MLOps in Azure Machine Learning with Live Demo
微服務的基礎建設 - Service Discovery, Andrew Wu
twMVC#51-GitHub Copilot 徹底改變開發模式,探索 AI 驅動的智慧程式碼協作
20170108 微軟大數據整合解決方案- cortana intelligence suite
LangServe source code explain in 2024 COSCUP
SITCON 2019 - 誰說工程師一定爆肝!一起走入雲端世界吧
[2019 臺灣雲端大會]使用雲端技術打造快速的 AI 服務上線
Ad

More from Alan Tsai (18)

PDF
初探 Prompt Flow 開發生成式 AI 應用的利器 | R-Ladies Taipei
PDF
Microsoft Learn AI 挑戰賽-實戰三 MLOps | Alan Tsai
PPTX
我和阿九(Azure)有約 17 Azure Sql Database 基本介紹
PPTX
我和阿九Azure有約 39 Azure Blob Storage 如何省錢? 設定 Access Tier 以及透過 Lifecycle Managem...
PPTX
我和阿九Azure有約 38 Azure Blob Storage 如何省錢? 搞懂Access Tier (Alan Tsai 的學習筆記)
PPTX
我和阿九Azure有約 37 Azure Blob Storage 如何檔案異動自動記錄建立檔案版本?Version Preview (Alan Tsai...
PPTX
我和阿九Azure有約 36 Azure Blob Storage 如何開啟snapshot保留目前狀態 (Alan Tsai的學習筆記)
PPTX
我和阿九Azure有約 35 Azure Blob Storage 如何開啟 Soft Delete?避免誤刪檔案 (Alan Tsai的學習筆記)
PPTX
我和阿九Azure有約 34 Azure File Storage 什麼時候適合用Azure File? File vs Disk Storage (Al...
PPTX
我和阿九Azure有約 33 Azure File Storage 什麼時候適合用Azure File? File vs Blob (Alan Tsai的...
PPTX
我和阿九Azure有約 32 Azure File Storage 介紹 (Alan Tsai的學習筆記)
PPTX
我和阿九(Azure)有約 31 Azure Blob Storage 使用azcopy進行自動化作業 (Alan Tsai 的學習筆記)
PPTX
Insider Dev Tour Taipei 2019 - Future proof your desktop apps with .net core
PPTX
2018 .NET Conf - 利用Machine Learning .NET整合機器學習至應用程式
PPTX
2018 beijing azure bootcamp-azure migration - 2018 北京 azure bootcamp azure 搬遷...
PDF
.Net core 與 .net standard 實戰教學 開發指南
PPTX
電子內容管理 使用Git 與 github 2
PPTX
電子內容管理 使用Git 與 github 1
初探 Prompt Flow 開發生成式 AI 應用的利器 | R-Ladies Taipei
Microsoft Learn AI 挑戰賽-實戰三 MLOps | Alan Tsai
我和阿九(Azure)有約 17 Azure Sql Database 基本介紹
我和阿九Azure有約 39 Azure Blob Storage 如何省錢? 設定 Access Tier 以及透過 Lifecycle Managem...
我和阿九Azure有約 38 Azure Blob Storage 如何省錢? 搞懂Access Tier (Alan Tsai 的學習筆記)
我和阿九Azure有約 37 Azure Blob Storage 如何檔案異動自動記錄建立檔案版本?Version Preview (Alan Tsai...
我和阿九Azure有約 36 Azure Blob Storage 如何開啟snapshot保留目前狀態 (Alan Tsai的學習筆記)
我和阿九Azure有約 35 Azure Blob Storage 如何開啟 Soft Delete?避免誤刪檔案 (Alan Tsai的學習筆記)
我和阿九Azure有約 34 Azure File Storage 什麼時候適合用Azure File? File vs Disk Storage (Al...
我和阿九Azure有約 33 Azure File Storage 什麼時候適合用Azure File? File vs Blob (Alan Tsai的...
我和阿九Azure有約 32 Azure File Storage 介紹 (Alan Tsai的學習筆記)
我和阿九(Azure)有約 31 Azure Blob Storage 使用azcopy進行自動化作業 (Alan Tsai 的學習筆記)
Insider Dev Tour Taipei 2019 - Future proof your desktop apps with .net core
2018 .NET Conf - 利用Machine Learning .NET整合機器學習至應用程式
2018 beijing azure bootcamp-azure migration - 2018 北京 azure bootcamp azure 搬遷...
.Net core 與 .net standard 實戰教學 開發指南
電子內容管理 使用Git 與 github 2
電子內容管理 使用Git 與 github 1

03 azure devops pipeline - release