Unable to delete Azure cognitive search services resource due to SPL on a deleted resource

Harshad Tatwadi 0 Reputation points
2025-10-21T10:52:52.3833333+00:00

I have an orphaned SPL lock preventing deletion of a Search Service. The search resource references a deleted Cognitive Services SPL extension (test-01-resource). I cannot delete it from the portal or CLI. Please escalate to engineering to remove the orphaned SPL lock. I am also unable to create any support ticket to Microsoft as I am on pay-as-you-go subscription.
Could anyone please suggest?

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.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Praneeth Maddali 1,110 Reputation points Microsoft External Staff Moderator
    2025-10-21T11:24:17.7633333+00:00

    Hi @Harshad Tatwadi

    The issue occurs because an orphaned Shared Private Link (SPL) resource lock is blocking the deletion of the Azure Cognitive Search service. The SPL resource connected to your Search Service points to a deleted Cognitive Services SPL extension, which leads to the "LockedSPLResourceFound" error. As a result, the Search Service cannot be deleted from the portal or CLI until the orphaned SPL lock is cleared.

    Recommended steps for implementation:

    1. Verify Resource Locks Azure Portal: Navigate to Resource Group >Locks
      Azure CLI:
         az lock list --resource-group <ResourceGroupName> --output table  
         
         
      
    2. Delete Locks Azure Portal: Select and delete the lock
      Azure CLI:
         az lock delete --ids <LockId>  
         
         
      
    3. Remove SPL Resources
      List SPL resources:
         az search shared-private-link-resource list --resource-group <ResourceGroupName> --service-name <SearchServiceName>  
         
      
      Delete SPL resource:
         az search shared-private-link-resource delete --resource-group <ResourceGroupName> --service-name <SearchServiceName> --name <SPLResourceName>  
         
      
    4. Delete Cognitive Search Service:
    az search service delete --name <SearchServiceName> --resource-group <ResourceGroupName>  
    
    

    To assist you further with the orphaned Shared Private Link (SPL) lock issue preventing deletion of your Azure Cognitive Search service, could you please provide some additional details?

    Have you tried deleting the SPL resource or extension manually via the Azure portal or CLI?

    Are there any resource locks applied on the Search Service or related resources visible in the portal under "Locks"?

    Could you share any error messages or log outputs you received when attempting to delete the search resource?

    Have you checked if the Cognitive Services SPL extension referenced by the Search Service is still present or partially deleted?

    Please confirm the exact Azure subscription and region where the resource resides.

    Reference:

    https://free.blessedness.top/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json

    https://free.blessedness.top/en-us/azure/azure-resource-manager/management/delete-resource-group?utm_source=chatgpt.com&tabs=azure-powershell

    Kindly let us know if the above helps or you need further assistance on this issue.

     

    Please "upvote" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

  2. Harshad Tatwadi 0 Reputation points
    2025-10-22T07:29:59.3466667+00:00

    Thank you Praneeth. The mentioned steps did help and I can now delete the cognitive search service.

    thank you!


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.