Hi,
As far as I know the storcli tool can only get information of the raid controllers on the local machine. To run storcli on the VM, try passing through the raid controller to the Hyper-V VM using DDA. However, you will no longer be able to access the raid controller and the raid volumes from the Hyper-V host.
Or you can run storcli remotely from the VM if your VM is connected to a Hyper-V internal or public switch so it can communicate to the Hyper-V host. The storcli tool can be invoked using the PowerShell cmdlet Invoke-Command like below.
Invoke-Command -ComputerName "HyperVHostname" -ScriptBlock {C:\file\path\storcli.exe /c0 show all}
You may need to run Enable-PSRemoting on both Hyper-V VM and host to configure the computers to receive remote commands before using Invoke-Command.
Another option is other raid tools that can connect to remote computer like the MegaRAID Storage Manager. You can confirm this with Broadcom.
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.