I have an issue request in the AsBuiltReport.Veeam.VBR github repository that references using Cloud Connect Tenant not displaying the correct numbers. Looking in the PowerShell module for Veeam VBR I find that the values returned by the 'Get-VBRCloudTenant' module are of type 'Int64'.
Example:
Code: Select all
PS C:\Users\jocolon> $CloudTenant = Get-VBRCloudTenant | Sort-Object -Property Name
PS C:\Users\jocolon> $CloudTenant.Resources.RepositoryQuota
2048
10240
2097152
1048576
10240
10240
102400
10737418240
PS C:\Users\jocolon>
PS C:\Users\jocolon> $CloudTenant[0].Resources.RepositoryQuota
2048
PS C:\Users\jocolon> $CloudTenant[0].Resources.RepositoryQuota.GetType()
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True Int64 System.ValueType
Code: Select all
PS C:\Users\jocolon> $CloudObjects = (Get-VBRCloudTenant).Resources
PS C:\Users\jocolon> $CloudObjects[0].Repository.GetContainer().CachedTotalSpace
InBytes : 1209435947008
InKilobytes : 1181089792
InMegabytes : 1153408
InGigabytes : 1126
InTerabytes : 1
InPetabytes : 0
InBytesAsInt32 :
InKilobytesAsInt32 : 1181089792
InMegabytesAsInt32 : 1153408
InGigabytesAsInt32 : 1126
InTerabytesAsInt32 : 1
InPetabytesAsInt32 : 0
InBytesAsUInt64 : 1209435947008
IsInvalid : False
PS C:\Users\jocolon>
PS C:\Users\jocolon> $CloudObjects[0].Repository.GetContainer().CachedTotalSpace.gettype()
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True VMemorySize System.ValueType
PS C:\Users\jocolon>
With Int64 type how can I know what is the unit of the value (KB, MB, GB, TB, etc.)?
Thanks!