Skill 2.4.1

Create configuration files for Data API builder (DAB)

Key Concepts

dab init --database-type mssql --connection-string "@env('SQL_CONN')" creates dab-config.json with three sections: data-source (database type, connection string and options such as set-session-context), runtime (REST, GraphQL, MCP, host mode, CORS, authentication, cache, pagination and telemetry) and entities. dab add and dab update add and change entities, dab configure changes runtime settings, dab validate checks the file against the schema and database, and dab start runs the engine.

Secrets do not belong in the file: @env('NAME') reads an environment variable and @akv('name') reads an Azure Key Vault secret, and a connection string with Authentication=Active Directory Default or Managed Identity needs no password. host.mode is development locally (enabling Swagger and the Nitro GraphQL client) and production when deployed. Environment-specific files such as dab-config.Production.json override the base file when DAB_ENVIRONMENT is set.