Azure Cognitive Search Extension for Azure Pipelines
Fork of https://github.com/joalmeid/azsearch-ado-extension
I raised a defect against source repo to fix issues with URL in index service and missing skillset code. But it seems Joao has not responded to any mails and PRs so far , so doing this fork for an urgent need in my project
This extension allows you to include Azure Cognitive Search operations within your DevOps practices - specifically, in your CICD pipelines. Currently the extension includes all main operations around the main Azure Search concepts like Data Source, Index and Indexer.
It doesn't matter if you're more experienced with Azure Pipelines with the YAML pipelines or Classic Editor.
Highlights
This extension is cross platform. You can run it from Windows, Linux or macOS self-hosted agents.
This extension allows you to include Azure Search operations in your DevOps practices. It covers operations on Data Sources, Indexes and Indexers.
Allows you to include data prep and ingest it into your solution environments
The Azure Search Extension include the following contributions:
1. Indexer Operations Task
2. Index Operations Task
3. Synonym Map Operations Task
4. Skillset Operations Task
5. Document Operations Task
Prerequisites
- You must have an active Azure subscription. Create a new subscription at https://azure.com.
- You must also have an active Azure DevOps account and an organization. Create a new account at https://dev.azure.com.
- Install this extension to your organization. To do this, you must be an admin of the organization.
- Once installed, you may have to have your admin make the extension available to you or your project.
- You must have at least one Azure Search resource.
Quick steps to get started
To use the Azure Search extension, let's start by:
- Create a Datasource in your Azure Search resource;
- Create an Index in your Azure Search resource;
- Create an Indexer in your Azure Search resource;
Azure Search Extension Tasks
Indexer Operations Task
# Indexer Operations Task
# Create or Update a datasource in your pipeline
- task: AzureSearchIndexerOperation@1
displayName: 'Indexer Operation: CreateUpdateDataSource'
inputs:
azureSubscription: $(azureServiceConnection)
ResourceGroupName: 'dev-myProj-rg'
AzureCognitiveSearch: 'dev-proj-as'
JsonPayloadLocation: inlineJson
InlineJsonPayload: |
{
"description": "Sample Tx Data",
"type": "azureblob",
"credentials": { "connectionString": "$(StorageConnectionString)" },
"container": { "name": "txdata" }
}
DatasourceName: 'tx-ds'