manifests/collectors/Storage/FileShares.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/StorageFileShares' ) ResourceTypeMatching = 'Grouped' AdditionalFilter = $null FilterPreamble = '' RowLoopVariable = '1' Preamble = @' $ResUCount = 1 $data = $1.PROPERTIES $sub1 = $SUB | Where-Object { $_.id -eq $1.subscriptionId } $ShareName = 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 = 'Share' Expression = '$ShareName' } @{ Name = 'Quota (GiB)' Expression = '[string]$data.shareQuota' } @{ Name = 'Access Tier' Expression = '$data.accessTier' } @{ Name = 'Protocols' Expression = '$data.enabledProtocols' } @{ Name = 'Root Squash' Expression = '$data.rootSquash' } @{ Name = 'Snapshot Count' Expression = '[string]$data.snapshotCount' } @{ Name = 'Last Modified' Expression = '[string]$data.lastModifiedTime' } @{ Name = 'Resource U' Expression = '$ResUCount' } ) Export = @{ WorksheetName = 'File Shares' TableNamePrefix = 'FileSharesTable_' Columns = @( 'Subscription' 'Resource Group' 'Storage Account' 'Share' 'Quota (GiB)' 'Access Tier' 'Protocols' 'Root Squash' 'Snapshot Count' 'Last Modified' 'Resource U' ) TagColumns = @() NumberFormat = '0' ConditionalText = @() } } |