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