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:
- Verify Resource Locks Azure Portal: Navigate to Resource Group >Locks
Azure CLI:az lock list --resource-group <ResourceGroupName> --output table - Delete Locks Azure Portal: Select and delete the lock
Azure CLI:az lock delete --ids <LockId> - Remove SPL Resources
List SPL resources:
Delete SPL resource:az search shared-private-link-resource list --resource-group <ResourceGroupName> --service-name <SearchServiceName>az search shared-private-link-resource delete --resource-group <ResourceGroupName> --service-name <SearchServiceName> --name <SPLResourceName> - 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
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.