Cannot provision service 'enrichedcognitivesearch' running doc-intelligence/Labfiles/04-custom-skill/setup.sh

Scott Cable 85 Reputation points
2024-04-22T10:21:34.0833333+00:00

Following these instructions:
https://learn.microsoft.com/en-gb/training/modules/build-form-recognizer-custom-skill-for-azure-cognitive-search/4-exercise-build-deploy

Running the following file from Cloud Shell:
doc-intelligence/Labfiles/04-custom-skill/setup.sh

I get the following response:

Setting up Azure Cognitive Search. 
(ServiceNameUnavailable) Cannot provision service 'enrichedcognitivesearch' because a service with this name is already in use, or another request to provision a service with this name is still in progress RequestId: 0f8cbff5-93da-4367-9617-720f58445cde
Code: ServiceNameUnavailable
Message: Cannot provision service 'enrichedcognitivesearch' because a service with this name is already in use, or another request to provision a service with this name is still in progress RequestId: 0f8cbff5-93da-4367-9617-720f58445cde
Setup completed. 
Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,711 questions
{count} vote

Accepted answer
  1. dupammi 8,535 Reputation points Microsoft Vendor
    2024-04-22T12:20:07.9733333+00:00

    Hi @Scott Cable

    Thank you for using the Microsoft Q&A forum.

    The error message "Cannot provision service 'enrichedcognitivesearch' because a service with this name is already in use, or another request to provision a service with this name is still in progress" indicates that the service name 'enrichedcognitivesearch' is already in use or another request to provision a service with this name is still in progress.

    I was able to repro your error. See below: User's image

    To resolve this issue, you can try modifying the service name to a unique name that is not already in use. You can modify the setup.sh file to use a different service name.

    For example, I modified below two highlighted in yellow in a vi Editor:

    Note: It was "standard" sku for me. I just gave a unique name as "enrichedcognitivesearch1" instead of "enrichedcognitivesearch".

    vi setup.sh: User's image

    And then try running the setup.sh file again. See below and it was successful at my end : User's image

    I hope you understand. Thank you.


    Please don't forget to click Accept Answer and Yes if the provided answer was helpful.

    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.