Skip to content
Docs Try Aspire
Docs Try

withSearchRoleAssignments

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

Signature

method withSearchRoleAssignments builder
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
target AzureSearchResource
roles AzureSearchRole[]
IResource

Applies to

This method applies to the following types: