Exception while creating Environment: com.vmware.vrealize.lcm.lcops.common.exception.InvalidEnvironmentException: Deployment or Import Blocked: You’ve reached the limit of allowed instances for VCF Operations (maximum: 1). Please check your inventory and remove any existing deployed, failed or draft instance(s) to proceed with the new deployment or importVMware Cloud Foundation Operations 9.0
Potential reasons for the failure include:
Note: Before performing the following procedure, ensure that you take snapshots of VCF Operations nodes and the Fleet Management appliance.
GET /lcm/lcops/api/v2/environmentsDELETE /lcm/lcops/api/environments/{environmentId}/delete
Payload{ "controllerType": "string", "deleteFromInventory": true, "deleteFromVcenter": false, "deleteLbFromSddc": true, "deleteWindowsVMs": true}
Note: Do not set the deleteFromVcenter property to true, as this will result in the deletion of component-based appliances from vCenter.
To authorize to Fleet API, refer : How to Authorize VCF Operations Fleet Management API
To cancel ongoing VCF Operations deployment task in VCF Fleet, refer : Cancel long running Fleet Management Lifecycle requests