Skip to content
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

Get-MgSiteDrive Quota values not correct for Remaining and Used properties #1869

Open
1 of 3 tasks
atn-3644 opened this issue Aug 1, 2024 · 0 comments
Open
1 of 3 tasks

Comments

@atn-3644
Copy link

atn-3644 commented Aug 1, 2024

Category

  • Question
  • Documentation issue
  • Bug

Expected or Desired Behavior

Exporting accurate Quota values for OneDrive for Business sites that can be used for capacity planning analysis.
For this purpose, I have to use Microsoft Graph.

Observed Behavior

I have used following methods:

The values returned for Quota.Used do not match the values from Admin Portal, under User Details Panel > OneDrive.
The differences are not small, they can get to up to 600GB.
Even more, in some cases Quota.Remaining > Quota.Total and this leads to Quota.Used to have a negative value.

I have double checked this using Powershell Module Microsoft.Online.SharePoint.PowerShell.
Cmdlet Get-SPOSite -IncludePersonalSite:$true -Limit All -Filter "Url -like 'https://***-my.sharepoint.com/personal/'" | select Url , StorageUsageCurrent, StorageQuota returns StorageUsageCurrent with the same value as the one displayed in Admin Portal under User Details Panel > OneDrive

Steps to Reproduce

I have not been able to reproduce the issue on another tenant until now, as I do not know the cause.

Thank you.

[ ]: http://aka.ms/onedrive-api-issues
[x]: http://aka.ms/onedrive-api-issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant