CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder 13.1.1

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder --version 13.1.1
                    
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder -Version 13.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder" Version="13.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder" Version="13.1.1" />
                    
Directory.Packages.props
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder --version 13.1.1
                    
#r "nuget: CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder, 13.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder@13.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder&version=13.1.1
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder&version=13.1.1
                    
Install as a Cake Tool

CommunityToolkit.Hosting.Azure.DataApiBuilder

Overview

This .NET Aspire Integration runs Data API builder in a container. Data API builder generates secure, feature-rich REST and GraphQL endpoints for Tables, Views and Stored Procedures performing CRUD (Create, Read, Update, Delete, Execute) operations against Azure SQL Database, SQL Server, PostgreSQL, MySQL and Azure CosmosDB.

Usage

Example 1: Single data source

var builder = DistributedApplication.CreateBuilder(args);

var sqlDatabase = builder
    .AddSqlServer("your-server-name")
    .AddDatabase("your-database-name");

var dab = builder.AddDataAPIBuilder("dab")
    .WithReference(sqlDatabase)
    .WaitFor(sqlDatabase);

var app = builder
    .AddProject<Projects.Client>()
    .WithReference(dab);

builder.Build().Run();

Example 2: Multiple data sources

var builder = DistributedApplication.CreateBuilder(args);

var sqlDatabase1 = builder
    .AddSqlServer("your-server-name")
    .AddDatabase("your-database-name");

var sqlDatabase2 = builder
    .AddSqlServer("your-server-name")
    .AddDatabase("your-database-name");

var dab = builder.AddDataAPIBuilder("dab", 
        "./dab-config-1.json", 
        "./dab-config-2.json")
    .WithReference(sqlDatabase1)
    .WithReference(sqlDatabase2)
    .WaitFor(sqlDatabase1)
    .WaitFor(sqlDatabase2);

var app = builder
    .AddProject<Projects.Client>()
    .WithReference(dab);

builder.Build().Run();

Note: All files are mounted/copied to the same /App folder.

Example 3: Cosmos DB and a schema file

var builder = DistributedApplication.CreateBuilder(args);

var cosmosdb = builder
    .AddAzureCosmosDB("myNewCosmosAccountName")
    .AddDatabase("myCosmosDatabaseName");

var dab = builder.AddDataAPIBuilder("dab",
        "./dab-config.json",
        "./schema.graphql")
    .WithReference(cosmosdb)
    .WaitFor(cosmosdb);

var app = builder
    .AddProject<Projects.Client>()
    .WithReference(dab);

builder.Build().Run();

Example 4: Connection string-only

var builder = DistributedApplication.CreateBuilder(args);

var sqlDatabase = builder
    .AddConnectionString("your-cs-name");

var dab = builder.AddDataAPIBuilder("dab")
    .WithReference(sqlDatabase);

var app = builder
    .AddProject<Projects.Client>()
    .WithReference(dab);

builder.Build().Run();

Configuration

  • name - The name of the resource.
  • port - The optional port number for the Data API builder container. Defaults to random.
  • configFilePaths - Opiotnal paths to the config/schema file(s) for Data API builder. Default is ./dab-config.json.

Data API builder Container Image Configuration

You can specify custom registry/image/tag values by using the WithImageRegistry/WithImage/WithImageTag methods:

var dab = builder.AddDataAPIBuilder("dab")
    .WithImageRegistry("mcr.microsoft.com")
    .WithImage("azure-databases/data-api-builder")
    .WithImageTag("latest");

OpenTelemetry Instrumentation

The Data API builder integration automatically configures OpenTelemetry (OTEL) instrumentation for distributed tracing and metrics. The integration uses the standard .WithOtlpExporter() method which sets up the necessary OTEL environment variables that Data API builder automatically recognizes.

To enable OTEL telemetry in Data API builder, add the following configuration to your dab-config.json file:

{
  "runtime": {
    "telemetry": {
      "open-telemetry": {
        "enabled": true,
        "service-name": "@env('OTEL_SERVICE_NAME')",
        "endpoint": "@env('OTEL_EXPORTER_OTLP_ENDPOINT')",
        "exporter-protocol": "grpc",
        "headers": "@env('OTEL_EXPORTER_OTLP_HEADERS')"
      }
    }
  }
}

The configuration includes the following settings:

  • enabled: Enables/disables OTEL telemetry (default: false)
  • service-name: Logical name for the service in traces. Uses the @env('OTEL_SERVICE_NAME') syntax to reference the environment variable automatically set by Aspire
  • endpoint: OTEL collector endpoint URL. Uses @env('OTEL_EXPORTER_OTLP_ENDPOINT') to reference the Aspire-provided endpoint
  • exporter-protocol: Protocol for exporting telemetry. Set to grpc for efficient binary transport
  • headers: Custom headers for OTEL export. Uses @env('OTEL_EXPORTER_OTLP_HEADERS') to reference Aspire-provided headers

With this configuration, Data API builder will:

  • Export traces and metrics to the Aspire dashboard via OTLP (OpenTelemetry Protocol)
  • Automatically use the OTEL endpoint provided by the Aspire app host
  • Include telemetry for REST and GraphQL operations, database queries, and system metrics

For more information about Data API builder telemetry, see the official documentation.

Known Issues

The current imlpementation of the Data API builder .NET Aspire integration does not support HTTPS endpoints. However, this is only a dev-time consideration. Service discovery when published can use HTTPS without any problems.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
13.1.2-beta.516 0 2/9/2026
13.1.2-beta.515 41 2/2/2026
13.1.2-beta.514 43 1/30/2026
13.1.2-beta.513 42 1/29/2026
13.1.2-beta.512 43 1/29/2026
13.1.2-beta.511 43 1/28/2026
13.1.2-beta.509 44 1/20/2026
13.1.2-beta.508 43 1/19/2026
13.1.2-beta.507 46 1/19/2026
13.1.2-beta.506 47 1/16/2026
13.1.2-beta.505 42 1/16/2026
13.1.2-beta.504 44 1/16/2026
13.1.1 298 1/16/2026
13.1.1-beta.502 41 1/16/2026
13.1.0 167 1/14/2026
13.1.0-beta.499 47 1/14/2026
13.0.1-beta.498 46 1/14/2026
13.0.1-beta.486 51 1/12/2026
13.0.1-beta.468 648 12/3/2025
13.0.1-beta.467 626 12/3/2025
13.0.0 1,173 11/25/2025
13.0.0-beta.462 139 11/25/2025
13.0.0-beta.456 152 11/23/2025
13.0.0-beta.454 104 11/23/2025
13.0.0-beta.453 112 11/22/2025
13.0.0-beta.450 126 11/22/2025
13.0.0-beta.448 132 11/22/2025
13.0.0-beta.444 359 11/17/2025
13.0.0-beta.443 278 11/17/2025
13.0.0-beta.440 106 11/15/2025
13.0.0-beta.439 249 11/12/2025
13.0.0-beta.438 231 11/12/2025
13.0.0-beta.436 243 11/12/2025
13.0.0-beta.435 252 11/11/2025
13.0.0-beta.433 168 11/10/2025
13.0.0-beta.432 161 11/10/2025
13.0.0-beta.431 159 11/6/2025
13.0.0-beta.430 159 11/6/2025
9.9.0 454 11/3/2025
9.9.0-beta.427 164 11/3/2025
9.8.1-beta.426 157 11/3/2025
9.8.1-beta.424 156 10/28/2025
9.8.1-beta.420 160 10/27/2025
9.8.1-beta.419 145 10/27/2025
9.8.1-beta.417 145 10/27/2025
9.8.1-beta.414 147 10/24/2025
9.8.1-beta.413 150 10/22/2025
9.8.1-beta.410 141 10/16/2025
9.8.1-beta.408 142 10/16/2025
9.8.1-beta.407 132 10/16/2025
9.8.1-beta.406 143 10/15/2025
9.8.0 362 9/26/2025
9.8.0-beta.405 141 10/15/2025
9.8.0-beta.404 140 10/13/2025
9.8.0-beta.402 146 9/29/2025
9.8.0-beta.401 146 9/29/2025
9.8.0-beta.399 139 9/26/2025
9.8.0-beta.398 147 9/25/2025
9.8.0-beta.397 149 9/25/2025
9.8.0-beta.395 142 9/24/2025
9.8.0-beta.394 151 9/23/2025
9.8.0-beta.393 155 9/23/2025
9.8.0-beta.392 151 9/23/2025
9.8.0-beta.389 269 9/18/2025
9.8.0-beta.388 273 9/16/2025
9.8.0-beta.386 226 9/15/2025
9.8.0-beta.385 217 9/15/2025
9.8.0-beta.384 71 9/13/2025
9.8.0-beta.376 164 9/8/2025
9.8.0-beta.375 84 9/6/2025
9.8.0-beta.373 160 9/5/2025
9.8.0-beta.372 154 9/4/2025
9.8.0-beta.370 147 9/2/2025
9.8.0-beta.364 148 9/1/2025
9.7.2 395 8/29/2025
9.7.2-beta.362 182 8/29/2025
9.7.2-beta.361 201 8/29/2025
9.7.2-beta.360 187 8/29/2025
9.7.2-beta.359 190 8/28/2025
9.7.2-beta.358 194 8/28/2025
9.7.2-beta.357 190 8/28/2025
9.7.1 254 8/27/2025
9.7.1-beta.355 192 8/27/2025
9.7.1-beta.354 198 8/27/2025
9.7.1-beta.353 196 8/27/2025
9.7.1-beta.352 200 8/27/2025
9.7.1-beta.351 188 8/27/2025
9.7.1-beta.348 159 8/14/2025
9.7.1-beta.344 99 8/10/2025
9.7.1-beta.343 233 8/8/2025
9.7.1-beta.342 231 8/7/2025
9.7.1-beta.341 227 8/6/2025
9.7.1-beta.340 213 8/5/2025
9.7.1-beta.339 209 8/5/2025
9.7.0 199 8/1/2025
9.7.0-beta.337 114 8/1/2025
9.7.0-beta.336 113 8/1/2025
9.7.0-beta.335 120 8/1/2025
9.7.0-beta.333 127 7/30/2025
9.6.1-beta.332 120 7/30/2025
9.6.1-beta.331 118 7/30/2025
9.6.1-beta.330 126 7/30/2025
9.6.1-beta.329 118 7/30/2025
9.6.1-beta.328 161 7/29/2025
9.6.1-beta.327 139 7/28/2025
9.6.1-beta.326 143 7/28/2025
9.6.0 275 7/10/2025
9.6.0-beta.324 153 7/10/2025
9.5.1-beta.323 150 7/10/2025
9.5.1-beta.322 154 7/10/2025
9.5.1-beta.321 157 7/10/2025
9.5.1-beta.320 152 7/9/2025
9.5.1-beta.319 152 7/8/2025
9.5.1-beta.318 151 7/2/2025
9.5.1-beta.317 148 6/30/2025
9.5.1-beta.315 160 6/26/2025
9.5.1-beta.314 179 6/23/2025
9.5.1-beta.313 133 6/20/2025
9.5.1-beta.312 165 6/20/2025
9.5.1-beta.311 184 6/18/2025
9.5.1-beta.310 148 6/17/2025
9.5.1-beta.309 164 6/17/2025
9.5.1-beta.308 156 6/17/2025
9.5.1-beta.307 177 6/16/2025
9.5.1-beta.306 315 6/11/2025
9.5.1-beta.305 131 6/7/2025
9.5.1-beta.304 159 6/6/2025
9.5.1-beta.303 178 6/4/2025
9.5.1-beta.302 146 6/4/2025
9.5.1-beta.301 173 6/2/2025
9.5.1-beta.300 175 5/28/2025
9.5.0 289 5/27/2025
9.5.0-beta.299 173 5/27/2025
9.5.0-beta.298 177 5/26/2025
9.5.0-beta.297 135 5/24/2025
9.5.0-beta.296 102 5/24/2025
9.5.0-beta.295 85 5/24/2025
9.4.1-beta.291 172 5/19/2025
9.4.1-beta.289 166 5/16/2025
9.4.1-beta.288 227 5/16/2025
9.4.1-beta.287 246 5/16/2025
9.4.1-beta.286 242 5/16/2025
9.4.1-beta.285 254 5/14/2025
9.4.1-beta.284 254 5/13/2025
9.4.1-beta.283 260 5/12/2025
9.4.1-beta.282 183 5/7/2025
9.4.1-beta.280 224 5/2/2025
9.4.1-beta.279 172 5/2/2025
9.4.1-beta.277 200 4/23/2025
9.4.1-beta.276 164 4/23/2025
9.4.1-beta.275 176 4/23/2025
9.4.1-beta.274 175 4/23/2025
9.4.1-beta.273 191 4/23/2025
9.4.1-beta.272 194 4/23/2025
9.4.1-beta.271 191 4/23/2025
9.4.1-beta.270 176 4/20/2025
9.4.0 330 4/20/2025
9.4.0-beta.269 205 4/20/2025
9.4.0-beta.268 190 4/20/2025
9.3.1-beta.267 207 4/20/2025
9.3.1-beta.266 114 4/19/2025
9.3.1-beta.265 196 4/15/2025
9.3.1-beta.264 207 4/15/2025
9.3.1-beta.263 220 4/15/2025
9.3.1-beta.262 227 4/15/2025
9.3.1-beta.260 197 4/10/2025
9.3.1-beta.259 203 4/8/2025
9.3.1-beta.258 165 4/8/2025
9.3.1-beta.257 198 4/8/2025
9.3.1-beta.256 186 4/8/2025
9.3.1-beta.255 196 4/8/2025
9.3.1-beta.254 207 4/8/2025
9.3.1-beta.253 169 4/1/2025
9.3.1-beta.252 150 3/27/2025
9.3.1-beta.250 170 3/27/2025
9.3.1-beta.249 180 3/27/2025
9.3.1-beta.248 147 3/27/2025
9.3.1-beta.247 164 3/27/2025
9.3.1-beta.244 516 3/25/2025
9.3.1-beta.242 510 3/24/2025
9.3.1-beta.241 190 3/19/2025
9.3.0 1,401 3/19/2025
9.3.0-beta.239 174 3/19/2025
9.2.2-beta.237 181 3/19/2025
9.2.2-beta.236 150 3/14/2025
9.2.2-beta.230 193 3/13/2025
9.2.2-beta.229 172 3/13/2025
9.2.2-beta.228 207 3/11/2025
9.2.2-beta.227 187 3/11/2025
9.2.2-beta.226 187 3/11/2025
9.2.2-beta.225 180 3/11/2025
9.2.2-beta.224 174 3/11/2025
9.2.2-beta.223 203 3/10/2025
9.2.2-beta.222 165 3/10/2025
9.2.2-beta.220 171 3/9/2025
9.2.2-beta.218 192 3/9/2025
9.2.2-beta.217 236 3/7/2025
9.2.2-beta.216 231 3/7/2025
9.2.2-beta.215 234 3/7/2025
9.2.2-beta.214 214 3/5/2025
9.2.2-beta.213 216 3/5/2025
9.2.2-beta.212 224 3/5/2025
9.2.2-beta.211 235 3/4/2025
9.2.2-beta.210 236 3/4/2025
9.2.2-beta.208 103 3/3/2025
9.2.1 246 3/3/2025
9.2.1-beta.207 153 3/2/2025
9.2.1-beta.206 132 3/1/2025
9.2.1-beta.205 131 2/27/2025
9.2.1-beta.204 118 2/26/2025
9.2.1-beta.203 115 2/26/2025
9.2.0 239 2/26/2025
9.2.0-beta.202 100 2/26/2025
9.2.0-beta.201 114 2/26/2025
9.2.0-beta.199 127 2/26/2025
9.2.0-beta.198 93 2/26/2025
9.1.1-beta.197 142 2/25/2025
9.1.1-beta.196 117 2/25/2025
9.1.1-beta.195 119 2/25/2025
9.1.1-beta.194 111 2/25/2025
9.1.1-beta.193 133 2/25/2025
9.1.1-beta.192 146 2/24/2025
9.1.1-beta.191 131 2/24/2025
9.1.1-beta.190 105 2/19/2025
9.1.1-beta.189 120 2/19/2025
9.1.1-beta.188 125 2/19/2025
9.1.1-beta.187 128 2/19/2025
9.1.1-beta.183 140 2/18/2025
9.1.1-beta.182 137 2/18/2025
9.1.1-beta.181 147 2/18/2025
9.1.1-beta.180 114 2/17/2025
9.1.1-beta.178 139 2/17/2025
9.1.1-beta.177 136 2/12/2025
9.1.1-beta.176 116 2/11/2025
9.1.1-beta.175 131 2/11/2025
9.1.1-beta.173 142 2/10/2025
9.1.1-beta.169 109 2/6/2025
9.1.1-beta.168 118 2/5/2025
9.1.1-beta.166 123 2/5/2025
9.1.1-beta.165 126 2/5/2025
9.1.1-beta.164 128 2/3/2025
9.1.1-beta.162 119 2/3/2025
9.1.1-beta.155 106 1/30/2025
9.1.1-beta.154 124 1/30/2025
9.1.1-beta.153 98 1/30/2025
9.1.1-beta.152 120 1/29/2025
9.1.1-beta.150 123 1/29/2025
9.1.1-beta.148 126 1/26/2025
9.1.1-beta.147 127 1/26/2025
9.1.1-beta.146 122 1/23/2025
9.1.1-beta.145 112 1/22/2025
9.1.1-beta.144 109 1/22/2025
9.1.1-beta.142 93 1/22/2025
9.1.1-beta.140 115 1/22/2025
9.1.1-beta.139 129 1/21/2025
9.1.1-beta.138 141 1/20/2025
9.1.1-beta.137 90 1/17/2025
9.1.1-beta.136 90 1/15/2025
9.1.1-beta.135 78 1/15/2025
9.1.1-beta.134 64 1/15/2025
9.1.1-beta.128 88 1/9/2025
9.1.1-beta.127 84 1/9/2025
9.1.1-beta.126 102 1/9/2025
9.1.1-beta.125 119 1/9/2025
9.1.1-beta.124 122 1/9/2025
9.1.0 530 12/12/2024
9.1.0-beta.123 125 1/3/2025
9.1.0-beta.122 127 1/3/2025
9.1.0-beta.121 132 1/2/2025
9.1.0-beta.120 103 12/30/2024
9.1.0-beta.119 123 12/30/2024
9.1.0-beta.118 117 12/30/2024
9.1.0-beta.116 118 12/30/2024
9.1.0-beta.114 123 12/30/2024
9.1.0-beta.113 96 12/30/2024
9.1.0-beta.112 101 12/18/2024
9.1.0-beta.110 105 12/16/2024
9.1.0-beta.109 137 12/12/2024
9.0.1-beta.108 143 12/12/2024
9.0.1-beta.107 103 12/11/2024
9.0.1-beta.106 134 12/12/2024
9.0.1-beta.104 101 12/11/2024
9.0.1-beta.102 101 12/6/2024
9.0.1-beta.99 129 12/6/2024
9.0.1-beta.98 100 12/6/2024
9.0.1-beta.95 128 12/5/2024
9.0.1-beta.94 121 12/5/2024
9.0.1-beta.93 126 12/2/2024
9.0.1-beta.92 120 11/30/2024
9.0.1-beta.91 125 11/30/2024
9.0.1-beta.90 114 11/29/2024
9.0.1-beta.89 128 11/29/2024
9.0.1-beta.88 126 11/27/2024
9.0.1-beta.87 115 11/27/2024
9.0.1-beta.86 129 11/27/2024
9.0.1-beta.84 105 11/24/2024
9.0.1-beta.83 131 11/22/2024
9.0.1-beta.82 118 11/21/2024
9.0.1-beta.81 99 11/19/2024
9.0.1-beta.80 115 11/19/2024
9.0.1-beta.79 119 11/19/2024
9.0.1-beta.77 135 11/15/2024
9.0.0 225 11/15/2024
9.0.0-beta.76 127 11/14/2024
9.0.0-beta.75 128 11/14/2024
9.0.0-beta.74 114 11/14/2024
9.0.0-beta.73 104 11/14/2024
9.0.0-beta.72 121 11/14/2024
9.0.0-beta.71 126 11/13/2024
9.0.0-beta.70 126 11/13/2024
9.0.0-beta.69 119 11/13/2024
9.0.0-beta.68 101 11/13/2024
9.0.0-beta.67 133 11/13/2024
9.0.0-beta.66 145 11/13/2024
9.0.0-beta.63 130 11/12/2024
9.0.0-beta.54 134 10/31/2024
1.0.0-beta.60 111 11/11/2024
1.0.0-beta.58 133 11/4/2024
1.0.0-beta.57 120 11/1/2024
1.0.0-beta.56 111 11/1/2024
1.0.0-beta.55 115 11/1/2024