Not able to get lun from powershell command for a disk

Sanath 1 Reputation point
2022-07-08T05:50:17.133+00:00

Using windows server 2012. get-physicaldisk | fl command doesn't show LUN info of the disk.

Windows for business Windows Server User experience PowerShell
Windows for business Windows Server User experience Other
{count} votes

1 answer

Sort by: Most helpful
  1. SaiKishor-MSFT 17,336 Reputation points
    2022-07-08T18:52:14.7+00:00

    @Sanath Thank you for reaching out to Microsoft Q&A. I understand that you are having questions regarding finding the Lun using PowerShell for a disk.

    Here is the command for Finding an Azure Disk's LUN using Azure CLI or Azure PowerShell

    Powershell- $vm = Get-AzVM -ResourceGroupName myResourceGroup -Name myVM
    $vm.StorageProfile.DataDisks | ft

    Does this help? Please let me know otherwise. I look forward to assisting you if you have any further questions/concerns. Thank you!

    Remember:

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Want a reminder to come back and check responses? Here is how to subscribe to a notification.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.