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

Start-Job with PowerCLI not working

This script never gets past the first write-host line in the start-job...   # Do work$csv = Import-Csv tmpbuild.csv foreach ($item in $csv) {    Start-Job -RunAs32 -ScriptBlock {            # Add...

View Article


Migrate CIvAPP from one Resource Pool to another?

Hi, I'm looking for a way to migrate/vmotion the VM's in a CIvApp from 1 resource pool to the another in the same OrgVDC. Basically want to vmotion the VM's to another host. The hosts in the other...

View Article


Using Connect-CIServer in a Start-Job

Has anyone been able to complete something like this? This works perfectly in a plain PoSh window but running in a Start-Job it never gets past the connect-ciserver. The job shows running and...

View Article

External Networks

Does anyone know of a way to create external networks with PowerCLI?

View Article

How Can I Set the Customization Script for all VMs in a vApp

Using the .ExtensionData method found here: http://communities.vmware.com/thread/392462?start=0&tstart=0 (Thanks alanrenouf)I'm able to set some guest customization properties via PowerCLI.  My...

View Article


Error when cloning a VM related to vCloud Director

Hey there!I have the following cmdlet:  New-VM -Name ClonedVM -VM SourceVM -Datastore NewDS -VMHost ESXi -Location Folder -Confirm:$false The problem is that I'm trying to clone a VM that is a part of...

View Article

Adding vShield Edge NAT rules from a CSV file using PowerCLI

I recently read Alan's great post on adding NAT rules here: http://www.virtu-al.net/2014/07/24/working-vcd-edge-gateway-rules-powercli/I have used this successfully for single rules in a lab...

View Article

"Power On and Force Recustomization" PowerCLI

   Hi Guys!   I cannot find any solution for recustomization VM in vCloud 5.5.   The sample of script:        $VM_GL = Get-CIVM -Name VMachine -Org $OrgName -OrgVdc $OrgVdcName -VApp $New_Clone...

View Article


Get vDC Storage Policy quota

Hello. I want to retrieve the storage policies quota assigned to an Org vDC using PowerCLI. I initially tried to retrieve this information using $orgvDC.StorageLimitGB but this gives me the sum of the...

View Article


update vdc (allocation pool org vdc elastic)

Hello, I'm trying to update allocation pool vcpu speed settings (enabled elastic pool org vdc), but powercli supports only PAYG model. example:Get-OrgVdc -Name "arunas dev vdc"|select...

View Article

Export all vCloud Edge Gateway rules to CSV file

Hi, For documenation purposes, I need to make a list of all vCloud firewall rules. Specifically, I am looking for Edge name, Rule ID, name, source, source port, destination, destination port, protocol,...

View Article

Add a VM to a vApp using PowerShell

Hello, I am trying to add a VM to a vApp using PowerShell.  I know that there is no explicit cmdlet to do it, and I need to recompose the vApp. I've used the great Instantiation script from...

View Article

Add new NIC to VM (like New-CINetworkAdapter)

Hi all I'm trying to find out how to simply add a new NIC to a VM within a vApp. Something like "New-CINetworkAdapter" would be great, but unfortunately does not exist.. Anyone some experience or tipps...

View Article


Setting Guest Customization Section Fails in 5.5

Hi, Since migrating to vCloud 5.5 the following script fails which worked in 5.1:  $CIVMs = get-CIvApp $CIvAppName | get-civm Foreach ($vm in $CIVMs) { write-host "Customizing" $vm.name...

View Article

Need some help to put it all together

HiTrying to create a script for vCloud Director automation. For a vApp with a number of networks, I want to create static routes on a vApp. I have found some components to use, but I just can't get the...

View Article


Example for configuring VM's "guest properties" (i.e. OVF settings)

Following is an example for configuring a VM's "guest properties" (in vSphere this is called "OVF settings/environment") using PowerCLI (or API).Note that this script was designed to run as an "org...

View Article

The VCD - vCenter Glue - Linking VMs and Events

Hi All I have sucessfully talked to the vCenter running our Blades and hosting vCLoud, and vCloud itself I can see VMs from both sides. 1. What i am looking for is the glue that allows you to link the...

View Article


Automating vCloud: "Disable Host" and "Redeploy All VMs"

Are these two functions available through any API/SDK? I cannot seem to find it for PowerCLI or the REST interfaces. Perhaps I am reading outdated/incorrect documentation? Any help would be great! Thanks.

View Article

Trying to utilize Powercli to add a new NICs within vCloud 5.1

Hoping someone has used Powercli to automate adding a new "Organization VDC network", choose an "Adapter Type", change the "IP Mode" to manual, and populate the "IP Address" into vCD 5.1 Any help would...

View Article

Create vDC Storage Profile Help

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...

View Article
Browsing all 13334 articles
Browse latest View live


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