Skip to content

Commit

Permalink
update list sku
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Jan 2, 2025
1 parent b17e37e commit 4257f07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Modules/CIPPCore/Public/Entrypoints/Invoke-ListCSPsku.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ Function Invoke-ListCSPsku {
$APIName = $TriggerMetadata.FunctionName
Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -message 'Accessed this API' -Sev 'Debug'

$GraphRequest = Get-SherwebCatalog -TenantFilter $Request.Query.TenantFilter
if ($Request.Query.currentSkuOnly) {
$GraphRequest = Get-SherwebCurrentSubscription -TenantFilter $Request.Query.TenantFilter
} else {
$GraphRequest = Get-SherwebCatalog -TenantFilter $Request.Query.TenantFilter
}


Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
Expand Down

0 comments on commit 4257f07

Please sign in to comment.