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

Connect-CIServer - Data at the root level is invalid

Recently the Connect-CIServer cmdlet started failing. I've checked the permissions and they are all ok. For example, the following code: Connect-CIServer - server vcloud.myorg.com -User authorizeduser...

View Article


exporting firewall/NAT rules from Edge Gateway

Anyone using a powerCLI script to output firewall/nat rules for Edge Gateways (ver 5.1.2) configured on Org VDC networks for documenation purposes? I've been able to pull plenty of information using...

View Article


How to rename a CivApp?

Hi, Trying to do the simplest task of renaming a CIvApp with PowerCLI.  $civapp = Get-CIvApp "Test" $newname = $civapp.Name + "_OLD" Set-CIVApp -vApp $civapp -Name $newname Set-CIVApp : 8/6/2013...

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

Checking the Synchronize time: flag in Virtual Machine Properties (GENERAL)...

Hi, I'm working on a powercli scripts to check whether the flag "Sycronize Time" was checked or not for each VM inside a vApp. I tried to go one by one in all the properties and methods in...

View Article


Appending Firewall Rules to vShield Edge with PowerCLI Script

Hi, I have a script which enables us to upload 4k worth of firewall rules, but every time it executes, all existing rules are over written. Is this something to do with the API or just a scripting...

View Article

Has Anyone had the -VMCpuCoreMHz variable in New-OrgVDC work?

It seems like the variable -VMCpuCoreMHz is broken when you try to use it when creating a new OrgVDC. The following error is thrown when you attempt to use it: New-OrgVdc : Parameter set cannot be...

View Article

Would Like to mount media in vCloud Vm via powercli

Hello I have scripted the creation of a vApp network with multiple machine in, in vCD, pulling variables from a CSV file.I would like to be able to now script the mounting of media from a catalog, then...

View Article


External IP not getting assigned using New-CIvApp and Start-CIvApp

I have created a new vApp with...Get-CIVAppTemplate -Name $myTemplate -Catalog $catalog  | New-CIVApp -Name $newvapp -Description "This vApp is created from the vApp template named MySourceTemplate."...

View Article


Set Guest customization at vApp level

I am looking for some assistance on how to enable guest customization for CIVM's at the VApp level. Currently I am using the $CIVM.ExtensionData.Section to enumerate guest customization settings and...

View Article

Setting properties of VMs in a vApp

I have a few vApps with 25 VMs each in vCloud Director and would like to set a few properties to on / off with PowerCLI as the gui is a mission. These options include: Set "Enable guest customization"...

View Article

Build URLs for: VM Console, vCloud Director vApp, VM properties in vSphere

Hi all I made a script to generate URLs for the following access:- Open a VM's Console in vSphere Web Client- Open vApp (to which the VM corresponds to) in vCloud Director- Open the VM's Summary Tab in...

View Article

get-civm command piped to get-civapp | owner

Basically I've been researching to see how I might pull some reporting data from VCD. I ran across several sites that provide exactly what I am needing, but the problem is they all use the get-civm...

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

Looking for Powercli commands to set Org Quotas and Limits = unlimited

Hello, I am looking for the Powercli commands to use when creating vCD Organizations to 1. set the following Quota and Limits = unlimited...

View Article


How to Transfer File to guest in vcloud director sdk

Hi, I'm using vcloud director .net sdk 5.5 to automate the vcloud director operations.I want to transfer a file from my physical machine to the vm and execute it on the vm.In vsphere .net sdk,...

View Article

vCloud Director PowerCLI set-OrgVdc error

Hi all, vCD version 5.6.2.2548647 Having issues running a script to disable org and vdc.Disabling org works fine however disabling vdc throws an error as follows: Part of code:  Get-Org $orgs[$i] |...

View Article


ovf upload progress restarting after 100 seconds

Hi, I am new to PowerCLI. I have written a small script to upload ovf from my desktop to vCloud. Set-PowerCLIConfiguration -Scope Session -WebOperationTimeoutSeconds -1 -DefaultVIServerMode Single...

View Article

Image may be NSFW.
Clik here to view.

vCloud network allocated addresses

I am looking for some assistance. I am scripting the allocation of IP's for VM's deployed to a org network backed by a specific external network.  Currently I am running:$extnet = get-externalnetwork...

View Article

how to insert files from physical machines into vmdk

Hi any advise on the script i could use to upload files from host machines in to vmdk directly

View Article
Browsing all 13334 articles
Browse latest View live