Cannot delete Virtual Network/Enterprise Policy
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