Unable to create an Indexer to Index SharePoint data in Search Service

Derek D 10 Reputation points
2023-11-07T15:34:30.49+00:00

Per this guide, - https://learn.microsoft.com/en-us/azure/search/search-howto-index-sharepoint-online

the process to setup a SharePoint Indexer in Cognitive Search/Search Service is to send a POST request to create it. It then waits for up to 10 minutes for you to authenticate. Next step is to get the Status with a GET request. This should return a microsoft.com/devicelogin link and Code. You enter the code in, it authenticates everything and creates the Indexer.

This part of the process does not work for me. I enter the code, but my POST request never stops spinning and therefore the Indexer is not created. If I re-run it, it generates a new Code, but that doesn't work either.

Basically, my POST request never gets authenticated with this Device Code.

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.
960 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,949 questions
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 16,121 Reputation points Microsoft Employee
    2023-11-09T22:54:37.31+00:00

    @Derek D Based on the document you provided, it looks like you are following the correct steps to create an Indexer. However, it seems like you are having trouble authenticating your POST request with the device code.

    Have you tried checking the status of the indexer after entering the code? The document mentions that you should check the indexer status after entering the code. If the last indexer run has an error telling you to go to https://microsoft.com/devicelogin, go to that page and provide the new code.

    If you are still having trouble, could you please provide me with more information about the error message you are receiving? This will help me better understand the issue and provide you with a more accurate solution.


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.