We can't delete the Network interface and the virtual Network

Amani Sahli 11 Reputation points
2023-12-18T09:34:22.71+00:00

Hi,

We want to delete the Network interface and the virtual Network but we recieve an error message:

Échec de la suppression du sous-réseau

Échec de la suppression du sous-réseau 'NetApp_Subnet'. Erreur : Le sous-réseau NetApp_Subnet est utilisé par SAP-DEV/providers/Microsoft.Network/networkInterfaces/anf-SAPWG_vNET_DEV-nic-GSZ1DI/ipConfigurations/ipconfig1'>anf-SAPWG_vNET_DEV-nic-GSZ1DI/ipconfig1 et ne peut pas être supprimé. Pour supprimer le sous-réseau, supprimez toutes les ressources qu'il contient. Consultez aka.ms/deletesubnet.

Thank you for your help and support.

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,197 questions
Azure NAT Gateway
Azure NAT Gateway
NAT Gateway is a fully managed service that securely routes internet traffic from a private virtual network with enterprise-grade performance and low latency.
24 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 98,606 Reputation points MVP
    2023-12-18T09:44:42.4833333+00:00

    Hi @Amani Sahli ,

    it's not possible to delete a Azure vNet/Subnet as long as there are still resources connected/associated with the subnet.

    In your case there is a NIC still associated with the subnet: anf-SAPWG_vNET_DEV-nic-GSZ1DI

    You have to delete the NIC and maybe some resources with a relationship to this NIC before you can delete the subnet.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten