05/03/2023, 9:23 AM
hey guys! getting this error when trying to destroy a RG in azure:
azure:network:NetworkInterface (network-interface):
error: deleting urn:pulumi:dev-4063::sepio-prime-vm::azure:network/networkInterface:NetworkInterface::network-interface: 1 error occurred:
* deleting Network Interface: (Name "network-interface86d62a7a" / Resource Group "rg-dev-406355a65e90"): network.InterfacesClient#Delete: Failure sending request: StatusCode=40
0 -- Original Error: Code="NicInUse" Message="Network Interface /subscriptions/06791571-1deb-46b0-96db-ffaa450f2e71/resourceGroups/rg-dev-406355a65e90/providers/Microsoft.Network/netwo
rkInterfaces/network-interface86d62a7a is used by existing resource /subscriptions/06791571-1deb-46b0-96db-ffaa450f2e71/resourceGroups/RG-DEV-406355A65E90/providers/Microsoft.Compute/virtualMachines/vm2f86b574. In order to delete the network interface, it must be dissociated from the resource. To learn more, see <|>." Details=[]
anyone got any ideas?


05/09/2023, 11:48 AM
Does it delete the VM ok? Can it delete the NIC if you retry after the VM is gone? I'd guess the engines probably deleting in the right order but might be it takes a while for the NIC to actually dissociate after the VM deleting, probably worth raising an issue at about this.