You should now have a greater understanding of how resources should be defined and configured in an ARM template. It is possible to write one large template that consists of hundreds of resources. The challenges of using a single template to define all resources are
- Difficulty in changing templates: With all resources in one template, any change will require a retest of the entire template, which can be a daunting and time-consuming task.
- Difficulty in managing and maintaining templates: Understanding a single template comprising of many resources is not easy. An increase in complexity can leave templates more vulnerable to error.
Modular templates can offer a solution to such challenges. Instead of having a single large template, it is possible to break down the templates into multiple, smaller templates, where each template has its own function and resource...