let resources = datatable(id:int,type:string,properties:dynamic)
[
1 ,'microsoft.compute/virtualmachines', dynamic({"storageProfile":{"dataDisks":[{"name":"dd11","diskSizeGB":11,"managedDisk":{"storageAccountType":"sat11"}}]}})
,2 ,'microsoft.compute/virtualmachines', dynamic({"storageProfile":{"dataDisks":[{"name":"dd21","diskSizeGB":21,"managedDisk":{"storageAccountType":"sat21"}},{"name":"dd22","diskSizeGB":22,"managedDisk":{"storageAccountType":"sat22"}},{"name":"dd23","diskSizeGB":23,"managedDisk":{"storageAccountType":"sat23"}}]}})
,3 ,'microsoft.compute/virtualmachines', dynamic({"storageProfile":{"dataDisks":[{"name":"dd31","diskSizeGB":31,"managedDisk":{"storageAccountType":"sat31"}},{"name":"dd32","diskSizeGB":32,"managedDisk":{"storageAccountType":"sat32"}}]}})
];
resources
| where ['type'] == 'microsoft.compute/virtualmachines'
| mv-apply with_itemindex=i dd = properties.storageProfile.dataDisks on (summarize properties = make_bag(pack(strcat(i+1,"_name"),dd.name, strcat(i+1,"_diskSizeGB"),dd.diskSizeGB, strcat(i+1,"_storageAccountType"),dd.managedDisk.storageAccountType)))
| evaluate bag_unpack(properties)
小提琴