Cannot delete Virtual Network/Enterprise Policy

Joshua Trzcienski 0 Reputation points
2024-12-20T20:20:58.29+00:00

I have been trying to setup the virtual network connection between the Power Platform and Azure, and in doing so it involves creating two virtual networks that delegate a subnet to Microsoft.PowerPlatform/enterprisePolicies. In the same resource group there is an Enterprise Policy that was created that has the virtual network information to be used by the Power Platform environment.

The issue I am having is that even after removing the network injection policy from the Power Platform environment, I am unable to delete any of the virtual networks or the enterprise policy. I created a separate RG and followed the same steps for setup, and once I unlinked the policy from the environment everything was deleted with no issues, but this environment I still cannot delete anything.

Error when trying to delete the enterprise policy: InputValidationError

Error when trying to delete the virtual networks: Subnet is in use by PowerPlatformServiceLink and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet (InUseSubnetCannotBeDeleted).

There does not seem to be anything in either vNet in terms of resources, but I cannot remove the delegation either as I get a similar error message as above. I was also unable to remove Microsoft.PowerPlatform as a resource provider for the subscription as well.

Link to the guide I was using to setup the vNet support: https://learn.microsoft.com/en-us/power-platform/admin/vnet-support-setup-configure

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,574 questions
{count} votes

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.