Skip to content

Commit

Permalink
added lost sku exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Jun 21, 2024
1 parent 002cdab commit 149f68b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function New-GradientServiceSyncRun {
Import-Module '.\Modules\CIPPCore'
Write-Host "Doing $domainName"
try {
$Licrequest = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/subscribedSkus' -tenantid $_.defaultDomainName -ErrorAction Stop
$Licrequest = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/subscribedSkus' -tenantid $_.defaultDomainName -ErrorAction Stop | Where-Object -Property skuId -NotIn $ExcludedSkuList.RowKey
[PSCustomObject]@{
Tenant = $domainName
Licenses = $Licrequest
Expand Down

0 comments on commit 149f68b

Please sign in to comment.