crestapps/crestapps.agentskills/crestapps-core-azure-ai-search
Claude Code and agent skill by crestapps/crestapps.agentskills
- community
Checking that the SKILL.md file is still in the repository.
Skill for using Azure AI Search as the CrestApps.Core indexing and vector backend. Covers CrestApps.Core.Azure.AISearch and CrestApps.Core.AI.Azure.AISearch, AddAzureAISearch on the indexing builder with AddAIDocuments, AddAIDataSources and AddAIMemory, AddCoreAzureAISearchServices with a configuration section or a host-supplied SearchIndexClient factory, the AddAzureAISearchVectorSearchService, AddAzureAISearchMemoryVectorSearchService and AddAzureAISearchAIDataSourceSourceHandler registrations with DocumentIndexColumnNames, escaping filter values with ODataFilter, AzureAISearchConnectionOptions with Default, ApiKey and ManagedIdentity authentication, AddAzureAISearchODataFilterTranslator, the filters complex field and typed knowledge columns, in-place schema upgrades through TryAddFieldsAsync, external Azure AI Search source mappings with IAIDataSourceChangeNotifier, and troubleshooting tier, authentication and filter errors.
Install
npx vskill@latest install crestapps/crestapps.agentskills/crestapps-core-azure-ai-searchSKILL.md
The same SKILL.md was published earlier as crestapps/crestapps.agentskills/crestapps-core-azure-ai-search.
CrestApps.Core Azure AI Search
Use Azure AI Search as the knowledge-base backend for AI documents, AI data sources and AI memory. For the data source model see crestapps-core-data-sources.
Registration
| Call | Package | Adds | |
|---|---|---|---|
AddCoreAzureAISearchServices(section) | CrestApps.Core.Azure.AISearch | AzureAISearchConnectionOptions, IAzureAISearchClientFactory, a singleton SearchIndexClient, keyed IDataSourceContentManager, IDataSourceDocumentReader, IODataFilterTranslator, ISearchIndexManager, ISearchDocumentManager | |
AddAzureAISearchODataFilterTranslator() | CrestApps.Core.Azure.AISearch | only the keyed translator, for hosts that bring their own clients | |
AddAIDocuments() / AddCoreAzureAISearchAIDocumentSource() | CrestApps.Core.AI.Azure.AISearch | AIDocuments index-profile source, profile handler, keyed IVectorSearchService | |
AddAIDataSources() / AddCoreAzureAISearchAIDataSource() | CrestApps.Core.AI.Azure.AISearch | DataSource index-profile source, keyed AzureAISearchAIDataSourceSourceHandler, and AddCoreAIDataSourceRag() | |
AddAIMemory() / AddCoreAzureAISearchAIMemorySource() | CrestApps.Core.AI.Azure.AISearch | AIMemory index-profile source, profile handler, keyed IMemoryVectorSearchService |
Every keyed service uses AISearchConstants.ProviderName ("AzureAISearch").
Configuration
AzureAISearchConnectionOptions: Endpoint, AuthenticationType (Default uses DefaultAzureCredential and is the fallback for empty or unknown values, ApiKey, ManagedIdentity), ApiKey, IdentityClientId (user-assigned identity) and IndexPrefix. The older IndexesPrefix is still honored when IndexPrefix is empty. Prefer managed identity in Azure, and keep any admin key out of source control. Vector search needs the Basic tier or higher.
Filters and Typed Columns
- The translator prefixes source fields with
filters/(category eq 'support'becomesfilters/category eq 'support'). Azure AI Search only filters on fields the schema declares filterable, so the knowledge base index must declare thefilterscomplex field and each sub-field you filter on. contentType,rootId,parentIdandpagemap to top-level columns, andcontentType eq nullis a null test.AzureAISearchIndexManager.TryAddFieldsAsyncadds the typed columns to an existing index on the next sync.
External Azure AI Search Sources
An AIDataSource with Source = AIDataSourceSourceTypes.AzureAISearch reads a remote index configured on the data source itself: Endpoint, AuthenticationType, IndexName, IdentityClientId, and an ApiKey protected with AIDataSourceProtectionConstants.SourceSecretPurpose. This is separate from the backend options above. Notify the sync pipeline with IAIDataSourceChangeNotifier when the remote index changes.
Supplying Your Own Client
A host that already holds a SearchIndexClient, such as a multi-tenant host with one client per tenant, passes a Func<IServiceProvider, SearchIndexClient> instead of a configuration section:
| Method | Registers | |
|---|---|---|
AddCoreAzureAISearchServices(Func<IServiceProvider, SearchIndexClient>) | content manager, document reader, filter translator, index and document managers with the supplied client | |
AddAzureAISearchDataSourceContentManager(clientFactory) / AddAzureAISearchDataSourceDocumentReader(clientFactory) | one service each | |
AddAzureAISearchVectorSearchService(clientFactory, DocumentIndexColumnNames columnNames = null) | keyed IVectorSearchService for AI documents | |
AddAzureAISearchMemoryVectorSearchService(clientFactory) | keyed IMemoryVectorSearchService | |
AddAzureAISearchAIDataSourceSourceHandler() or (Func<IServiceProvider, IAzureAISearchClientFactory>) | the external-source handler, with the default or a supplied client factory |
- The factory runs each time a scoped service is created, so return a client the host already holds.
- Search services are added only when none is registered for the key, so a host can register its own first and still call
AddAIDocuments()orAddAIMemory(). The source handler usesAddKeyedScoped, so the last registration wins. It connects with the credentials stored on each data source, which is why it takes anIAzureAISearchClientFactory. DocumentIndexColumnNames(inCrestApps.Core.Infrastructure) names the fields of the host's AI documents index; each defaults toDocumentIndexConstants.ColumnNames.
Escaping Filter Values
Build any filter from untrusted values with ODataFilter (CrestApps.Core.Azure.AISearch); every filter the provider builds goes through it:
Quote(null) returns the OData null literal. Field names are written as is, so pass only names your code controls.
Troubleshooting
| Symptom | Check | |
|---|---|---|
| Index profile creation reports the provider is not configured | Endpoint missing from the bound section | |
403 or credential errors | AuthenticationType, role assignments for the managed identity, or the admin key | |
| Filter request fails | declare filters and the filtered sub-fields as filterable | |
| Filter ignored with a warning | no keyed translator; call AddAzureAISearchODataFilterTranslator() |
Upgrading Within 2.0 Previews
- The section-based registrations now call the client-factory overloads with the factory's client, so their behavior is unchanged.
- Security fix: the AI document and AI memory searches did not escape the reference and user identifiers in their filters; a crafted identifier could widen the filter to other references or users. Both are escaped now. Escape your own filter values with
ODataFilter.
Upgrading from 1.x
- Existing indexes keep working; the typed columns are added in place and missing
contentTypereads astext. - Hosts that create their own
SearchIndexClientcan register onlyAddAzureAISearchODataFilterTranslator(). - Embeddings resolve through the
embeddingdeployment slot or the index profile'sEmbeddingDeploymentName; deploymentPurposeis gone.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/crestapps-core/skills/crestapps-core-azure-ai-search/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/crestapps/crestapps.agentskills/crestapps-core-azure-ai-search)