Get-GeoStorageQuota
SharePoint Online: Gets geo storage quota
#Requires -Version 5.1
#Requires -Modules Microsoft.Online.SharePoint.PowerShell
[CmdletBinding()]
Param(
[switch]$AllLocations
)
Process {
try {
if ($AllLocations) { $result = Get-SPOGeoStorageQuota -AllLocations -ErrorAction Stop | Select-Object * }
else { $result = Get-SPOGeoStorageQuota -ErrorAction Stop | Select-Object * }
if ($null -ne $result) { foreach ($item in $result) { $item | Add-Member -NotePropertyName Timestamp -NotePropertyValue (Get-Date -Format "yyyy-MM-dd HH:mm:ss") -PassThru -Force } }
}
catch { throw }
}Off
Show quotas for all geo locations