Has anyone run across a way to change the business group of an entire deployment? We've had instances where VMs were deployed under the wrong business group and we want to migrate it to the correct business group, but there doesn't appear to be an easy way to change that. It looks like you can go into Managed Machines and individually re-assign the VMs to a different business group / reservation, but the deployment itself seems to stay on the original even after all the VMs have been moved. I feel like that should be a pretty common use case, but I can't find any info on doing it.
Actually looks like something changed in either 7.3 or 7.4 and now you can't even do the individual VMs. It throws the error below.
Deployment id: xxxxxxxx has 6 child resources. Expecting exactly one child resource."
This can be done through a series of scripts that directly modify the vRA DB - provided by VMware Support. We went through the same thing and had to move a couple hundred deployments due to organizational change. We couldn't believe this wasn't just "baked in" either.
Good luck.
Do you have the SR number to reference to get said script?
Well that sounds promising. I was under the impression that there wasn't any way to do that currently and we were just stuck. Going to get a ticket going with support to see if they can assist us with that. Thanks,
The only reliable method I have found to move many deployments between business groups do this is using the bulk import.
Infrastructure > Administration > Bulk Imports
Generate CSV file with Managed machines selected. Edit the CSV so it contains only the machines you want to change. Update the Host Reservation (Name or ID) column to reflect the reservation which matches the new Business Group (Infrastructure > Reservations > Reservations). Save.
Back on the bulk imports page select New and choose your CSV file. Make sure you don't tick the Ignore Managed Machines check box.
This will only update the fields you change in the CSV but not affect the object in any other way.
*Note* If the Blueprint or Component columns are UNDEFINED*, it will ignore them and use the current value.
Just out of curiosity have you tried this with multiple VM deployments? Was curious if you just don't specify the deployment if it will use the existing and in effect keep all the VMs under the original deployment?
Yes, I have tried this method to change the business group several hundred deployments at a time. you can export all managed machines and re-import over the top without changing anything - it will only update the fields/machines you change. I recommend removing any machines you are not updating as it can take quite a long time if you have a huge number of lines in the CSV.
I've never actually used this method to modify the deployment of a managed machine so not sure if that is possible.
Just in case anyone stumbles across this thread, if you're making use of Software components the bulk import throws a similar error when trying to change reservations. It basically complains that it was expecting one object but found many (one for each of your software components) and won't process the CSV. Seems like if you're using software components you're pretty much stuck on the business group your resource was originally deployed on.
By any chance you have script handy?