withSearchRoleAssignments
Method
interface ContainerResource { // ... omitted for brevity withSearchRoleAssignments( target: AzureSearchResource, roles: AzureSearchRole[]): IResource;}Signature
method
withSearchRoleAssignments builderAssigns 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
targetAzureSearchResource rolesAzureSearchRole[] Returns
IResource Applies to
This method applies to the following types:
type
ContainerResourcetype
ExecutableResourcetype
ProjectResourcetype
ParameterResourcetype
ContainerRegistryResourcetype
DotnetToolResourcetype
ExternalServiceResourcetype
CSharpAppResourcetype
AzureSearchResourcetype
AzureBicepResourcetype
AzureProvisioningResourcetype
AzureEnvironmentResourcetype
AzureUserAssignedIdentityResource