Partager via


AzureSearchExtensions.AddAzureSearch Method

Definition

Overloads

AddAzureSearch(IDistributedApplicationBuilder, String)

Adds an Azure AI Search service resource to the application model.

AddAzureSearch(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureSearchResource>,ResourceModuleConstruct,SearchService>)

Adds an Azure AI Search service resource to the application model.

AddAzureSearch(IDistributedApplicationBuilder, String)

Source:
AzureSearchExtensions.cs
Source:
AzureSearchExtensions.cs

Adds an Azure AI Search service resource to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureSearchResource> AddAzureSearch (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddAzureSearch : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureSearchResource>
<Extension()>
Public Function AddAzureSearch (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of AzureSearchResource)

Parameters

builder
IDistributedApplicationBuilder

The builder for the distributed application.

name
String

The name of the Azure AI Search resource.

Returns

A reference to the IResourceBuilder<T>.

Applies to

AddAzureSearch(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureSearchResource>,ResourceModuleConstruct,SearchService>)

Source:
AzureSearchExtensions.cs

Adds an Azure AI Search service resource to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureSearchResource> AddAzureSearch (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureSearchResource>,Aspire.Hosting.ResourceModuleConstruct,Azure.Provisioning.Search.SearchService>? configureResource);
static member AddAzureSearch : Aspire.Hosting.IDistributedApplicationBuilder * string * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureSearchResource>, Aspire.Hosting.ResourceModuleConstruct, Azure.Provisioning.Search.SearchService> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureSearchResource>
<Extension()>
Public Function AddAzureSearch (builder As IDistributedApplicationBuilder, name As String, configureResource As Action(Of IResourceBuilder(Of AzureSearchResource), ResourceModuleConstruct, SearchService)) As IResourceBuilder(Of AzureSearchResource)

Parameters

builder
IDistributedApplicationBuilder

The builder for the distributed application.

name
String

The name of the Azure AI Search resource.

configureResource
Action<IResourceBuilder<AzureSearchResource>,ResourceModuleConstruct,SearchService>

Callback to configure the underlying SearchService resource.

Returns

A reference to the IResourceBuilder<T>.

Applies to