hey guys! getting this error when trying to destro...
# general
f
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 <http://aka.ms/deletenic|aka.ms/deletenic>." Details=[]
anyone got any ideas?
e
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 https://github.com/pulumi/pulumi-azure about this.