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

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