Cloud Account Aggregation report

Yes, however you will only be able to collect the last 90 days worth of data due to the retention I mentioned above

Invoke-Paginate `
    -Function "Get-BetaTaskStatusList" `
    -Increment 250 `
    -Limit 10000 `
    -InitialOffset 0 `
    -Parameters @{"Sorters" = "-created" } |
    Where-Object {$_.taskDefinitionSummary.uniqueName -eq "Cloud Account Aggregation"} |
    Select-Object completionStatus, launched, completed, `
        @{Name = "Duration"; Expression = {
            if ($_.completed) {
                ($_.completed - $_.launched).TotalSeconds
            }
            else {
                ''
            }
        }}, `
        @{Name = "Source"; Expression = {$_.target.name}}, `
        @{Name = "Scanned"; Expression = {$_.attributes.total}}, `
        @{Name = "Optimization"; Expression = {$_.attributes.optimizedAggregation}} |
    Sort-Object launched

The results will look like this

4 Likes