Tl;dr: You need the vApp > Import permission to deploy templates from a Content Library. Read on for the full adventure. I have mixed feelings about VMware’s documentation. On certain products or topics, I’ve found it to be quite good. On others, it can certainly be lacking. Among all of that though, the VMware community seems to always step in to fill the gap. Today was not one of those days.
I’m not sure how long ago I actually wrote this script, or why it took me so long to get around to blogging it, but this is easily the most used script I’ve ever written. Since VMware made its debut at Sheetz over a decade ago, the number of vCenters to manage has grown quite a bit. The actual number is honestly irrelevant, because connecting PowerCLI to more than one at a time annoys me.
My biggest annoyance in having multiple vCenters that aren’t in Enhanced Linked Mode is having to do the same task over and over again against different targets. Luckily, PowerCLI and I have become friends over the past few months, and it’s quite good at repetitive tasks. Today, we’ll be using it to clone a role from one vCenter to one or many others. Thanks to an awesome community, I quickly found a blog post on how to clone a role from one vCenter to another.
Sometimes it feels like I should just redirect my blog to William Lam’s. It’s not that I read through it, implementing what he wrote about a year ago; but every time I have a task to tackle he’s in Google’s top five results. Recently my question was TLS, and he wrote my answer 18 months ago. VMware has a nice tool with great documentation and the best name: The TLS Configurator.
Somewhere between the fat client and the Flash web client, VMware lost the ability to export a VM or template as an OVF. My experience is that though it runs and appears to succeed, you never get a good file out. I’ve tested with multiple vCenters, browsers, VMs, and Flash and H5 clients; it all fails. Enter OVFTool. VMware OVFTool is a command-line utility that allows you to import and export OVF packages to and from many VMware products.