Question

VM Disk Expansion Playbook?

  • 16 December 2019
  • 3 replies
  • 2162 views

Hi All,

 

New here so I’m not sure this is the right place.  Is there playbook or way to automate disk expansion?  Can it expand the disk then trigger powershell to expand in the vm? 

 

Thank you,
Doug


This topic has been closed for comments

3 replies

Userlevel 4
Badge +5

Hello @ke_dkropp 
Need to look around on how to expand the disk in the VM, but you can update the virtual disk by using the API. 
https://www.nutanix.dev/reference/prism_element/v2/api/virtual-disks/put-virtual-disks-updatevirtualdisk

Userlevel 4
Badge +19

@ke_dkropp 

As of now , we dont have any default playbook in Prism Pro X-Play for vm disk add.

However you can create a custom playbook for the same.

Playbook → Manual trigger → Entity : VM → Rest API [to add disk to selected vm. You need to script that] → Powershell/SSH [to update disk in OS 

Userlevel 4
Badge +2

With both PC and PE on 5.17 AOS version and greater, we can now use Playbooks to expand the VM disk size automatically.

 

Check out this video: