Environment: vCloud Director 5.6.4. PowerCLI 6.0 R1
I have been working on a script for a little while now to create an Org, with an Org VDC and deploy an edge gateway in that org vdc.
I can manage to get the Org deployed without much issue, despite the New-Org command not including all options possible. I can use $org.ExtensionData to set any of those options after I create my Org. Not ideal, but it works.
However, the challenge I am having is creating a new OrgVDC (using the New-OrgVDC command) with the storage profiles we have in place. The New-OrgVDC requires the -StorageAllocationGB parameter, but it doesn't allow me to select which storage policy to use. When I attempt to just provide any value (aka, 100), the command fails "New-OrgVdc : 20/08/2015 4:25:09 PM New-OrgVdc The provider vdc does not contain the any storage policy." See screenshot of storage policies:
I found this post:
where this value can be set *after* the Org VDC has been created, but not during the initial creation. Not to mention the inability of doing something wild and crazy like adding storage for both those storage profiles.
Now, I am ok with setting it after the fact if I could create the ORG VDC initially, but I keep getting stuck on that initial storage profile issue. Has this command simply not been updated for newer versions of vCD?