Can Index Replicas be retained when an Azure Search Index is re-created using the Push method?

Sejune Oh 30 Reputation points
2025-01-07T03:38:17.6666667+00:00

Hi guys
I'm recreating the Azure Search Index using the push method.

We use push method when we recreate index in .NET API project

I was wondering if it is correct that when a Search Index is deleted and recreated, the replica of the Index is also deleted?

If it is correct that the replicas are deleted when the index is recreated, does this mean I need to add additional coverable indexes or use Indexer?

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,141 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,141 questions
0 comments No comments
{count} votes

Accepted answer
  1. Laxman Reddy Revuri 1,525 Reputation points Microsoft Vendor
    2025-01-07T09:10:41.2566667+00:00

    Hi @Sejune Oh
    Thanks for the question and using MS Q&A platform.
    1.Yes, that's correct. When you delete and recreate an Azure Search index, the replicas are also deleted along with the primary index.

    2.Replicas are full copies of the parent index, including both its schema and data. They are tightly coupled to the parent index.
    When the parent index is deleted, all associated replicas must also be deleted to ensure consistency.

    3.when recreating the index using the push method, you will need to:
    Recreate the index.
    Push your data into the new index.
    Explicitly reconfigure the replicas.
    Update or rebuild an index - Azure AI Search | Microsoft Learn
    4.Using the Push method:
    After recreating the index, you'll need to explicitly add back the replicas. This requires reconfiguring the replica count in your index settings.
    5.Switching to using an Indexer:
    The indexer helps maintain replicas more easily during updates. It will automatically keep the replicas synchronized. You won't need to manually recreate replicas each time.
    references: Indexer overview - Azure AI Search | Microsoft Learn

    Please accept as "Yes" if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.