Can't delete Data Collection Endpoint

Aleh Kamisarau 0 Reputation points
2025-03-05T15:04:26.96+00:00

I had an Azure Monitor Private Link Scope and Data Collection Endpoint associated with it. They were in the same group. I was deleting this resource group. So AMPLS was deleted but for some reason the endpoint not. The association with AMPLS still exists here and it blocks the deletion. If I'm deleting this association, then it throws an error, that linked AMPLS is missing. If I re-create AMPLS with the same name, then deletion of the association goes without errors but it is not deleted. Also I tried to re-create the association, but in this case I have two of them with same name (the difference is in scopeId).
User's image

User's image

Obviously, the recently created can be deleted, but not the orphaned one. I have no idea what to do :)

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,502 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Suwarna S Kale 1,191 Reputation points
    2025-03-05T19:25:43.1833333+00:00

    Hello Aleh Kamisarau,

    Thank you for posting your question in the Microsoft Q&A forum.

    When you deleted the resource group, the Azure Monitor Private Link Scope (AMPLS) was deleted, but the Data Collection Endpoint (DCE) remained. The association between the AMPLS and the DCE still exists, which prevents the deletion of the DCE. Attempting to delete the association results in an error because the linked AMPLS is missing. Re-creating the AMPLS with the same name allows the deletion of the association to proceed without errors, but the orphaned association remains. This creates a situation where you have two associations with the same name but different scope IDs, and only the recently created one can be deleted.

    Please verify and confirm below configurations:

    Navigate to the Azure Portal and go to the Data Collection Endpoint resource.

    Check the Associations tab to see the existing associations with the AMPLS.

    Note the details of the orphaned association, including its scope ID.

    Re-create the Azure Monitor Private Link Scope (AMPLS) with the same name as the one that was deleted, this can be done using the Azure Portal, Azure CLI, or Azure PowerShell.

    Once the AMPLS is re-created, navigate back to the Data Collection Endpoint resource.

    Attempt to delete the association again. This should now proceed without errors since the linked AMPLS exists. However, note that the orphaned association might still persist.

    If the orphaned association still exists, you may need to use Azure CLI or Azure PowerShell to manually remove it.

    After deleting the association, verify that the Data Collection Endpoint (DCE) no longer has any associations.

    Once the DCE is deleted, you can delete the re-created AMPLS if it is no longer needed.

    Ensure that all resources are properly cleaned up to avoid any future issues.

     

    Some Microsoft document links for your reference:

    https://learn.microsoft.com/en-us/azure/azure-monitor/logs/private-link-security

    https://learn.microsoft.com/en-us/cli/azure/monitor?view=azure-cli-latest

     

    If the above answer helped, please do not forget to "Accept Answer" as this may help other community members to refer the info if facing a similar issue. Your contribution to the Microsoft Q&A community is highly appreciated.

     


  2. Pranay Reddy Madireddy 2,410 Reputation points Microsoft External Staff
    2025-03-10T05:23:21.7+00:00

    Hi Aleh Kamisarau

    You can access https://resources.azure.com/to manually locate and delete orphaned associations. This tool allows you to interact directly with the Azure Resource Manager and can provide more flexibility in managing your resources.

    Verify that there are no locks applied to the resources or resource groups. A lock could prevent deletion, so it’s important to verify this in the "Locks" section of the resource or resource group within the Azure Portal.

    If you have any further queries, do let us know.


    Please do not forget to "Accept the answer” and upvote it wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.


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.