This chapter covers
- Writing an ARM template that deploys to more than one scope
- Structuring large IaC solutions into more than one template
- Dealing with dependencies and ordering resources in a deployment
- Advanced constructs like conditions, loops, and deployment scripts
- Reverse engineering existing infrastructure into an ARM template
In chapter 3 we explored the different sections of an ARM template and learned how to use all of them. In that chapter, we also worked on the infrastructure for an API that serves as the backend for a web shop that was responsible for processing the orders that come in, among other things. There was an App Service for hosting the API itself, and other components like a Key Vault, Application Insights, SQL Server and database, and storage accounts. This chapter will continue with those components and use them to go into more advanced ARM topics.