Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddAzureSqlServer

Method
📦 Aspire.Hosting.Azure.Sql v17.0.0
func (DistributedApplicationBuilder) AddAzureSqlServer(name string) AzureSqlServerResource

Signature

methodAddAzureSqlServerbuilder
Adds an Azure SQL Database (server) resource to the application model.
AddAzureSqlServer(name string) AzureSqlServerResource
namestringThe name of the resource.
AzureSqlServerResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder