CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder 13.0.1-beta.468

Prefix Reserved
This is a prerelease version of CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder.
dotnet add package CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder --version 13.0.1-beta.468
                    
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder -Version 13.0.1-beta.468
                    
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.0.1-beta.468" />
                    
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.0.1-beta.468" />
                    
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.0.1-beta.468
                    
#r "nuget: CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder, 13.0.1-beta.468"
                    
#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.0.1-beta.468
                    
#: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.0.1-beta.468&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder&version=13.0.1-beta.468&prerelease
                    
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.0.1-beta.468 613 12/3/2025
13.0.1-beta.467 612 12/3/2025
13.0.0 300 11/25/2025
13.0.0-beta.462 127 11/25/2025
13.0.0-beta.456 133 11/23/2025
13.0.0-beta.454 78 11/23/2025
13.0.0-beta.453 98 11/22/2025
13.0.0-beta.450 104 11/22/2025
13.0.0-beta.448 108 11/22/2025
13.0.0-beta.444 334 11/17/2025
13.0.0-beta.443 254 11/17/2025
13.0.0-beta.440 87 11/15/2025
13.0.0-beta.439 228 11/12/2025
13.0.0-beta.438 219 11/12/2025
13.0.0-beta.436 220 11/12/2025
13.0.0-beta.435 230 11/11/2025
13.0.0-beta.433 145 11/10/2025
13.0.0-beta.432 145 11/10/2025
13.0.0-beta.431 138 11/6/2025
13.0.0-beta.430 133 11/6/2025
9.9.0 433 11/3/2025
9.9.0-beta.427 145 11/3/2025
9.8.1-beta.426 139 11/3/2025
9.8.1-beta.424 130 10/28/2025
9.8.1-beta.420 137 10/27/2025
9.8.1-beta.419 124 10/27/2025
9.8.1-beta.417 126 10/27/2025
9.8.1-beta.414 123 10/24/2025
9.8.1-beta.413 125 10/22/2025
9.8.1-beta.410 125 10/16/2025
9.8.1-beta.408 118 10/16/2025
9.8.1-beta.407 113 10/16/2025
9.8.1-beta.406 127 10/15/2025
9.8.0 327 9/26/2025
9.8.0-beta.405 124 10/15/2025
9.8.0-beta.404 123 10/13/2025
9.8.0-beta.402 133 9/29/2025
9.8.0-beta.401 129 9/29/2025
9.8.0-beta.399 125 9/26/2025
9.8.0-beta.398 127 9/25/2025
9.8.0-beta.397 133 9/25/2025
9.8.0-beta.395 126 9/24/2025
9.8.0-beta.394 133 9/23/2025
9.8.0-beta.393 134 9/23/2025
9.8.0-beta.392 131 9/23/2025
9.8.0-beta.389 250 9/18/2025
9.8.0-beta.388 262 9/16/2025
9.8.0-beta.386 204 9/15/2025
9.8.0-beta.385 203 9/15/2025
9.8.0-beta.384 50 9/13/2025
9.8.0-beta.376 140 9/8/2025
9.8.0-beta.375 61 9/6/2025
9.8.0-beta.373 143 9/5/2025
9.8.0-beta.372 137 9/4/2025
9.8.0-beta.370 132 9/2/2025
9.8.0-beta.364 127 9/1/2025
9.7.2 353 8/29/2025
9.7.2-beta.362 170 8/29/2025
9.7.2-beta.361 175 8/29/2025
9.7.2-beta.360 171 8/29/2025
9.7.2-beta.359 174 8/28/2025
9.7.2-beta.358 171 8/28/2025
9.7.2-beta.357 171 8/28/2025
9.7.1 226 8/27/2025
9.7.1-beta.355 176 8/27/2025
9.7.1-beta.354 180 8/27/2025
9.7.1-beta.353 177 8/27/2025
9.7.1-beta.352 180 8/27/2025
9.7.1-beta.351 175 8/27/2025
9.7.1-beta.348 144 8/14/2025
9.7.1-beta.344 82 8/10/2025
9.7.1-beta.343 203 8/8/2025
9.7.1-beta.342 209 8/7/2025
9.7.1-beta.341 208 8/6/2025
9.7.1-beta.340 200 8/5/2025
9.7.1-beta.339 194 8/5/2025
9.7.0 173 8/1/2025
9.7.0-beta.337 98 8/1/2025
9.7.0-beta.336 99 8/1/2025
9.7.0-beta.335 106 8/1/2025
9.7.0-beta.333 105 7/30/2025
9.6.1-beta.332 102 7/30/2025
9.6.1-beta.331 105 7/30/2025
9.6.1-beta.330 102 7/30/2025
9.6.1-beta.329 104 7/30/2025
9.6.1-beta.328 141 7/29/2025
9.6.1-beta.327 120 7/28/2025
9.6.1-beta.326 121 7/28/2025
9.6.0 239 7/10/2025
9.6.0-beta.324 136 7/10/2025
9.5.1-beta.323 132 7/10/2025
9.5.1-beta.322 132 7/10/2025
9.5.1-beta.321 138 7/10/2025
9.5.1-beta.320 136 7/9/2025
9.5.1-beta.319 133 7/8/2025
9.5.1-beta.318 135 7/2/2025
9.5.1-beta.317 128 6/30/2025
9.5.1-beta.315 134 6/26/2025
9.5.1-beta.314 158 6/23/2025
9.5.1-beta.313 121 6/20/2025
9.5.1-beta.312 153 6/20/2025
9.5.1-beta.311 164 6/18/2025
9.5.1-beta.310 135 6/17/2025
9.5.1-beta.309 150 6/17/2025
9.5.1-beta.308 135 6/17/2025
9.5.1-beta.307 154 6/16/2025
9.5.1-beta.306 299 6/11/2025
9.5.1-beta.305 104 6/7/2025
9.5.1-beta.304 145 6/6/2025
9.5.1-beta.303 158 6/4/2025
9.5.1-beta.302 130 6/4/2025
9.5.1-beta.301 150 6/2/2025
9.5.1-beta.300 155 5/28/2025
9.5.0 271 5/27/2025
9.5.0-beta.299 156 5/27/2025
9.5.0-beta.298 154 5/26/2025
9.5.0-beta.297 113 5/24/2025
9.5.0-beta.296 87 5/24/2025
9.5.0-beta.295 69 5/24/2025
9.4.1-beta.291 153 5/19/2025
9.4.1-beta.289 151 5/16/2025
9.4.1-beta.288 215 5/16/2025
9.4.1-beta.287 226 5/16/2025
9.4.1-beta.286 222 5/16/2025
9.4.1-beta.285 241 5/14/2025
9.4.1-beta.284 237 5/13/2025
9.4.1-beta.283 247 5/12/2025
9.4.1-beta.282 166 5/7/2025
9.4.1-beta.280 207 5/2/2025
9.4.1-beta.279 155 5/2/2025
9.4.1-beta.277 182 4/23/2025
9.4.1-beta.276 153 4/23/2025
9.4.1-beta.275 164 4/23/2025
9.4.1-beta.274 169 4/23/2025
9.4.1-beta.273 175 4/23/2025
9.4.1-beta.272 175 4/23/2025
9.4.1-beta.271 174 4/23/2025
9.4.1-beta.270 162 4/20/2025
9.4.0 315 4/20/2025
9.4.0-beta.269 186 4/20/2025
9.4.0-beta.268 168 4/20/2025
9.3.1-beta.267 181 4/20/2025
9.3.1-beta.266 99 4/19/2025
9.3.1-beta.265 178 4/15/2025
9.3.1-beta.264 190 4/15/2025
9.3.1-beta.263 206 4/15/2025
9.3.1-beta.262 206 4/15/2025
9.3.1-beta.260 184 4/10/2025
9.3.1-beta.259 185 4/8/2025
9.3.1-beta.258 148 4/8/2025
9.3.1-beta.257 174 4/8/2025
9.3.1-beta.256 175 4/8/2025
9.3.1-beta.255 177 4/8/2025
9.3.1-beta.254 191 4/8/2025
9.3.1-beta.253 150 4/1/2025
9.3.1-beta.252 138 3/27/2025
9.3.1-beta.250 155 3/27/2025
9.3.1-beta.249 164 3/27/2025
9.3.1-beta.248 128 3/27/2025
9.3.1-beta.247 152 3/27/2025
9.3.1-beta.244 500 3/25/2025
9.3.1-beta.242 492 3/24/2025
9.3.1-beta.241 170 3/19/2025
9.3.0 1,379 3/19/2025
9.3.0-beta.239 159 3/19/2025
9.2.2-beta.237 163 3/19/2025
9.2.2-beta.236 136 3/14/2025
9.2.2-beta.230 174 3/13/2025
9.2.2-beta.229 157 3/13/2025
9.2.2-beta.228 193 3/11/2025
9.2.2-beta.227 173 3/11/2025
9.2.2-beta.226 172 3/11/2025
9.2.2-beta.225 163 3/11/2025
9.2.2-beta.224 156 3/11/2025
9.2.2-beta.223 187 3/10/2025
9.2.2-beta.222 149 3/10/2025
9.2.2-beta.220 159 3/9/2025
9.2.2-beta.218 180 3/9/2025
9.2.2-beta.217 214 3/7/2025
9.2.2-beta.216 213 3/7/2025
9.2.2-beta.215 222 3/7/2025
9.2.2-beta.214 194 3/5/2025
9.2.2-beta.213 204 3/5/2025
9.2.2-beta.212 205 3/5/2025
9.2.2-beta.211 218 3/4/2025
9.2.2-beta.210 219 3/4/2025
9.2.2-beta.208 87 3/3/2025
9.2.1 222 3/3/2025
9.2.1-beta.207 139 3/2/2025
9.2.1-beta.206 117 3/1/2025
9.2.1-beta.205 114 2/27/2025
9.2.1-beta.204 103 2/26/2025
9.2.1-beta.203 99 2/26/2025
9.2.0 222 2/26/2025
9.2.0-beta.202 91 2/26/2025
9.2.0-beta.201 100 2/26/2025
9.2.0-beta.199 110 2/26/2025
9.2.0-beta.198 80 2/26/2025
9.1.1-beta.197 126 2/25/2025
9.1.1-beta.196 105 2/25/2025
9.1.1-beta.195 104 2/25/2025
9.1.1-beta.194 89 2/25/2025
9.1.1-beta.193 112 2/25/2025
9.1.1-beta.192 125 2/24/2025
9.1.1-beta.191 113 2/24/2025
9.1.1-beta.190 89 2/19/2025
9.1.1-beta.189 108 2/19/2025
9.1.1-beta.188 107 2/19/2025
9.1.1-beta.187 119 2/19/2025
9.1.1-beta.183 124 2/18/2025
9.1.1-beta.182 123 2/18/2025
9.1.1-beta.181 123 2/18/2025
9.1.1-beta.180 89 2/17/2025
9.1.1-beta.178 120 2/17/2025
9.1.1-beta.177 123 2/12/2025
9.1.1-beta.176 100 2/11/2025
9.1.1-beta.175 114 2/11/2025
9.1.1-beta.173 125 2/10/2025
9.1.1-beta.169 95 2/6/2025
9.1.1-beta.168 100 2/5/2025
9.1.1-beta.166 108 2/5/2025
9.1.1-beta.165 110 2/5/2025
9.1.1-beta.164 111 2/3/2025
9.1.1-beta.162 103 2/3/2025
9.1.1-beta.155 89 1/30/2025
9.1.1-beta.154 107 1/30/2025
9.1.1-beta.153 85 1/30/2025
9.1.1-beta.152 103 1/29/2025
9.1.1-beta.150 109 1/29/2025
9.1.1-beta.148 111 1/26/2025
9.1.1-beta.147 105 1/26/2025
9.1.1-beta.146 105 1/23/2025
9.1.1-beta.145 99 1/22/2025
9.1.1-beta.144 93 1/22/2025
9.1.1-beta.142 77 1/22/2025
9.1.1-beta.140 92 1/22/2025
9.1.1-beta.139 112 1/21/2025
9.1.1-beta.138 120 1/20/2025
9.1.1-beta.137 80 1/17/2025
9.1.1-beta.136 73 1/15/2025
9.1.1-beta.135 66 1/15/2025
9.1.1-beta.134 50 1/15/2025
9.1.1-beta.128 73 1/9/2025
9.1.1-beta.127 66 1/9/2025
9.1.1-beta.126 89 1/9/2025
9.1.1-beta.125 98 1/9/2025
9.1.1-beta.124 106 1/9/2025
9.1.0 513 12/12/2024
9.1.0-beta.123 111 1/3/2025
9.1.0-beta.122 112 1/3/2025
9.1.0-beta.121 112 1/2/2025
9.1.0-beta.120 90 12/30/2024
9.1.0-beta.119 103 12/30/2024
9.1.0-beta.118 102 12/30/2024
9.1.0-beta.116 103 12/30/2024
9.1.0-beta.114 108 12/30/2024
9.1.0-beta.113 80 12/30/2024
9.1.0-beta.112 88 12/18/2024
9.1.0-beta.110 91 12/16/2024
9.1.0-beta.109 113 12/12/2024
9.0.1-beta.108 116 12/12/2024
9.0.1-beta.107 85 12/11/2024
9.0.1-beta.106 112 12/12/2024
9.0.1-beta.104 82 12/11/2024
9.0.1-beta.102 84 12/6/2024
9.0.1-beta.99 110 12/6/2024
9.0.1-beta.98 78 12/6/2024
9.0.1-beta.95 114 12/5/2024
9.0.1-beta.94 101 12/5/2024
9.0.1-beta.93 116 12/2/2024
9.0.1-beta.92 99 11/30/2024
9.0.1-beta.91 104 11/30/2024
9.0.1-beta.90 97 11/29/2024
9.0.1-beta.89 117 11/29/2024
9.0.1-beta.88 107 11/27/2024
9.0.1-beta.87 97 11/27/2024
9.0.1-beta.86 111 11/27/2024
9.0.1-beta.84 86 11/24/2024
9.0.1-beta.83 112 11/22/2024
9.0.1-beta.82 93 11/21/2024
9.0.1-beta.81 85 11/19/2024
9.0.1-beta.80 98 11/19/2024
9.0.1-beta.79 101 11/19/2024
9.0.1-beta.77 119 11/15/2024
9.0.0 203 11/15/2024
9.0.0-beta.76 104 11/14/2024
9.0.0-beta.75 113 11/14/2024
9.0.0-beta.74 103 11/14/2024
9.0.0-beta.73 84 11/14/2024
9.0.0-beta.72 106 11/14/2024
9.0.0-beta.71 115 11/13/2024
9.0.0-beta.70 114 11/13/2024
9.0.0-beta.69 106 11/13/2024
9.0.0-beta.68 88 11/13/2024
9.0.0-beta.67 122 11/13/2024
9.0.0-beta.66 125 11/13/2024
9.0.0-beta.63 111 11/12/2024
9.0.0-beta.54 113 10/31/2024
1.0.0-beta.60 93 11/11/2024
1.0.0-beta.58 112 11/4/2024
1.0.0-beta.57 100 11/1/2024
1.0.0-beta.56 94 11/1/2024
1.0.0-beta.55 103 11/1/2024