An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
The issue now seems to be even worse when I am trying to delete the whole deployment with terraform it seems everything else is getting stuck because of this.
Below is the error that terraform produced as a result of the not being able to delete the alb subnet:
Can you guys clear the below resource from the Azure side?
Error: deleting Subnet
Resource Group Name: "<aks-resource-group>"
Virtual Network Name: "<vnet-name>"
Subnet Name: "<alb-subnet-name>"
performing Delete: unexpected status 400 (400 Bad Request) with error:
InUseSubnetCannotBeDeleted:
Subnet <alb-subnet-name> is in use by:
/subscriptions/<microsoft-managed-subscription-id>/resourceGroups/<microsoft-managed-resource-group>/providers/Microsoft.Network/networkInterfaces/<microsoft-managed-
appgw-nic>/ipConfigurations/<ipconfig-name>
and cannot be deleted.
In order to delete the subnet, delete all the resources within the subnet.
See aka.ms/deletesubnet.
This subnet was used for Application Gateway for Containers. The AGC association failed, but Microsoft-managed APPGW NIC/IP configuration references remain attached to
the delegated subnet. The referenced NIC is in a Microsoft-managed subscription/resource group that I cannot access, so I cannot delete it directly.
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.