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 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.