Multiple "Linux Server" Virtualized by::Virtualizes "Virtual Machine Instance" for same Linux Server.DescriptionOOB sensor does not delete the multiple invalid virtualized relationships associated with a Server CI apart from the one valid virtualized relation with the VM Instance CI as per the current discovery run.Steps to Reproduce Run cloud discovery of vm instances with Linux OS host (it can be Windows)Run IP Discovery of the host VM or make sure that the discover virtual machines option is selected when configuring cloud discoverycmdb_ci_linux_server and cmdb_ci_vm_instance records are created along with their Virtualized by::Virtualizes relation in cmdb_rel_ciDeprovision the VM, provision another VM with the same name, and repeat steps 1 - 3A new record is created in cmdb_rel_ci but the old relation is not removedWorkaroundThis problem has been fixed. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix. If you want to remove duplicate relationships for AWS Go to script include 'DiscoveryAWSRelationshipSensor'Replace the following code ======================================================================================================if (vmGlideRecord.get('sys_id', vmSysId)) g_disco_functions.createRelationshipIfNotExists(ciSysId, vmGlideRecord, "Virtualized by::Virtualizes");======================================================================================================with====================================================================================================== if (vmGlideRecord.get('sys_id', vmSysId)) { var relGR = new GlideRecord("cmdb_rel_ci"); relGR.addQuery('parent', ciSysId); relGR.addQuery("type", g_disco_functions.findCIRelationshipType("cmdb_rel_type", "Virtualized by::Virtualizes")); relGR.addQuery("child", '!=',vmSysId); relGR.query(); relGR.deleteMultiple(); g_disco_functions.createRelationshipIfNotExists(ciSysId, vmGlideRecord, "Virtualized by::Virtualizes"); } If you want to remove duplicate relationships for Azure Go to script include 'DiscoveryAzureRelationshipSensor'Replace the following code ======================================================================================================if (vmGlideRecord.next()) g_disco_functions.createRelationshipIfNotExists(ciSysId, vmGlideRecord, "Virtualized by::Virtualizes");======================================================================================================with====================================================================================================== if (vmGlideRecord.next()) { var relGR = new GlideRecord("cmdb_rel_ci"); relGR.addQuery('parent', ciSysId); relGR.addQuery("type", g_disco_functions.findCIRelationshipType("cmdb_rel_type", "Virtualized by::Virtualizes")); relGR.addQuery("child", '!=',vmGlideRecord.getUniqueValue()); relGR.query(); relGR.deleteMultiple(); g_disco_functions.createRelationshipIfNotExists(ciSysId, vmGlideRecord, "Virtualized by::Virtualizes"); } Related Problem: PRB1455343