Based on Jake Robinson's post at GeekAfterFive - Infrastructure as Code, it seems the sample scripts in Alan Renouf's March 30, 2012 post to the VMware PowerCLI Blog, Working with vCloud Metadata in PowerCLI, will not work with vCloud Director 5.1. Has anyone modified the Get-CIMetaData function to return the Value from the TypedValue element? After removing the Select-Object Cmdlet (to select all properties and see what came back):
PS> Get-Org -Name CloudSandbox | Get-CIVM | Get-CIMetaData
Domain : VMware.VimAutomation.Cloud.Views.MetadataDomainTag
Key : Test Key
Value :
TypedValue : VMware.VimAutomation.Cloud.Views.MetadataStringValue
Client : VMware.VimAutomation.Cloud.Views.CloudClient
Href : [removed]/metadata/SYSTEM/Test%20Key
Type : application/vnd.vmware.vcloud.metadata.value+xml
Link : {, , }
AnyAttr :
VCloudExtension :
The type of the value is provided (MetadataStringValue), however thus far I haven't been able to get the Value from the TypedValue element. What am I missing?