Infrastructure as Code

Now let's review what we have learned. An ARM template has a simple structure like the following:

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

Expressions are written in JSON strings with brackets to start and end, and these expressions are evaluated when deployed.  These are basically like JavaScript functions and are formatted like functionname (arg1,arg2,etc); let’s look at an example. You can develop a deeper understanding at https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-templates-variables:

"variables": { "appServiceName": ...

Get Hands-On Cloud Solutions with Azure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.