# Aspire.Hosting.Azure.Search

- Module: `Aspire.Hosting.Azure.Search`
- Version: `17.0.0`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)
- Functions: `2`
- Types: `6`

## Handles

- [AzureBicepResource](/reference/api/go/aspire.hosting.azure.search/azurebicepresource.md) -- `handle` - 0 members
- [AzureEnvironmentResource](/reference/api/go/aspire.hosting.azure.search/azureenvironmentresource.md) -- `handle` - 0 members
- [AzureProvisioningResource](/reference/api/go/aspire.hosting.azure.search/azureprovisioningresource.md) -- `handle` - 0 members
- [AzureSearchResource](/reference/api/go/aspire.hosting.azure.search/azuresearchresource.md) -- `handle` - 0 members
- [AzureUserAssignedIdentityResource](/reference/api/go/aspire.hosting.azure.search/azureuserassignedidentityresource.md) -- `handle` - 0 members

## Enums

- [AzureSearchRole](/reference/api/go/aspire.hosting.azure.search/azuresearchrole.md) -- `enum` - 3 values -- Represents ATS-compatible Azure AI Search roles.

## Functions

- [AddAzureSearch](/reference/api/go/aspire.hosting.azure.search/addazuresearch.md) -- `method` - on `DistributedApplicationBuilder` -- Adds an Azure AI Search service resource to the application model.
- [WithSearchRoleAssignments](/reference/api/go/aspire.hosting.azure.search/withsearchroleassignments.md) -- `method` - on `Resource` -- 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.
