VMware Cloud Community
StreetRazor
Contributor
Contributor
Jump to solution

PowerCLI Template Used Disks Size

Hallo,

my name is Ricardo and first: Sorry for my Bad English i am from Germany Smiley Happy

I would like to write a Tool in Powershell, which one saves the Used Disk Size, all Machines are in Thin Provision, from VMs and Templates.

Now my Problem:

It is easy to get the Used Disk from "normal" VMs, but if i would like to get the Used Disk from Templates, i only get the Maximum Disk on the LUN.

My Plan B was, to look on the Databrowse of the LUN but it is the same Problem.

Have the Community any Idee why you can see the Used Disk in the Web Client and the C# Client but not with PowerCLI ?

Thank you in advance !

Ricardo

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You can find that info like this

$templateName = 'MyTemplate'

$tp = Get-Template -Name $templateName

$tp.ExtensionData.Storage.PerDatastoreUsage


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

You can find that info like this

$templateName = 'MyTemplate'

$tp = Get-Template -Name $templateName

$tp.ExtensionData.Storage.PerDatastoreUsage


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
StreetRazor
Contributor
Contributor
Jump to solution

Thank you every much LucD Smiley Happy

0 Kudos