Cannot delete azure ai search service on portal

Christian Herzog 20 Reputation points
2025-04-07T12:17:54.81+00:00

I want to delete an azurea ai search service, but it fails and continues to incur costs on my sponsored subscription. Copilot and help sites didn't provide any useful solution.image

I've just created that for some testing purpose. There is no index, indexer, skillset, datasource in it. I do have all the necessary permissions to delete the service, but it still doesn't work.

What now?

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

Accepted answer
  1. Sampath 3,750 Reputation points Microsoft External Staff Moderator
    2025-04-08T06:07:53.8866667+00:00

    Hello @Christian Herzog,

    I encountered the same error when a Shared Private Link was added.

    Error Screenshot

    To resolve this, navigate to the Networking section of Azure AI Search and locate the Shared Private Link.

    Delete the Shared Private Link, then retry deleting the Azure AI Search service.

    To delete a Shared Private Link (SPL) resource in Azure AI Search using the Azure CLI, run the following command:

    
    az search shared-private-link-resource delete --name <shared-private-link-name>  --resource-group <resource-group-name> --service-name <search-service-name> --yes
    
    

    Success Screenshot

    Please do not forget to click "Accept the answer” and Yes wherever the information provided helps you, this can be beneficial to other community members.

    If you have any other questions or still running into more issues, let me know in the "comments" and I would be happy to help you.

    2 people 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.