Issue with Deleting a VNet Due to Undeletable Subnet: PowerBI-Gateway

Achala Dias 20 Reputation points
2024-08-18T15:32:37.3133333+00:00

I encountered an issue when trying to delete the VNet. I've already checked and deleted all other resources linked to the VNet, but there's one subnet (PowerBI-Gateway) that I can't delete. Because of this, I'm unable to delete the VNet as well.

Failed to delete virtual network ''. Error: Subnet powerBi-gateway is in use by /subscriptions/e4dbdb39-509a-4e77-a90c-85950281a176/resourceGroups/acepshrdtstshr4/providers/Microsoft.Network/virtualNetworks/acepshrdtstshr4vntcac1/subnets/powerbi-gateway/serviceAssociationLinks/PowerPlatformSAL and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet.

The error occurs when trying to delete the subnet.

Failed to delete subnet 'powerBi-gateway'. Error: Subnet powerBi-gateway is in use by acepshrdtstshr4vntcac1/powerbi-gateway/PowerPlatformSAL and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet.

Please help to solve this issue.

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,382 questions
0 comments No comments
{count} votes

Accepted answer
  1. akinbade abiola 14,590 Reputation points
    2024-08-18T20:19:04.54+00:00

    Hello Achala Dias,

    Thanks for your question.

    The typical approach to resolve this is by recreating the resource. If possible, recreate the resource that was previously in the subnet and reattach it. This will restore the resource to its original state. From there, you can disconnect the resource and then proceed to delete the subnet.

    See similar: https://learn.microsoft.com/en-us/troubleshoot/azure/azure-container-instances/connectivity/cannot-delete-vnet-subnet

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Achala Dias 20 Reputation points
    2024-08-23T14:12:46.45+00:00

    Thank you for the answer!

    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.