Skip to content

Set-GeoStorageQuota

SharePoint Online: Sets geo storage quota

#Requires -Version 5.1
#Requires -Modules Microsoft.Online.SharePoint.PowerShell

[CmdletBinding()]
Param(
    [Parameter(Mandatory = $true)]
    [string]$GeoLocation,
    [Parameter(Mandatory = $true)]
    [long]$StorageQuotaMB
)

Process {
    try {
        $result = Set-SPOGeoStorageQuota -GeoLocation $GeoLocation -StorageQuotaMB $StorageQuotaMB -ErrorAction Stop | Select-Object *
        if ($null -ne $result) { $result | Add-Member -NotePropertyName Timestamp -NotePropertyValue (Get-Date -Format "yyyy-MM-dd HH:mm:ss") -PassThru -Force }
    }
    catch { throw }
}

Geo location to update

Storage quota in MB

An interactive directory of PowerShell scripts.