Error: "Cannot detach organization VDC network" occurs during attempt to delete network
search cancel

Error: "Cannot detach organization VDC network" occurs during attempt to delete network

book

Article ID: 424310

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Organization VDC network is attached to an edge gateway.
  • The following error occurs:

    [ ########-####-####-####-#######] Cannot delete organization VDC network <network name> (########-####-####-####-########)
    Cannot detach organization VDC network <network name> ((########-####-####-####-########)) from edge <edge name>
    - Bad Request: Invalid Configuration. To deploy NSX Edge appliances, at-least one Vnic must be configured and must be connected to a valid portgroup., error code 10166

Environment

VMware Cloud Director 10.6.1

Cause

This issue occurs as the network cannot detach itself from the edge gateway successfully during the deletion attempt.

Resolution

To resolve this issue delete the network via API Explorer as outlined in Deleting an Organization VDC network using VMware Cloud Director API