azureblog.co.uk
← 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 name10-Year Audit Log Retention Add On
String ID (SkuPartNumber)10_ALR_ADDON
GUID (SkuId)c2e41e49-e2a2-4c55-832a-cf13ffba1d6a
Service plans1

Service plans included (1)

Service planNameID
Auditing_10Year_Retention_Add_OnAuditing 10Year Retention Add On7d16094b-4db8-41ff-a182-372a90a85407

Is it in your tenant?

powershell3 lines
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.

powershell3 lines
Connect-MgGraph -Scopes "User.ReadWrite.All"
Set-MgUserLicense -UserId "jane.doe@contoso.com" `
    -AddLicenses @{ SkuId = "c2e41e49-e2a2-4c55-832a-cf13ffba1d6a" } -RemoveLicenses @()

Who has it?

powershell4 lines
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

Search all 620 SKUs →