manifests/collectors/Databases/StorageTables.psd1
|
# # GENERATED by scripts/Build-ScoutServiceCollector.ps1 from manifests/specs/service-collectors.psd1 (AB#6741). # Authored as data -- there is no source collector script to drift from. Edit the spec and # regenerate; do not hand-patch this file. # @{ ResourceTypes = @( 'AZSC/ARMChild/StorageTables' ) ResourceTypeMatching = 'Grouped' AdditionalFilter = $null FilterPreamble = '' RowLoopVariable = '1' Preamble = @' $ResUCount = 1 $data = $1.PROPERTIES $sub1 = $SUB | Where-Object { $_.id -eq $1.subscriptionId } $TableName = if([string]::IsNullOrEmpty($1.name)){$null}else{(([string]$1.name) -split '/')[-1]} '@ AdditionalRowLoops = @() TagLoop = $null Fields = @( @{ Name = 'ID' Expression = '$1.id' } @{ Name = 'Subscription' Expression = '$sub1.Name' } @{ Name = 'Resource Group' Expression = '$1.RESOURCEGROUP' } @{ Name = 'Storage Account' Expression = '$1.PARENTNAME' } @{ Name = 'Table' Expression = '$TableName' } @{ Name = 'Metadata Keys' Expression = '[string]@($data.metadata.psobject.properties).Count' } @{ Name = 'Resource U' Expression = '$ResUCount' } ) Export = @{ WorksheetName = 'Storage Tables' TableNamePrefix = 'StorageTablesTable_' Columns = @( 'Subscription' 'Resource Group' 'Storage Account' 'Table' 'Metadata Keys' 'Resource U' ) TagColumns = @() NumberFormat = '0' ConditionalText = @() } } |