PowerShell command to list number of datadisks of the images present in the scaleset

Varma 1,190 Reputation points
2024-01-15T06:31:21.84+00:00

I want to see number of data disks present in the each image, these images are being used by scaleset. these images are present in one of the image gallery. I am looking for powershell command to list all the images with count of data disk. Please assist on this

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,247 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
353 questions
{count} votes