AzureSearchExtensions
Class static net8.0
Provides extension methods for adding the Azure AI Search resources to the application model.
namespace Aspire.Hosting;
public static class AzureSearchExtensions{ // ...}Methods2
Section titled MethodsAddAzureSearch(IDistributedApplicationBuilder, string)extensionats exportIResourceBuilder<AzureSearchResource> Adds an Azure AI Search service resource to the application model.
WithRoleAssignments(IResourceBuilder<T>, IResourceBuilder<AzureSearchResource>, SearchBuiltInRole[])extensionats ignoredIResourceBuilder<T> Assigns the specified roles to the given resource, granting it the necessary permissions on the target Azure AI Search service resource. This replaces the default role assignments for the resource.