From the course: Azure Infrastructure as Code with ARM, Bicep, Terraform, and Pulumi
Unlock the full course today
Join today to access over 24,600 courses taught by industry experts.
Demo: Bash scripting basics - Azure Tutorial
From the course: Azure Infrastructure as Code with ARM, Bicep, Terraform, and Pulumi
Demo: Bash scripting basics
- [Instructor] Now that we've seen how this can be done in PowerShell, let's see how the, what's different in Bash. I've added a couple files. One is just the scripting in general, which has got the syntax, and you could open that up and put this next to it and say, here's what this would look like if I were to put this on the right and then compare that with scripting bash on the left. You can see that the variable names are different. You've got echo instead of write output for Bash, we've got some differences in looping. We've got some differences in how we do conditional statements. So what we're going to do is we're going to convert our test arm into a test Bash version of this. So this is where we've got the commands AZ login, we get our environment, and then we go out and do a couple commands. So this script is actually going to be pretty similar. What I'm going to do is I'm going to go out and do the login. I would set my variables, this time instead of having the dollar sign…
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)
-
-
-
-
-