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

Trouble adding more "CIVM" to a "CIVApp" in vCloud via PowerCLI 5.5

Hi All,I am having trouble performing some tasks in PowerCLI that I can do easily in the GUI. Firstly, in the vCloud Director GUI, I can create a new vApp from a template that has one machine in it. I...

View Article


vCloud: vShield Edge FW Rules

Hi all I'm looking for a way to get and set firewall rules on a vShield Edge firewall in a vCloud environment.  My final target is to write two scripts; one that will export the firewall rules from a...

View Article


Adding a vApp to Catalog in vCD with PowerCLI

I would like add a vApp to a Catalog via PowerCLI. I can't see any methods under the extensiondata of the vApp that allow for this. Then I thought maybe I need to look from the Catalog side and could...

View Article

firewall rules

hi! is there a way to set ports or firewall rules with the powerCLI? Only found set-ciAccessControlRules but that doesn't seem to bethe right cmdlet... thanks. Ralf.

View Article

Set Mac address of vCloud VM

Hi For a customer I need to regularly clone a production VM into vCloud for a test-environment. The VM needs to have an identical Mac Address because of some old-fashioned licenses. After cloning, the...

View Article


Clone a cloud VM into the same vApp?

I would like to clone a VM inside a vApp to create another instance of it in that same vApp.  I have tried this with Import-CIVApp: $targetVapp = Get-CIVApp MyVapp$sourceVM = (Get-CIVM -VApp...

View Article

Deleting CIVM from a CIvApp

Hi, I would like to remove a specific CIVM from a CIvApp. The CIvApp is stopped and powered off. The following bit of code works but performance is inconsistent. Sometimes it takes a few seconds,...

View Article

PowerCLI/API for update storage profile in vDC

Hi,I found how to add or remove storage profile via vcloud API (VMware vCloud Director Documentation Center), but does anyone know how to do update (change size or disable) storage profile via API or...

View Article


civm createmetadata fails with " Tag is not expected in requests for version...

Hi all, I'm following the directions in this (excellent) article: http://blogs.vmware.com/vipowershell/2012/03/working-with-vcloud-metadata-in-powercli.htmlwhich is the only documented way I've found...

View Article


Trying to retrieve External Network IP Address from specific vapp

I know this should be simple but having an issue.  vCD 5.1   trying to use this script in the vmware help to get a list i can copy and paste into excel to retrieve the vm name and external ip from an...

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

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

Delete Expired items via PowerCLI

I have some items stuck at the "Expired vApps" screen and are wondering if those can be deleted via PowerCLI. When I am trying to delete through the web interface I get told to stop the vApp, but there...

View Article


Modify vApp network - set all to "Retain IP / MAC Resources"

vCloud Director 5.1.3 having a power outage, and looking to modify all vApp networks and set "Reatin IP / MAC Resources" to true so the NAT addresses are retained while vApps are down.   Anyone have a...

View Article

Vcloud powerCLi - VM inventory report

HI all, So i wrote this quick script to generate a report of VMs info and more specifically, who owns them. The issue is that I am getting some rows with nothing but the Owner, and all the other...

View Article


vCloud Director change organization limits

Hi, I have been able to find most organization settings, but cannot find where to set these using PowerCLI: Number of resource intensive operations per userNumber of resource intensive operations per...

View Article

vApp; Add custom Guest Properties failes

Hi All,I tried to add some custom Guest Properties to a vApp which is already deployed according to this blog entry:https://communities.vmware.com/thread/442664 My current script looks like this:...

View Article


Image may be NSFW.
Clik here to view.

Connect-CIServer - Qwirks

Initially when i did the Connect-CIServer i had a -Org "DevTest" Later when i decided to change this in the reporting function per org i ran into trouble. The line with the -SaveCredentials works...

View Article

Snapshots with vCloud Director 5.1 & PowerCLI 5.1

(cross-post from vCloud forum) Now that vCloud Director 5.1 supports snapshots, I am looking at the  PowerCLI 5.1 cmdlets and cannot find a way to create/manage/revert  snapshots.  I see it is there in...

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
Browsing all 13334 articles
Browse latest View live


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