Failed to delete resource

shota sato 25 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.
{count} vote

2 answers

Sort by: Most helpful
  1. Miguel Gonçalves 971 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. shota sato 25 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}"
    

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.