← cd ~/licences
// licences · sku
10_ALR_ADDON10-Year Audit Log Retention Add On
10_ALR_ADDON is the SKU part number Microsoft uses for 10-Year Audit Log Retention Add On. You'll see it in Graph, PowerShell, licence reports and group-based licensing errors.
| Product name | 10-Year Audit Log Retention Add On |
|---|---|
| String ID (SkuPartNumber) | 10_ALR_ADDON |
| GUID (SkuId) | c2e41e49-e2a2-4c55-832a-cf13ffba1d6a |
| Service plans | 1 |
Service plans included (1)
| Service plan | Name | ID |
|---|---|---|
Auditing_10Year_Retention_Add_On | Auditing 10Year Retention Add On | 7d16094b-4db8-41ff-a182-372a90a85407 |
Is it in your tenant?
Connect-MgGraph -Scopes "Organization.Read.All"
Get-MgSubscribedSku | Where-Object SkuPartNumber -eq "10_ALR_ADDON" |
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.
Connect-MgGraph -Scopes "User.ReadWrite.All"
Set-MgUserLicense -UserId "jane.doe@contoso.com" `
-AddLicenses @{ SkuId = "c2e41e49-e2a2-4c55-832a-cf13ffba1d6a" } -RemoveLicenses @()Who has it?
Connect-MgGraph -Scopes "User.Read.All"
Get-MgUser -Filter "assignedLicenses/any(x:x/skuId eq c2e41e49-e2a2-4c55-832a-cf13ffba1d6a)" `
-ConsistencyLevel eventual -CountVariable n -All |
Select-Object DisplayName, UserPrincipalName