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

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


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

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

Creating new Organization with specific Storage Profile

Been working on this a few hours now, but just can't seem to get it to work. Creating an organization with the Any(*) storage profile works, but as soon as i remove that profile and leave only the ones...

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

Mounted medias inventory

Hello, When you connect a media (ISO file) on VCD, there is no place to tell on VCD portal that there is an ISO file mounted on a specific VM. So many ISO stay mounted on VMs without being removed.So...

View Article

Obtain vApp expiration date

Hey All,Im trying to get a vApps expiration date using PowerCLI. I can: $FrankApp = Get-CIVApp -name "Frank" $FrankApp.RuntimeLease Days              : 30Hours             : 0Minutes           :...

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


Connect-CIServer -Server vcloud.ourdomain.com Issues

Hi I have now tried PowerCLI with ESX and vCenter, so far so good.We have a vCLoud Area as well (v5.5) So when i listed the VMs in vCenter, for area folder 'vCloud Director' this worked but the links...

View Article

How to get a vm's chain length?

Hello,I'm trying to automate some consolidation of vms and would like to script it. I have over 800 vms so manually would not work.I'd like to$allVApps = Get-CIVAppforeach($CIVm in ($allVApps |...

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

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


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

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


Unable to connect to VCloud Director 5.1 build 5.1.1.868405

Hi. We are not able to connect to a VCloud Director ver. 5.1.1 868405.  When we try a: connect-ciserver   we get the following error:   Connect-CIServer        The underlying connection was closed: The...

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


Find datastore of CI-VAPPTemplate

Hey folks, in our vCloud environment we need to put a datastore into maintenance mode and make a few adjustments. I've come to find out SDRS only works on VMs and not the vAPPTemplates or Media within...

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

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


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