This chapter was about testing ARM templates. Maintaining the right quality of ARM templates is important, and it is a must to test ARM template deployments. Pester helps with providing the necessary infrastructure for testing ARM template deployments. It provides Describe, It, Context, and other necessary assertions to test ARM template deployment. One of the prerequisites for unit testing ARM templates is that the ARM templates should be authored in a way so that ARM outputs all the important information about resources. Reading this resource information and comparing it to the expected value helps to ascertain whether the deployment was successful and as expected, or whether there are deviations requiring another set of deployments, after the code has been corrected in ARM templates.
In the next chapter, we will understand how to write better maintainable, modular ARM...