VMware Cloud Community
vMarkusK1985
Expert
Expert

Create global metadata

Hello,

Is it possible to create global Metadata for all possible objects?

The Value should be Red/Write for the Users.

Best Regards,

Markus

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
Tags (2)
5 Replies
iiliev
VMware Employee
VMware Employee

Hi,

I'm not sure what you mean by 'metadata for all possible objects'. Is it a cache where the users can put arbitrary objects and retrieve them later?

There is no direct caching support in vRO scripting. Some of the plug-ins have their own simple cache, like DynamicTypes' DynamicTypesManager#getFromCache/putInCache scripting methods.

One option that I haven't tried yet but that should work is this unofficial plug-in - GitHub - dimitrovvlado/o11n-plugin-cache: Cache plug-in for vRealize Orchestrator

0 Kudos
vMarkusK1985
Expert
Expert

What I need is pre-Created vCD Metadata on Objects like OrgVDC and vApp:

2017-11-24 12_49_49-mkus-default - ASG-Remote Desktop 2012.png

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos
jonathanw
Enthusiast
Enthusiast

I don't think you can pre-create these - the only way I can see would be to create a blocking task which adds the appropriate metadata before allowing the operation to proceed. See here for reference on blocking tasks in vCloud Director:

Configuring Blocking Tasks and Notifications

If all you want to do is ensure that metadata is created if not already present, you may be able to use something like my PowerShell module ( https://kiwicloud.ninja/2016/02/working-with-vcloud-metadata-in-powercli-part-1/ and https://kiwicloud.ninja/2016/03/working-with-vcloud-metadata-in-powercli-part-2/ ) on a scheduled basis to identify objects which don't have a particular key/value set and create these entries.

I've also written some scripting internally to synchronise vCloud metadata with vCenter tags - we needed to do this as we have some 3rd party software which updates vSphere tags but doesn't understand vCD metadata, I should probably write a followup article on this when I get some time as may be useful to others...

Regards, Jon

vMarkusK1985
Expert
Expert

Thanks jonathanw​,

yous metadata Module is quite useful!

Are your Scripts to synchronise vCloud metadata with vCenter tags also in PowerShell?

Are you able to share these Scripts?

Best Regards,

Markus

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos
jonathanw
Enthusiast
Enthusiast

Hi Markus,

Yes the sync scripts are also in PowerShell, but they're quite specific to some of our internal processes, I'll tidy them up and make them more generic and share them on my blog when I get time.

Regards, Jon.