{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {},
  "functions": [],
  "variables": {},
  "resources": [
    {
      "name": "grandChildLinked",
      "type": "Microsoft.Resources/deployments",
      "apiVersion": "2021-04-01",
      "properties": {
        "mode": "Incremental",
        "templateLink": {
          "relativePath": "grandchildren/nestedGrandchild.json"
        }
      }
    }
  ],
  "outputs": {
    "fromGrandChild": {
      "type": "string",
      "value": "[reference('grandChildLinked').outputs.grandChild.value]"
    }
  }
}