Before you start

Check what you have

See which licences the tenant holds and how many are free, and check every synced account has a usage location.

5 minutesRead-only

List the licences

PowerShell
Connect-MgGraph -TenantId contoso.onmicrosoft.com -Scopes "Organization.Read.All","User.Read.All" -NoWelcome
Get-MgSubscribedSku | Select-Object SkuPartNumber, SkuId,
  @{n='Total';e={$_.PrepaidUnits.Enabled}}, ConsumedUnits, CapabilityStatus | Format-Table -AutoSize
SkuPartNumberLicence
M365EDU_A5_FACULTYMicrosoft 365 A5 for Faculty
M365EDU_A5_STUDENTMicrosoft 365 A5 for Students

Copy the two SkuId values. You need them on the assign page. Check Total minus ConsumedUnits covers your staff and pupil numbers.

Check usage locations

PowerShell
Get-MgUser -Filter "onPremisesSyncEnabled eq true" -All -ConsistencyLevel eventual -CountVariable n `
  -Property UserPrincipalName,UsageLocation | Where-Object { -not $_.UsageLocation } |
  Select-Object UserPrincipalName

No output means every synced account has one. If any are listed, fix the Cloud Sync UsageLocation mapping first.

Your progress is kept in this browser only.