Skip to Main Content
Azure Resource Manager Templates Quick Start Guide
book

Azure Resource Manager Templates Quick Start Guide

by Ritesh Modi
February 2019
Intermediate to advanced content levelIntermediate to advanced
234 pages
5h 42m
English
Packt Publishing
Content preview from Azure Resource Manager Templates Quick Start Guide

Unit testing ARM templates

In the case of ARM templates, we define and declare resources using JSON notation. There is no value in testing this JSON file consisting of parameters and resources by parsing it. These templates do not generate any assemblies that can be used for executing unit tests against them. These templates can only be deployed, and so the only way to unit test resources in an ARM template is to unit test them after the deployment of the ARM template. 

For the purposes of this chapter, we will use the next template for unit testing. This template is available with this chapter's accompanied code file named chapter-6 - listing1.txt. This template creates five resources:

  • Azure Storage account
  • Azure Virtual Network
  • Azure public ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali
Understanding Azure Monitoring: Includes IaaS and PaaS Scenarios

Understanding Azure Monitoring: Includes IaaS and PaaS Scenarios

Bapi Chakraborty, Shijimol Ambi Karthikeyan

Publisher Resources

ISBN: 9781789803235Supplemental Content