PowerShell Get-StorageQoSflow: Which VM belongs to which storage QoS policy?

As Get-StorageQoSflow does not list the friendly name of the QoS policy here is a small snippet on how to do this: (using PowerShell’s Expression to cross call another cmdlet to resolve the PolicyId) PS C:\> Get-StorageQoSflow | Sort-Object InitiatorName | ft InitiatorName, @{Expression={(Get-StorageQosPolicy -PolicyId $_.PolicyId).Name };Label=”Policy”}, Status, MinimumIOPs, MaximumIOPs, StorageNodeIOPs, @{Expression={$_.FilePath.Substring($_.FilePath.LastIndexOf(‘\’)+1)};Label=”File”} –AutoSize results: InitiatorName    …

0