azureblog.co.uk
← cd ~/licences
// licences · sku

VIVA_LEARNINGViva Learning

VIVA_LEARNING is the SKU part number Microsoft uses for Viva Learning. You'll see it in Graph, PowerShell, licence reports and group-based licensing errors.

Product nameViva Learning
String ID (SkuPartNumber)VIVA_LEARNING
GUID (SkuId)c9d442fc-21fb-4bd7-89e0-a710d74987f6
Service plans1

Service plans included (1)

Service planNameID
VIVA_LEARNING_PREMIUMViva Learning7162bd38-edae-4022-83a7-c5837f951759

Is it in your tenant?

powershell3 lines
Connect-MgGraph -Scopes "Organization.Read.All"
Get-MgSubscribedSku | Where-Object SkuPartNumber -eq "VIVA_LEARNING" |
    Select-Object SkuPartNumber, ConsumedUnits, @{ n = "Purchased"; e = { $_.PrepaidUnits.Enabled } }

Assign it to a user

For more than a handful of people, use group-based licensing instead. The user needs a usage location set first.

powershell3 lines
Connect-MgGraph -Scopes "User.ReadWrite.All"
Set-MgUserLicense -UserId "jane.doe@contoso.com" `
    -AddLicenses @{ SkuId = "c9d442fc-21fb-4bd7-89e0-a710d74987f6" } -RemoveLicenses @()

Who has it?

powershell4 lines
Connect-MgGraph -Scopes "User.Read.All"
Get-MgUser -Filter "assignedLicenses/any(x:x/skuId eq c9d442fc-21fb-4bd7-89e0-a710d74987f6)" `
    -ConsistencyLevel eventual -CountVariable n -All |
    Select-Object DisplayName, UserPrincipalName

Search all 620 SKUs →