-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] issue with Get-PnpTenant storage values. #4557
Comments
Storage quota is the same as on SPO Admin Center, as it shows 1355776 MB, which is ~1,293 TB. What do you get with Get-SPOTenant ? In my case I get the same numbers: Looks more like an issue in SPO api itself than PnP PowerShell. |
I am getting StorageQuota as we see above in the output of the cmdlets and would like to see some values infront of StorageQuotaAllocated. |
According to https://techcommunity.microsoft.com/discussions/sharepoint_general/what-is-the-storagequotaallocated-means-in-spo/297042 , the StorageQuotaAllocated is not the amount of space used, which is why it's 0. As the Get-SPOTenant cmdlet is from Microsoft, you could open a support ticket asking if it's expected to be 0 or if there's an issue, and which field should give you what you are looking for. I have an old script around that checked the % used and I'll check which fields or report I used, it could be even from Graph. |
I checked my scripts and found 2 ways:
|
Reporting an Issue or Missing Feature
I have Sites.FullControl.All permission still i do not getting correct Storagequota and even not getting allocated storage data.
Expected behavior
I want total storage of Sharepoint Tenant and used storage.
Actual behavior
i am getting Allocated storage is zero and total Storage of Sharepoint admin center is different.
Steps to reproduce behavior
$Url = "https://xyz-admin.sharepoint.com"
$ClientId = "123456678-45-576575"
Connect-PnPOnline -Url $AdminCenterURL -Interactive -ClientId $CleintId
$tenantInfo = Get-PnPTenant
$Storagequota = $tenantInfo.StorageQuota
$Allocatedquota = $tenantInfo.StorageQuotaAllocated
What is the version of the Cmdlet module you are running?
PnP.PowerShell 2.12.0
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: