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

External Networks

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

View Article


Scripting on a multitenant vCDirector environment

Hello, we're running vCloud Director 1.5 serving several customers/organizations. Some of them asked us if possible to execute scripts, as Amazon does, to stop, start, restart VMs inside their...

View Article


Get-ProviderVdc returns Null values for StorageUsedGB StorageAllocatedGB and...

Has anyone else seen this?  The Get-OrgVdc does return Storage information but I want to collect it from the Provider VDC PowerCLI C:\Scripts\vmware> Get-ProviderVdc moc-vmcl1101-pvdc Name...

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

Does anyone know how to recompose a vcloud vapp from powercli without having...

I’m struggling to find out how to do this.  There doesn’t appear to be much out there (or more likely I can’t find it).  It seems to me like this would be a common task, so there must be a way to do...

View Article


Get and Set NAT config

Hi all, I am trying to read and write the NAT config for a larger vApp with complex rules with PowerCLI as whenever the vApp get's added to a different org from catalog all is gone. This vApp needs to...

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

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


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


Issues with vCloud Cmdlets when connecting to a CIServer using SessionID

I'm working on a PowerCLI script that deploys vCloud vApps to multiple OvDCs. The script works great when it's serial, but I have been running into issues when trying to get the deployments to run in...

View Article

Image may be NSFW.
Clik here to view.

Storage Profiles

Hello I am doing some testing with powercli and vCloud director. PowerCLI C:\> $storage = Get-OrgVdc -name OrgvdcPowerCLI C:\> $storage.StorageLimitGB200 200 is actually the combined storage from...

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

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


Sample script to modify vApp (Network, Firewall Rules, Start/Stop Order,...

Hi allI would like to share a script I developed the last few days. What the script does:- Add an internal network called "Internal" with NAT/Firewall to a vApp- Add Firewall rules (f.e. RDP)- Set the...

View Article

Organization vDC Edge Gateway

Been trying to figure out how to create a edge gateway in a vDC with powershell and have gotten nowhere, perhaps someone else can give a hand? So i've tried to check an excisting edge gateway to see...

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

Import and Export of vApp

Hi All, Is it possible to export vApp using PowerCLI? We have DR requirement which stats - All vApp created in DC-A should be available in DC-B.As long as place holder vApp's are available we always...

View Article


Report containing vCloud vApps names w/ source vApp template names

Can I use PowerCLI to list vCD vApps along with their source vApp Template? I'm looking for something like the following: vApp NamevApp Template NamevApp1vApp2vApp3LAMP-1.2LAMP-1.2SharePoint-1.5...

View Article

vCloud Director Storage Profiles

Hi all I'm trying to put together a script to setup new Organisation and Virtual Datacentres in our vCloud 5.1 environment.  The problem I've come up against is that I can't specific what storage...

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