WithSearchRoleAssignments

Method
📦 Aspire.Hosting.Azure.Search v17.0.0
func (Resource) WithSearchRoleAssignments(
target AzureSearchResource,
roles []AzureSearchRole,
) Resource

Signature

methodWithSearchRoleAssignmentsbuilder
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,
) Resource
targetAzureSearchResourceThe target Azure AI Search service resource.
roles[]AzureSearchRoleThe Azure AI Search roles to be assigned.
Resource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeAzureBicepResource
typeAzureEnvironmentResource
typeAzureProvisioningResource
typeAzureSearchResource
typeAzureUserAssignedIdentityResource
typeCSharpAppResource
typeContainerRegistryResource
typeContainerResource
typeDotnetToolResource
typeExecutableResource
typeExternalServiceResource
typeParameterResource
typeProjectResource