withSearchRoleAssignments
Method
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[]): IResourceParameters
target AzureSearchResource roles AzureSearchRole[] Returns
IResource Applies to
This method applies to the following types:
type
ContainerResource type
ExecutableResource type
ProjectResource type
ParameterResource type
ContainerRegistryResource type
DotnetToolResource type
ExternalServiceResource type
CSharpAppResource type
AzureSearchResource type
AzureBicepResource type
AzureProvisioningResource type
AzureEnvironmentResource type
AzureUserAssignedIdentityResource