Skip to content

Instantly share code, notes, and snippets.

@jhiemer
Created November 19, 2013 13:53
Show Gist options
  • Save jhiemer/7545689 to your computer and use it in GitHub Desktop.
Save jhiemer/7545689 to your computer and use it in GitHub Desktop.
VirtualMachineTemplates.Expand(Function(vmt) vmt.GlobalProfiles)
.Where(Function(vmt) vmt.virtualMachineTemplateName = "Desktop - RedHat 5 U5 x64")
.SelectMany(Function(vmt) vmt.GlobalProfiles.GlobalProfileID.toString()).toArray()
/**
* VirtualMachineTemplates manyToMany - GlobalProfiles
*
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment