Setup Guide
This guide walks you through creating an Azure AI Search service and obtaining the API key and endpoint URL required to use the Azure AI Search connector.
Prerequisites
- An active Microsoft Azure account. If you do not have one, sign up for a free Azure account.
Step 1: Create an Azure AI Search service
- Sign in to the Azure Portal.
- Select Create a resource and search for AI Search.
- Select AI Search and select Create.
- Fill in the required details:
- Resource group: Select an existing resource group or create a new one.
- Service name: Enter a unique name (this becomes part of your endpoint URL).
- Location: Select a region close to your application.
- Pricing tier: Select a tier based on your needs (the Free tier is available for testing).
- Select Review + create, then Create to provision the service.
note
The Free tier allows one search service per subscription with limited storage and throughput. For production workloads, consider the Basic or Standard tiers.
Step 2: Get the service URL and admin key
- Once the service is deployed, navigate to your Azure AI Search service in the Azure Portal.
- In the Overview section, note the URL — for example,
https://your-service.search.windows.net. - Navigate to Settings > Keys in the left menu.
- Copy either the Primary admin key or Secondary admin key.
warning
Admin keys grant full access to your search service, including creating, modifying, and deleting indexes and documents. Use a query key for client-facing applications that only need search access.
tip
Store the API key securely. Do not commit it to source control. Use Ballerina's configurable feature and a Config.toml file to supply it at runtime.
What's next
- Action reference: Available operations