Quantcast
Channel: VMware Communities : Popular Discussions - vCloud Director PowerCLI
Viewing all articles
Browse latest Browse all 13334

Create vDC Storage Profile Help

$
0
0

I am kind of new to all of this, but I wanted to put together a simple script that would automate my team's administration of vCD.  Specifically org and org vDC creation, etc.  I pieced together this little script to create a orgvdc, but it seems to want to provisions directly to the Any* storage profile during creation.  Is there a way to specify a storage profile that can be set during the script?

 

$myOrg = Get-Org -Name 'Org'

$myPVdc = Get-ProviderVdc -Name 'DCCB-PYG'

$myNetworkPool = 'DCCB-PYG-VXLAN-NP'

 

New-OrgVdc -Name 'MyOrgvDC' -AllocationModelPayAsYouGo -Org $myOrg -ProviderVdc $myPVdc -VMCPUCoreMHz 256 -Description 'MyOrgvDC Pay-as-You-Go model virtual datacenter.'

 

#Set/Modify the vCPU speed setting for the virtual machines in the organization vDC.

 

Get-OrgVdc -Name 'MyOrgVdc' | Set-OrgVdc -VMCpuCoreMhz 500

Get-OrgVdc -Name 'MyOrgVdc' | Set-OrgVdc -VMMaxCount $null

Get-OrgVdc -Name 'MyOrgVdc' | Set-OrgVdc -CpuGuaranteedPercent 50

 

#Set Network Pool Information

Get-OrgVdc -Name 'MyOrgVdc' | Set-OrgVdc -NetworkMaxCount 30

Get-OrgVdc -Name 'MyOrgVdc' | Set-OrgVdc -NetworkPool $myNetworkPool

 

#Enable thin and fast provisioning for the virtual machines in the organization vDC.

Get-OrgVdc -Name 'MyOrgVdc' | Set-OrgVdc -UseFastProvisioning $true

Get-OrgVdc -Name 'MyOrgVdc' | Set-OrgVdc -ThinProvisioned $true

 

Thanks. -DB


Viewing all articles
Browse latest Browse all 13334

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>