Unable to delete subnet which is associated with VMSS

Faimuddin Shaik (MINDTREE LIMITED) 20 Reputation points Microsoft Vendor
2024-06-06T15:28:46.0966667+00:00

Am able to delete Virtual machine scaleset but again it is coming back, i have one VN, when i try to delete the subnet getting subnet is in use by providers/Microsoft.Compute/virtualMachineScaleSets/madvmss1/updateGroups/version1/networkInterfaceConfigurations/madvmss1nic/ipConfigurations/madvmss1ipconfig

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
359 questions
{count} votes

Accepted answer
  1. kobulloc-MSFT 25,156 Reputation points Microsoft Employee
    2024-06-06T15:51:46.8966667+00:00

    Hello, @Faimuddin Shaik (MINDTREE LIMITED) !

    Why am I unable to delete subnet which is associated with VMSS?

    In an ideal situation, all resources in the resource group would share the same lifespan and you would delete the resource group rather than individual resources. Deleting individual virtual machine scale set (VMSS) resources can be difficult due to dependencies, which is what is causing this error.

    In this case, the subnet is in use by the network interface which would need to be deleted prior to attempting to remove the subnet.


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image


0 additional answers

Sort by: Most helpful