Get Only AHV VMs | Nutanix Community
Skip to main content
Question

Get Only AHV VMs

  • August 22, 2019
  • 1 reply
  • 951 views

Forum|alt.badge.img
Using PowerShell and AOS 5.11 connecting to Prism Central of mixed hypervisor environment (VMware and AHV), is there a quick way to return just the AHV VM's?

I see there are some search string, filter criteria, etc.. options for Get-NTNXVM

Right now, there are 1600 VMs and the ones I am looking for are AHV.

I can retrieve the whole list from Prism Central but I wondered if I could have it only send a filtered list.

$VMList = Get-NTNXVM | Where { $_.acropolisVm -eq "True" } but that reads all 1600 VMs from Prism Central...

Thanks!
This topic has been closed for comments

1 reply

sandeepmp
Nutanix Employee
Forum|alt.badge.img+19
  • Nutanix Employee
  • 64 replies
  • August 26, 2019
@TimothyGaray I have tried the same on a 5.10.6 PC and command works . It only lists the AHV VMs