VMware Cloud Community
przemol10
Contributor
Contributor

How to add disk(s) to many VMs at once

Hi all,

I have to add disk (disks ?) to several VMs at once (close to 200). Is it possible to do that without using e.g. Power Shell (which is unknown for me ...) ?

Can I do that using (preferably) GUI/Web GUI ? If not is it possible to do that using CLI tools (I am Linux/Python guy and don't have much windows experience) ?

Reply
0 Kudos
3 Replies
bayupw
Leadership
Leadership

If you are planning to use PowerCLI (based on PowerShell), there is a New-HardDisk cmdlet that we can use to create a new hard disk New-HardDisk - vSphere PowerCLI Cmdlets Reference

See an example in this blog: PowerCLI Mass Add Hard Disks to Virtual Machine | Matt Vogt

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
Reply
0 Kudos
vThinkBeyondVM
VMware Employee
VMware Employee

From GUI I do not think there is any option which will work for you. As Bayu specified, you need to explore Power CLI cmdlet.


----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

Reply
0 Kudos
przemol10
Contributor
Contributor

Thanks Bayu for hint.

Is there any option to use linux/python instead ?

Reply
0 Kudos