Scenario:
You have created a Search Service and you want to import your data from the Storage account which is behind a firewall.
There are certain times when you need to update your Indexer for additional properties for a particular search service. So, while trying to update the Indexer, you navigate to “Add Indexer” option and then under Settings tab, you update the required properties.
While updating the Indexer, suddenly you encounter that it failed with the below error message.
Failed to update indexer ‘xxxxxx-indexer', error: 'Error with data source: Credentials provided in the connection string are invalid or have expired. For more information on troubleshooting connection issues to Azure Storage accounts, please see https://go.microsoft.com/fwlink/?linkid=2049388 Please adjust your data source definition in order to proceed.'
You start wondering! Maybe your storage connection string has expired, or it is wrongly added, and you regenerate the connection strings again. But still the error prevails.
Cause:
Both storage and search services are in the same region and that is the reason for the above error.
Case 1:
Verification:
Case 2:
If by any chance, your application does not permit you to keep your search service and storage account in a different region, please follow the next steps below:
The above will work in scenarios where your storage account and Search service is in same region and same subscriptions.
Case 3:
Another option that can be leveraged is to add the resource Instance rule if your storage account and search service is in different subscriptions in the same tenant.
Reference Links:
Configure Azure Storage firewalls and virtual networks | Microsoft Docs
Connect as trusted service - Azure Cognitive Search | Microsoft Docs
Configure Azure Storage firewalls and virtual networks | Microsoft Docs
Connect using a managed identity - Azure Cognitive Search | Microsoft Docs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.