Working with ARM templates

When working on the Azure platform, infrastructure is described using Azure Resource Manager (ARM) templates. ARM templates are written in JSON and a skeleton template looks as follows:

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
},
"variables": {
},
"resources": [
],
"outputs": {
}
}

The template itself is, at the highest level, a JSON object. There is a mandatory property, $schema, for which the shown value is also mandatory. The contentVersion property is also mandatory and can be specified to version the contents. This version can be used by the author to version the template if necessary.

The rest of this chapter will discuss the different parts that make up ARM templates in more detail. There is also an online reference available, to which a link is added at the end of this chapter. A link to the formal, detailed breakdown of the structure and syntax of ARM templates is also added at the end of this chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.251.68