Sitemap

[Azure] — How to use Azure DevOps build .NET Core — Part 2

Mar 6, 2021

สวัสดีครับ จากครั้งที่แล้ว Part 1 ผมได้แนะนำการสร้าง Pipeline แบบ manual ง่ายๆให้นะครับ ในวันนี้เราจะนำเอา Artifacts นั้นก็คือ zip file ที่มาจากการ build มา deploy บน Azure App Service กันดูนะครับ มีขั้นตอนง่ายๆ ดังนี้ครับผม

  • สร้าง Service Connection: Azure Resource Manager
  • สร้าง Release: Deploy Azure App Service Template
  • Link ระหว่าง Release pipeline กับ ตัว Artifact

การสร้าง Service Connections

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

สร้าง Release: Deploy Azure App Service Template

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

Link ระหว่าง Release pipeline กับ ตัว Artifact

Press enter or click to view image in full size
Press enter or click to view image in full size

จากนั้นเราสามารถทดสอบ Deploy บน Azure App Service ด้วยการกด Create release

สรุปว่า การสร้าง build and release pipeline สำหรับ Azure app service บน Azure DevOps แบบ manual นั้นเหมาะกับผู้เริ่มต้น ช่วยให้เข้าใจการทำงานแต่ละ tasks ได้ง่าย ก่อนจะขยับไปสร้าง pipeline บน yml ครับ

หากมีข้อสงสัยสามารถแลกเปลี่ยน หรือสอบถามเพิ่มเติมได้ครับ
ขอบคุณที่อ่านครับผม
Happy Coding!

--

--

No responses yet