Declare All Resources as top-level resources

Although most of the resources are declared as top-level resources within the resources section of ARM templates, there are resources that are child resources of these top-level resources and declared within them. Examples of such child resources include the databases resource within the Microsoft.Sql/servers resource. The typical implementation of declaring the child resource within the parent resource is shown next:

{      "name": "[variables('sqlserverName')]",      "type": "Microsoft.Sql/servers",      "location": "[parameters('location')]",      "tags": {        "displayName": "SqlServer"      },      "apiVersion": "2014-04-01",      "properties": {        "administratorLogin": "[parameters('sqlAdministratorLogin')]", "administratorLoginPassword": ...

Get Azure Resource Manager Templates Quick Start Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.