mirror of
https://github.com/KelvinTegelaar/CIPP.git
synced 2026-04-25 16:26:09 +03:00
[GH-ISSUE #1386] [Feature Request]: Monitor for overprovisioned O365 licenses. #770
Labels
No labels
API
Feature
NotABug
NotABug
Planned
Sponsor Priority
Sponsor Priority
bug
documentation
duplicate
enhancement
needs more info
no-activity
no-priority
not-assigned
pull-request
react-conversion
react-conversion
roadmap
security
stale
unconfirmed-by-user
unconfirmed-by-user
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/CIPP#770
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @IgorMeynin on GitHub (Feb 19, 2023).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/1386
Description of the new feature - must be an in-depth explanation of the feature you want, reasoning why, and the added benefits for MSPs as a whole.
Due to the new Microsoft NCE license model, we need a better way to monitor for overprovisioned licenses. It would be helpful to be alerted when the number of O365 consumed licenses is higher than provisioned licenses.
PowerShell commands you would normally use to achieve above request
#Connect to Microsoft Graph.
Connect-Graph -Scopes Organization.Read.All
#Read all assigned licenses for the SKU part that contain O365 in the part name.
$Licenses = Get-MgSubscribedSku | where{$.SkuPartNumber -like "O365"} | select {$.PrepaidUnits.enabled}, ConsumedUnits, skupartnumber
#Identify the total number of consumed and prepaid licenses.
[int]$Consumed = $Licenses.ConsumedUnits
[int]$Prepaid = $Licenses.{$_.PrepaidUnits.enabled}
#Compare the number of consumed and prepaid licenses to identify overprovisioning.
If($Consumed -gt $Prepaid){Write-Host -ForegroundColor Red "Licenses have been overprovisioned. Total Count $Consumed/$Prepaid"}
@github-actions[bot] commented on GitHub (Feb 19, 2023):
Thank you for creating a feature request!
Your current priority is set to "No Priority". No Priority Feature requests automatically get closed in two days if a contributor does not accept the FR.
If you are a sponsor you can request an upgrade of priority. To upgrade the priority type "I would like to upgrade the priority".
If you want this feature to be integrated you can always do this yourself by checking out our contributions guide at https://cipp.app/docs/dev/. Contributors to the CIPP project reserve the right to close feature requests at will.
If you'd like this feature request to be assigned to you, please comment "I would like to work on this please!".
@IgorMeynin commented on GitHub (Feb 19, 2023):
I would like to upgrade the priority
@BNWEIN commented on GitHub (Feb 23, 2023):
This already exists as an alert in the alerts wizard in version 3.0
@BNWEIN commented on GitHub (Feb 23, 2023):
Re-Reading your Feature Request, it might be the alert above the one i have circled that you want, but its there.
@IgorMeynin commented on GitHub (Feb 24, 2023):
Thank you for all the comments. I missed the existing alert. All good now. :)