Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

CloudClient 4.4.0 Bulk Change Reservations

$
0
0

We recently split out our vCenter clusters and need to migrate all the Windows VMs from the shared cluster reservation to a new reservation. As we have ~200 VMs to move, I'd prefer to do this in some sort of batch job. I'd prefer PowerShell, but from what I understand CloudClient should be able to do the job.

 

For the sake of completeness, we're running the following:

  • vRA 7.2
  • CloudClient 4.4.0
  • vSphere 6.5

 

The old reservation is "Windows - 01", we need to move the Windows VMs to "Windows - 02" (super descriptive names, I know).

 

I was able to successfully log in interactively to vRA and the IaaS service, then change the reservation for a single vm (and back again):


CloudClient>vra machines change reservation --ids restest01 --reservationName "Windows - 02"

Successfully sent request to register machine restest01

CloudClient>vra machines change reservation --ids restest01 --reservationName "Windows - 01"

Successfully sent request to register machine restest01

 

I'd like to source the list of machines somehow (manually grab, use PowerShell, cloud client.. something), then provide that list of machines that need to move to cloud client. The first step will be try the change above from command line, but I'm getting auth errors:

 

C:\temp\cloudclient\4.4.0\VMware_vRealize_CloudClient-4.4.0-5511232> .\bin\cloudclient.bat vra machines change reservation --ids restest --reservationName "Windows - 02"

Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true

JRE Version: 1.8.0_121

Dec 07, 2017 3:45:45 PM org.springframework.shell.core.SimpleParser parse

WARNING: com.vmware.cloudclient.exception.CloudClientException: Failed to convert 'restest01' to type CloudMachineView[] for option 'ids'

Dec 07, 2017 3:45:45 PM org.springframework.shell.core.SimpleParser parse

WARNING: Authentication Error : Login required.

 

I've tried generating a CloudClient.properties file, and an encoded credential, but it doesn't seem to want to work.

 

Thoughts?


Viewing all articles
Browse latest Browse all 9859

Trending Articles



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