How to check the size of the Custom Image?

Nidhi Priya 531 Reputation points
2023-06-14T04:20:08.3866667+00:00

Hello experts!

I have captured image from a Virtual Machine, and I want to know the size of the Image. I am not able to find anything related to the image size in the Azure portal. How can I check the size? Please let me know from where I can check the size of the captured image from a Virtual machine?

Screenshot 2023-06-14 093602.png

Thanks!

Nidhi

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,987 questions
0 comments No comments
{count} votes

Accepted answer
  1. msrini-MSFT 9,291 Reputation points Microsoft Employee
    2023-06-14T16:38:04.8266667+00:00

    Hi,

    Can you try to run this Powershell command to get the size ?

    Get-AzImage | Where-Object {$.Name -like '<your-image-name>'} | Select-Object Name, @{Name="SizeGB"; Expression={$.StorageProfile.OsDisk.DiskSizeGB}}

    Regards,

    Karthik Srinivas

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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