AzureSearchExtensions
Class static net10.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)extensionIResourceBuilder<AzureSearchResource> Adds an Azure AI Search service resource to the application model.
WithRoleAssignments(IResourceBuilder<T>, IResourceBuilder<AzureSearchResource>, SearchBuiltInRole[])extensionIResourceBuilder<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.