Functions/GetOperationTotal.ps1

1
2
3
4
5
6
7
8
9
10
11
12
# Internal Function: do not use
Function Get-OperationTotal {
    [cmdletbinding()]
    param(
        $deprep
    )
    $OT = @()
    foreach ($operation in $deprep.DeploymentReport.Operations.Operation) { 
        $OT += $operation | Select-Object @{Label = "OperationName"; Expression = {($operation.Name)}}, @{Label = "count"; Expression = {$operation.Item.Value.Count.ToString()}}
    } 
    Return $OT
}