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)
- Host: GitHub
- URL: https://github.com/kimtth/rag-ai-search-index-blob-trigger
- Owner: kimtth
- Created: 2025-07-19T01:55:35.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-07-21T13:39:44.000Z (3 months ago)
- Last Synced: 2025-07-21T15:37:28.972Z (3 months ago)
- Topics: azure-ai-search, azure-functions, search-indexing
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```