Summary

Completed

To stay competitive and to meet customer demand, your toy company needs the ability to automate its Azure infrastructure deployments by using infrastructure as code.

In this module, you learned how using infrastructure as code makes it possible to automate your infrastructure provisioning and configuration. It helps you and your organization gain higher confidence in your deployments by providing consistency. Infrastructure as code can help you manage multiple environments, including new environments and nonproduction environments. You can gain a better understanding of your cloud resources by using infrastructure as code.

Imagine how much time it would take to deploy new environments manually by using only the Azure portal. You must deploy each resource one by one, making sure to keep configurations identical. When you want to add a new resource or change an existing resource, you must manually create the resource for each environment. Infrastructure as code can help you define your resources in a single place and then apply the same configuration to all your environments.

You learned how to create a code base for your infrastructure as code using an imperative or declarative approach. With imperative code, you execute a sequence of commands, in a specific order, to reach an end configuration. This process defines what the code should accomplish, and it also defines how to accomplish the task. When you use declarative code, you specify only the end configuration. Declarative code doesn't define how to accomplish the task.

After choosing to take a declarative approach to infrastructure as code, you learned about Azure Resource Manager and ARM templates. These JSON and Bicep templates declaratively describe your Azure infrastructure, and you can use them to deploy resources to your Azure subscription.

Finally, you learned about Bicep, a declarative language that you can use to easily describe your Azure resources. By using Bicep, you can gain all the benefits of infrastructure as code while working in an easy, powerful language.

Next steps

  • Learn more about Bicep.