withSearchRoleAssignments

Method
📦 Aspire.Hosting.Azure.Search v17.0.0
interface ContainerResource {
// ... omitted for brevity
withSearchRoleAssignments(
target: AzureSearchResource,
roles: AzureSearchRole[]): IResource;
}

Signature

methodwithSearchRoleAssignmentsbuilder
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.
withSearchRoleAssignments(
target: AzureSearchResource,
roles: AzureSearchRole[]): IResource
targetAzureSearchResourceThe target Azure AI Search service resource.
rolesAzureSearchRole[]The Azure AI Search roles to be assigned.
IResource

Applies to

This method applies to the following types: