VMware Cloud Community
JDMils_Interact
Enthusiast
Enthusiast

How can I find duplicate UUIDs in vCD?

I use Zerto to replicate customer VMs from one site to another, however Zerto "freaks out" when it finds different VMs with the same UUID in vCloud Director.

Zerto support found 2 VMs with the same UUID such as this one:

ID = 'urn:vcloud:vm:2ec418fe-23d0-4ff4-62ba-b5f72c347ceb'

I thus want to know if it is possible to find duplicate vCloud Director UUIDs for virtual servers? Can this be done in PowerShell?

Reply
0 Kudos
2 Replies
AirheadPilot
Enthusiast
Enthusiast

not sure of how to do that all inside powercli, but you could do something like:

get-civm | select name,id | export-csv -path c:\temp\uuid.csv  

Then use excel to find the duplicates

Reply
0 Kudos
Macleud
Enthusiast
Enthusiast

Hello.

You can try doing it like this.

Get-Civm | group-object Id | where {$_.count -gt 1}

Reply
0 Kudos