Share via

Extract VM information via Powershell

Angelo Bertolotti 21 Reputation points
2021-03-18T16:38:25.673+00:00

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

  • VM LOCATION
  • 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

Community Center | Not monitored
0 comments No comments

Your answer

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