WithSearchRoleAssignments
Method
func (Resource) WithSearchRoleAssignments( target AzureSearchResource, roles []AzureSearchRole,) ResourceSignature
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,) ResourceParameters
targetAzureSearchResource The target Azure AI Search service resource.roles[]AzureSearchRole The Azure AI Search roles to be assigned.Returns
ResourceThe resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
AzureBicepResourcetype
AzureEnvironmentResourcetype
AzureProvisioningResourcetype
AzureSearchResourcetype
AzureUserAssignedIdentityResourcetype
CSharpAppResourcetype
ContainerRegistryResourcetype
ContainerResourcetype
DotnetToolResourcetype
ExecutableResourcetype
ExternalServiceResourcetype
ParameterResourcetype
ProjectResource