From the course: Building Infrastructure as Code (IaC) with Azure Bicep: Part 1
Unlock the full course today
Join today to access over 25,000 courses taught by industry experts.
Refactoring demo - Azure Tutorial
From the course: Building Infrastructure as Code (IaC) with Azure Bicep: Part 1
Refactoring demo
- [Instructor] Now in this demo video, we are going to clean up this bicep autogenerated file, and we will refactor that, however, we are not going to finish everything quickly. We are going to leave it in a way that it would require some more parametrization work so that we can cover that topic as well. So in order to do that under the decompile file, I'm going to create a copy of this file because currently if you go and try to build it, it'll give you an error cuz of this red Google lines. To do that, I'm going to go ahead and make a copy of this, and I'm going to rename this bicep file, and I will call it bicep-refactored.bicep, okay? And here, what we are going to do first, we are going to introduce a deployment location as a parameter. To do that, I'm going to create a new parameter, and we're going to name it region so that we don't and it's going to be string, and it's going to be "eastus2" location. So what I'm…