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

Scott Cable 60 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,389 questions
{count} votes

1 answer

Sort by: Most helpful
  1. dupammi 6,645 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.

    0 comments No comments