AzureSqlExtensions.AddAzureSqlServer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an Azure SQL Database (server) resource to the application model.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureSqlServerResource> AddAzureSqlServer (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddAzureSqlServer : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureSqlServerResource>
<Extension()>
Public Function AddAzureSqlServer (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of AzureSqlServerResource)
Parameters
- builder
- IDistributedApplicationBuilder
The builder for the distributed application.
- name
- String
The name of the resource.
Returns
A reference to the IResourceBuilder<T> builder.