manifests/collectors/Management/ReservationRecom.psd1
|
# # GENERATED by scripts/ConvertTo-ScoutCollectorDefinition.ps1 from Modules/Public/InventoryModules/Management/ReservationRecom.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 = @( 'Microsoft.Consumption/reservationRecommendations' ) ResourceTypeMatching = 'Grouped' AdditionalFilter = $null FilterPreamble = '' RowLoopVariable = '1' Preamble = @' $ResUCount = 1 $SubId = $1.id.split('/')[2] $sub1 = $SUB | Where-Object { $_.id -eq $SubId } $data = $1.PROPERTIES '@ AdditionalRowLoops = @() TagLoop = $null Fields = @( @{ Name = 'ID' Expression = '$1.id' } @{ Name = 'Subscription' Expression = '$sub1.Name' } @{ Name = 'Current SKU' Expression = '$1.SKU' } @{ Name = 'Location' Expression = '$1.location' } @{ Name = 'Resource Type' Expression = '$data.resourceType' } @{ Name = 'Instance Flexibility Group' Expression = '$data.instanceFlexibilityGroup' } @{ Name = 'Recommended Size' Expression = '$data.normalizedSize' } @{ Name = 'Recommended Number of Reservations' Expression = '$data.recommendedQuantity' } @{ Name = 'Instance Flexibility Ratio' Expression = '$data.instanceFlexibilityRatio' } @{ Name = 'Quantity Normalized' Expression = '$data.recommendedQuantityNormalized' } @{ Name = 'Cost With No Reserved Instance' Expression = '$data.costWithNoReservedInstances' } @{ Name = 'Cost With Reserved Instance' Expression = '$data.totalCostWithReservedInstances' } @{ Name = 'Net Savings' Expression = '$data.netSavings' } @{ Name = 'Reservation Term' Expression = '$data.term' } @{ Name = 'Scope' Expression = '$data.scope' } @{ Name = 'Resource U' Expression = '$ResUCount' } ) Export = @{ WorksheetName = 'Reservation Advisor' TableNamePrefix = 'ReservRecTable_' Columns = @( 'Subscription' 'Current SKU' 'Location' 'Resource Type' 'Instance Flexibility Group' 'Recommended Size' 'Recommended Number of Reservations' 'Instance Flexibility Ratio' 'Quantity Normalized' 'Cost With No Reserved Instance' 'Cost With Reserved Instance' 'Net Savings' 'Reservation Term' 'Scope' ) TagColumns = @() TagColumnsBefore = $null NumberFormat = '0' ConditionalText = @() } SourceCollector = 'Modules/Public/InventoryModules/Management/ReservationRecom.ps1' } |