Failed to delete resource

shota sato 20 Reputation points
2024-06-13T09:16:32.6+00:00

I tried to delete an azure ai search resource, but failed with code "undefined".

I tried with another ai search resource in same region, but failed.

I reload web page and tried again, but failed.

User's image

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,027 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Miguel Gonçalves 961 Reputation points
    2024-06-13T10:06:52.6866667+00:00

    Hi Shota,

    One of the most common causes is the keys.

    You can try regenerate the keys and try again https://learn.microsoft.com/en-us/answers/questions/1340464/failed-to-retrieve-information-about-the-selected.
    If you recently delete resources with the same name, you also can purge the old objects, and try again https://learn.microsoft.com/en-us/azure/ai-services/recover-purge-resources


  2. ajkuma 26,216 Reputation points Microsoft Employee
    2024-06-17T11:33:47.2333333+00:00

    @shota sato , <edit>

    Glad to see that your issue is resolved and thanks for confirming the solution that worked. Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer. They can only accept answers by others, I' have summarized and posted the solution, request you to Accept the answer, it will benefit the community find the answers quickly.

    Scenario:

    Tried to delete an Azure AI search resource, but failed with code "undefined". Tried with another ai search resource in same region, but failed.

    User's image

    Copied the solution shared by @shota sato

    Resolution:

    Successfully deleted the resource using the following steps:

    1. Issued an access token in the cloud shell.
    2. Specified the resource to be deleted using the following command.
    3. Executed the command.
    curl -X DELETE "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}?api-version=2023-11-01" \
         -H "Content-Type: application/json" \
         -H "Authorization: Bearer ${access_token}"
    
    

    --edit--
    Just checking in to see if you had got a chance to see the previous response by Miguel.
    Kindly let us know if the issue is resolved or you need further assistance, share the requested/more info to help you better.

    0 comments No comments

  3. shota sato 20 Reputation points
    2024-07-16T06:31:34.4066667+00:00

    Successfully deleted the resource using the following steps:

    1. Issued an access token in the cloud shell.
    2. Specified the resource to be deleted using the following command.
    3. Executed the command.
    curl -X DELETE "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}?api-version=2023-11-01" \
         -H "Content-Type: application/json" \
         -H "Authorization: Bearer ${access_token}"
    
    0 comments No comments

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.