Extract VM information via Powershell

Angelo Bertolotti 21 Reputation points

Good morning. I would need to extract information of each VM: -

  • VM SKU
  • List item
  • OS disk TYPE
  • List item
  • Data DIsk TYPE
  • List item
  • IP address (private)

Following command:
Get-AzResource | Select-Object ResourceGroupName, Location, Name, Properties, ParentResource, ExtensionResourceType, ResourceName, Sku | Export-Csv -Path "C:\temp.csv"

It does not collect all the requested data and it is the type of command I know and which is also recommended on other forums on which I have searched, can you help me?

The goal is to create an Excel with the information Thanks

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,586 questions
0 comments No comments
{count} votes