From the course: Azure Infrastructure as Code with ARM, Bicep, Terraform, and Pulumi
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
IaC coding patterns - Azure Tutorial
From the course: Azure Infrastructure as Code with ARM, Bicep, Terraform, and Pulumi
IaC coding patterns
- [Narrator] Scripting is a great tool for managing your Azure Cloud environment. Being able to go out and create resources, test your deployments, and do other things with the Active directory, your credentials and security as well as managing services, comes in very handy. I've come across a lot of these patterns and I just wanted to share a couple that I've looked at and that I use. The first one is testing deployments. When I have a new arm script or a template that I want to run, I can do that by creating a script to do that. I use variables like the app name and environment name to be able to give me my naming pattern that I use for how I deploy things so that I get consistent results. I also use the functions to get date in a PowerShell script, where I can format it to be today's date, and I've got who am I, which is my user. We can also go out and use the AZ CLI and use a couple of the commands, the group and the deployment to be able to go out and create the deployment. Using…
Contents
-
-
-
-
(Locked)
Getting started with Azure CLI2m 17s
-
Demo: Exploring Azure CLI5m 21s
-
(Locked)
Bash vs. PowerShell with Azure CLI2m 4s
-
(Locked)
Demo: Powershell scripting basics5m 51s
-
(Locked)
Demo: Bash scripting basics3m 46s
-
(Locked)
IaC coding patterns2m 20s
-
(Locked)
Challenge: Deploy web app from script19s
-
(Locked)
Solution: Deploy web app from script3m 43s
-
(Locked)
-
-
-
-
-