Introducing Infrastructure as Code
The Azure portal is a good place to start learning about different Azure resources. The simple user interface and rich documentation enables us to get up and running quickly. One of the disadvantages of using the portal is the deployment process is not consistently repeatable. Every time you want to deploy a resource, you must step through the wizard, which increases the chances of human error, such as specifying the incorrect location or even the incorrect subscription if you manage multiple subscriptions.
The preferred method for deploying and managing infrastructure is called Infrastructure as Code (IaC). IaC allows us to declare our infrastructure as code, giving us all the benefits of software development, for example, CI/CD, source control, code reviews, versioning, and so on. Since our infrastructure is in code, we can safely and reliably deploy our infrastructure consistently by deploying our code. This ability to deploy your infrastructure...