An open API service indexing awesome lists of open source software.

https://github.com/kimtth/rag-ai-search-index-blob-trigger

🔁 Trigger Azure AI Search Index Creation using an Azure Function Blob Trigger 📦⚡(Hybrid: Push + Pull)
https://github.com/kimtth/rag-ai-search-index-blob-trigger

azure-ai-search azure-functions search-indexing

Last synced: 2 months ago
JSON representation

🔁 Trigger Azure AI Search Index Creation using an Azure Function Blob Trigger 📦⚡(Hybrid: Push + Pull)

Awesome Lists containing this project

README

          

# Azure AI Search Indexer – Blob Triggered Azure Function

Azure Function with Blob Trigger to trigger indexing documents into Azure AI Search from Blob Storage.

### 🔧 Prerequisites

Select option 1 or 2 based on your scenario.

1. Access the blob container by `Access key`

- The value assigned to `connection="AzureWebJobsStorage"` should be updated to the production connection string if you used Azurelite locally.

2. Access the blob container by `Managed Identity`

> Ensure the following Azure roles are assigned to the identity running the function:

- Naviagte to Storage Account IAM.
- Assign Storage Blob Data Owner and Storage Queue Data Contributor to the function.
- Added environment variables with ServiceUri as postfix to the function: `__blobServiceUri` & `__queueServiceUri`. The sample uses `AZURE_SEARCH_STORAGE` as the value for ``.
- 🤔 Despite of settings, it still requires enabling `Allow storage account key access`: Singleton lock renewal failed for blob '.../host' with error code 403: KeyBasedAuthenticationNotPermitted.

> 💡 [Learn more about the Blob Trigger for Azure Functions](https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger)

### Deployment

Use the Azure Functions Core Tools to publish your Python function app:

```bash
func azure functionapp publish --python
```