13 Case studies

 

This chapter covers

  • Three extensive infrastructure examples created using Azure Bicep
  • A first use case that explores structuring Bicep for creating an Azure foundation, also called a landing zone or Azure platform
  • A second use case that explores subscription-level deployments for preconfiguring subscriptions with minimum standards or a baseline configuration
  • A third use case that builds out the infrastructure needed for a microservices architecture

With everything you’ve learned so far, you should be able to create all the Azure infrastructure you need, either through ARM or Bicep templates. Yet, it can be challenging to get started with larger infrastructure for the first time. To help you get started, this chapter contains three larger examples with step-by-step explanations of how the templates are structured and built.

Some parts of templates will be omitted, as they are repetitions of what you have learned already, or are very similar. The text will focus on the line of thought involved in writing the templates and less on the syntax. Where parts of a template are omitted, the text will describe what you need to do to follow along, or you can look at the completed templates on GitHub (https://github.com/AzureIaCBook).

13.1 Building an Azure foundation

13.1.1 The management group layout

13.1.2 Assigning a policy initiative

13.1.3 Creating a management subscription

13.1.4 Creating workload subscriptions

13.2 Subscription level deployments

13.2.1 Configuring budgets

13.2.2 Configuring Microsoft Defender for Cloud

13.2.3 Creating resource groups and providing access

13.3 Creating a highly-available microservice architecture

13.3.1 Resources organized in resource groups

13.3.2 Networking with Bicep

13.3.3 Using the existing keyword to set access to a Key Vault

Summary