manifests/collectors/Identity/Licensing.psd1
|
# # GENERATED by scripts/ConvertTo-ScoutCollectorDefinition.ps1 from Modules/Public/InventoryModules/Identity/Licensing.ps1 (AB#5660). # Field expressions are copied verbatim from the original collector and evaluate in an # equivalent scope -- see docs/design/decisions/declarative-collectors.md. # Review before trusting; regenerate rather than hand-patch if the source collector changes. # @{ ResourceTypes = @( 'entra/subscribedskus' ) ResourceTypeMatching = 'Grouped' AdditionalFilter = $null FilterPreamble = '' RowLoopVariable = '1' Preamble = @' $ResUCount = 1 $data = $1.properties $prepaidEnabled = 0 $prepaidSuspended = 0 $prepaidWarning = 0 if ($data.prepaidUnits) { $prepaidEnabled = [int]$data.prepaidUnits.enabled $prepaidSuspended = [int]$data.prepaidUnits.suspended $prepaidWarning = [int]$data.prepaidUnits.warning } '@ AdditionalRowLoops = @() TagLoop = $null Fields = @( @{ Name = 'ID' Expression = '$1.id' } @{ Name = 'Tenant ID' Expression = '$1.tenantId' } @{ Name = 'SKU Part Number' Expression = '$data.skuPartNumber' } @{ Name = 'SKU ID' Expression = '$data.skuId' } @{ Name = 'Consumed Units' Expression = '[int]$data.consumedUnits' } @{ Name = 'Prepaid Enabled' Expression = '$prepaidEnabled' } @{ Name = 'Prepaid Suspended' Expression = '$prepaidSuspended' } @{ Name = 'Prepaid Warning' Expression = '$prepaidWarning' } @{ Name = 'Applies To' Expression = '$data.appliesTo' } @{ Name = 'Capability Status' Expression = '$data.capabilityStatus' } @{ Name = 'Resource U' Expression = '$ResUCount' } ) Export = @{ WorksheetName = 'Licensing' TableNamePrefix = 'LicensingTable_' Columns = @( 'SKU Part Number' 'SKU ID' 'Consumed Units' 'Prepaid Enabled' 'Prepaid Suspended' 'Prepaid Warning' 'Applies To' 'Capability Status' 'Resource U' ) TagColumns = @() TagColumnsBefore = $null NumberFormat = '0' ConditionalText = @( 'New-ConditionalText Suspended -Range J:J' 'New-ConditionalText Warning -Range J:J' ) } SourceCollector = 'Modules/Public/InventoryModules/Identity/Licensing.ps1' } |