Unable to delete unwanted, unsued resources

Zaid Al Samaraie 0 Reputation points
2025-04-27T02:43:36.5433333+00:00

I am on Microsoft Azure, trying to delete 2 public IP addresses and an associated virtual network and firewall.

I can't delete any of them, I believe because they are linked.

This is preventing me from deleting my resources, which are all incurring charges.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,720 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ravi Kanth Koppala 3,391 Reputation points Microsoft Employee
    2025-04-27T13:48:04.5933333+00:00

    Hey Zaid! It sounds like you're having trouble deleting some public IP addresses and their associated resources because they might be linked together. This is a common issue in Azure, where dependencies between resources can prevent deletions.

    Here's what you can do:

    1. Check Dependencies: First, check if the public IP addresses are linked to other resources such as virtual machines or network interfaces. Azure doesn't allow you to delete resources that are currently in use.
    2. Delete Dependent Resources: You may need to delete any dependent resources first. This includes virtual machines, network interfaces, or any other resources that are using those public IP addresses. Once those dependencies are removed, you should be able to delete the public IP addresses and the associated virtual network and firewall.
    3. Use Azure Portal Resource Graph: You can also utilize Azure Resource Graph to find and visualize dependencies between your resources. This might help you identify what is holding up the deletions.
    4. Retry Deletion: After addressing any dependencies, retry deleting the public IP addresses, virtual network, and firewall.

    If you continue to face issues, please let us know if you're receiving any specific error messages, as they can provide more insight into what's going wrong. Here are a few follow-up questions that can help us understand the situation better:

    • Are you getting any error messages when you attempt to delete the public IP addresses or associated resources?
    • Have you checked for any resource dependencies in the Azure portal?
    • Are there any virtual machines or other resources currently using these public IP addresses?

    Hope this helps you sort things out! Let me know if you need further assistance.

    0 comments No comments

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.