Home > Back-end >  Unable to delete the Azure Subnet that is associated with PowerPlatform Data Gateway
Unable to delete the Azure Subnet that is associated with PowerPlatform Data Gateway

Time:11-11

I have a Subnet in Azure that is associated with PowerPlatform Data Gateway

enter image description here

I am unable to delete the subnet

Failed to delete subnet 'np-dat-powerplatform-subnet'. Error: Subnet np-dat-powerplatform-subnet is in use by ipz12-dat-np-connections-rg/providers/Microsoft.Network/virtualNetworks/np-dat-hub-vnet/subnets/np-dat-powerplatform-subnet/serviceAssociationLinks/PowerPlatformSAL'>np-dat-hub-vnet/np-dat-powerplatform-subnet/PowerPlatformSAL and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet.

CodePudding user response:

This error usually occurs when the subnet is delegated to an Azure Service. From the screenshot above I can see that you subnet np-dat-powerplatform-subnet has a delegation. In order to delete the subnet, you need to remove this delegation first. You can follow the steps mentioned here to remove the subnet delegation. If you are unable to remove the delegation via Portal, you can also try running the Az CLI and PowerShell commands mentioned in the document above.

  • Related