Get Azure VM Basic details (CPU Cores count, Memory GB, Storage GB, OS Name) via CLI or Query

Rajesh Swarnkar 931 Reputation points
2022-11-16T03:40:56.36+00:00

How to export or fetch below details for list of VMs:

  • CPU Cores count
  • Memory in GBs
  • Total Storage in GB
  • OS Name via CLI or Query
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Vasileios Dionysopoulos 641 Reputation points
    2022-11-16T15:08:32.78+00:00

    Hi,

    You can check the following links in order to create your own powershell scripts.

    The basic command is Get-AZVMsize

    https://learn.microsoft.com/en-us/powershell/module/az.compute/get-azvmsize?view=azps-9.1.0
    https://www.tutorialspoint.com/how-to-retrieve-the-azure-vm-ram-and-cpu-size-using-powershell

    BR,

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.