Azure DevOps Pipelines and Bicep
ฝัง
- เผยแพร่เมื่อ 4 ส.ค. 2024
- In this video, we build on DevOps repos by creating an Azure DevOps pipeline that deploys Azure Bicep template files. We start by creating a service connection, allowing DevOps to deploy resources to Azure. Next, we create multiple pipeline jobs, splitting the deployment into two parts, or jobs, that run sequentially. One job deploys resources to Azure and the other removes the resources. A dependency is used to only run the second job if the first is successful. Azure Bicep files are used for this example. We review the modular deployment then create a parameters file to set configuration parameters for the deployment.
00:00 - Start
01:33 - Bicep Files
04:57 - Create a Service Connection
06:28 - Create the Pipeline with Jobs
07:43 - Create the Deployment Job
10:54 - Validate the Deployment
11:37 - Deploy Resources in a Pipeline
12:39 - Create a Clean Up Job with Dependencies
15:25 - Deploy and Remove Resources
Links:
Azure Bicep Playlist
• Bicep
Files on GitHub
github.com/tsrob50/PublicDevO...
Zero to Hero with Azure Virtual Desktop
www.udemy.com/course/zero-to-...
Hybrid Identity with Windows AD and Azure AD
www.udemy.com/course/hybrid-i... - วิทยาศาสตร์และเทคโนโลยี
Incredibly useful, thank you
Thank you Travis. It is a great video
Thx! Great video :)
Hi Travis, I'd recommend you use only commands whenever is possible and forget about tasks. In this scenario, for example, you will probably face a problem if you need to deploy a hub-spoke in different subs because you can't reference it properly. Nice video, and keep it up.
Thanks for the tip!
Thank you for the awesome video. When we deploy more resources together via bicep, which resource get to deploy first? does it have an order ?
Thanks. I have a doubt. Why you use pipelines instead of the delivery section to deploy resources.
How do you handle the scenario where you want to create a pull request into the master branch and deploy the resources without cleaning them up?
For example, I am happy with my deployment and I want to deploy it into production?
The Job called Clean Up Resources is just for testing purposes. You'd remove that Job so that the resources will remain