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

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


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


How to delete VMs from vCD via powerCli?

Hellofor test purposes, I frequently have to remove VMs from a vApp in vCloud Director. As I would like to do it 'properly', I do not want to delete the VMs by connecting to a vCenter and run...

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 error vCloud Director assigning Org vDC/vApp network to VM

Hello,I'm working on a script that imports VMs from vCenter into vCloud Director by creating vApps within an Organization's vDC then assigning a network to the VM. The script reads in a lost of VMs,...

View Article


How to delete external network via powercli?

Hi,Does anybody know how to  delete an external network via powercli? Thanks in advance,Marco

View Article

External Networks

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

View Article

Can I set CIVM name, CIVM computername or other parameters via PowerCLI

Hello!The main question in topic. I tried this one example:$VM = get-civm 'centos_template'($VM.ExtensionData.Section | where {$_ -is...

View Article


How to extract unallocated or free IP addresses in external network pool in...

Hi Guys, I have PS command to extract allocated IP address but I need PS command to free IP addresses. We usually have requirement to find and assign one IP address to our clients and it is really...

View Article


Updating VMware tools & VMhardware version on VM's in vCloud (8.2) Organization

In our environment we only have access to vcloud organization to manage VM's & wanted to upgrade vmware tools & hardware versions in an automated way.We don't have any visibility to...

View Article

Powershell to find and delete Stranded Items | vCloud Director 9.1

Hi All.

 Is there any powershell script to automate the deletion of stranded items in vCloud Director 9.1?

 Thanks in advance!

 Alicia T

View Article

How can I get a list of vCloud Director active users using Power CLI?

Hi,  How can I get a list of vCloud Director active users using Power CLI? Is there a script/command that can get me this info? I have seen a SQL command to get this data as explained here:VMware...

View Article

How determine if VM in Vcenter (6.7) is Managed by Vcloud Director (9.5)

I used to have a script which connected to Viirtual Center and listed all VMs which are not managed by vcloud director. This worked well for Vcenter 6.5 and vcloudDirector 9.1 using the ManagedBy...

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


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

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 delete VMs from vCD via powerCli?

Hellofor test purposes, I frequently have to remove VMs from a vApp in vCloud Director. As I would like to do it 'properly', I do not want to delete the VMs by connecting to a vCenter and run...

View Article

Get-Task Error

Hi, I get the following error running get-task. I seems to display the first 3000 odd tasks but then errors: PS C:\> get-taskjobDelete                      Success           100 11:18:48 AM...

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


Latest Images

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