# BCPFR6 - Cross-Referencing Child-Modules Module Specification for the Azure Verified Modules (AVM) program ID: BCPFR6 - Cross-Referencing Child-Modules Parent templates MUST reference all their direct child-templates to allow for an end-to-end deployment experience. For example, the SQL server template must reference its child database module and encapsulate it in a loop to allow for the deployment of multiple databases. @description('Optional. The databases to create in the server') param databases databaseType[]? resource server 'Microsoft.Sql/servers@(...)' = { (...) } module server_databases 'database/main.bicep' = [for (database, index) in (databases ?? []): { name: '${uniqueString(deployment().name, location)}-Sql-DB-${index}' params: { serverName: server.name (...) } }] --- Source: https://raw.githubusercontent.com/Azure/Azure-Verified-Modules/refs/heads/main/docs/content/specs-defs/includes/bicep/shared/functional/BCPFR6.md Last Modified: 0001-01-01