@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.