The first part of a managed application package is made of the resource template (mainTemplate.json).
As described in Chapter 2, Azure Resource Manager and Tools, the ARM template itself consists of some required and optional elements. The structure of an ARM template always follows the same markup:
{ "$schema": "https://schema.management.azure.com/schemas/2015-01-
01/deploymentTemplate.json#", "contentVersion": "", "parameters": { }, "variables": { }, "functions": [ ], "resources": [ ], "outputs": { } }
Remember: The required parts in this template are $schema, contentVersion and resources. The code which I will use throughout this chapter is located in our repository. We will first have a look at the mainTemplate.json file in detail:
In the first two lines, you will find the required values for $schema and contentVersion...