PureStoragePowerShellToolkit.FlashArray.psm1

<#
    ===========================================================================
    Release version: 3.0.1
    Revision information: Refer to the changelog.md file
    ---------------------------------------------------------------------------
    Maintained by: FlashArray Integrations and Evangelsigm Team @ Pure Storage
    Organization: Pure Storage, Inc.
    Filename: PureStoragePowerShellToolkit.FlashArray.psm1
    Copyright: (c) 2023 Pure Storage, Inc.
    Module Name: PureStoragePowerShellToolkit.FlashArray
    Description: PowerShell Script Module (.psm1)
    --------------------------------------------------------------------------
    Disclaimer:
    The sample module and documentation are provided AS IS and are not supported by the author or the author’s employer, unless otherwise agreed in writing. You bear
    all risk relating to the use or performance of the sample script and documentation. The author and the author’s employer disclaim all express or implied warranties
    (including, without limitation, any warranties of merchantability, title, infringement or fitness for a particular purpose). In no event shall the author, the author’s employer or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever arising out of the use or performance of the sample script and documentation (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss), even if such person has been advised of the possibility of such damages.
    --------------------------------------------------------------------------
    Contributors: Rob "Barkz" Barker @purestorage, Robert "Q" Quimbey @purestorage, Mike "Chief" Nelson, Julian "Doctor" Cates, Marcel Dussil @purestorage - https://en.pureflash.blog/ , Craig Dayton - https://github.com/cadayton , Jake Daniels - https://github.com/JakeDennis, Richard Raymond - https://github.com/data-sciences-corporation/PureStorage , The dbatools Team - https://dbatools.io , many more Puritans, and all of the Pure Code community who provide excellent advice, feedback, & scripts now and in the future.
    ===========================================================================
#>


#Requires -Version 5
#Requires -Modules @{ ModuleName='PureStoragePowerShellSDK2'; ModuleVersion='2.16' }

#region Helper functions

function Convert-UnitOfSize {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [AllowNull()]
        $Value,
        $To = 1GB,
        $From = 1,
        $Decimals = 2
    )

    process {
        return [math]::Round($Value * $From / $To, $Decimals)
    }
}

function Write-Color {
    [CmdletBinding()]
    param(
        [Parameter(Position = 0, Mandatory, ValueFromPipeline)]
        [string[]]
        $Text,

        [ConsoleColor[]]
        $ForegroundColor = ([console]::ForegroundColor),

        [ConsoleColor[]]
        $BackgroundColor = ([console]::BackgroundColor),

        [int]
        $Indent = 0,

        [int]
        $LeadingSpace = 0,

        [int]
        $TrailingSpace = 0,

        [switch]
        $NoNewLine
    )

    begin {
        $baseParams = @{
            ForegroundColor = [console]::ForegroundColor
            BackgroundColor = [console]::BackgroundColor
            NoNewline = $true
        }

        # Add leading lines
        Write-Host ("`n" * $LeadingSpace) @baseParams
    }

    process {
        # Add TABs before text
        Write-Host ("`t" * $Indent) @baseParams

        if ($PSBoundParameters.ContainsKey('ForegroundColor') -or $PSBoundParameters.ContainsKey('BackgroundColor')) {
            $writeParams = $baseParams.Clone()
            for ($i = 0; $i -lt $Text.Count; $i++) {

                if ($i -lt $ForegroundColor.Count) {
                    $writeParams['ForegroundColor'] = $ForegroundColor[$i]
                }

                if ($i -lt $BackgroundColor.Count) {
                    $writeParams['BackgroundColor'] = $BackgroundColor[$i]
                }

                Write-Host $Text[$i] @writeParams
            }
        } else {
            Write-Host $Text -NoNewline
        }

        if (-not $NoNewLine) {
            Write-Host
        }
    }

    end {
        if (-not $NoNewLine) {
            Write-Host ("`n" * $TrailingSpace) @baseParams
        }
    }
}

#endregion Helper functions

class ModuleEntity {
    hidden [string] GetSizeLabel($size) {
        return Get-SizeLabel -Size $size -Decimals 2
    }
}

class ArrayEntity : ModuleEntity {
    [string]$Array

    ArrayEntity([string]$array) {
        $this.Array = $array
    }
}

class HostVolume : ArrayEntity {
    [string]$HostName
    [string]$VolumeName
    [string]$SourceName
    [datetime]$Created
    [string]$SerialNumber
    [long]$Provisioned

    HostVolume([string]$array, 
        [string]$hostName,
        [string]$volumeName,
        [string]$sourceName,
        [datetime]$created,
        [string]$serial,
        [long]$provisioned) : base($array) {

        $this.HostName     = $hostName
        $this.VolumeName   = $volumeName
        $this.SourceName   = $sourceName
        $this.Created      = $created
        $this.SerialNumber = $serial
        $this.Provisioned  = $provisioned
    }
}

class VolumeConnection : ArrayEntity {
    [string]$HostName
    [string]$VolumeName
    [long]$Lun
    [string[]]$Iqn
    [string[]]$Wwn
    [long]$Provisioned
    [long]$Unique

    VolumeConnection([string]$array, 
        [string]$hostName,
        [string]$volumeName,
        [long]$lun,
        [string[]]$iqn,
        [string[]]$wwn,
        [long]$provisioned,
        [long]$unique) : base($array) {

        $this.HostName    = $hostName
        $this.VolumeName  = $volumeName
        $this.Lun         = $lun
        $this.Iqn         = $iqn
        $this.Wwn         = $wwn
        $this.Provisioned = $provisioned
        $this.Unique      = $unique
    }
}

class DisconnectedVolume : ArrayEntity {
    [string]$VolumeName
    [string]$SerialNumber
    [long]$Provisioned
    [long]$Unique
    [float]$DataReduction

    DisconnectedVolume([string]$array,
        [string]$volumeName,
        [string]$serial,
        [long]$provisioned,
        [long]$unique,
        [float]$reduction) : base($array) {

        $this.VolumeName    = $volumeName
        $this.SerialNumber  = $serial
        $this.Provisioned   = $provisioned
        $this.Unique        = $unique
        $this.DataReduction = $reduction
    }
}

class CapacityStats : ModuleEntity {
    [int]$ArraysCount
    [long]$Capacity
    [long]$Unique
    [double]$ReducedFrom
    [double]$TotalProvisioned
    [datetime]$CollectionDate

    CapacityStats([int]$arraysCount,
        [long]$capacity,
        [long]$unique,
        [double]$reducedFrom,
        [double]$totalProvisioned) : base() {

        $this.ArraysCount      = $arraysCount
        $this.Capacity         = $capacity
        $this.Unique           = $unique
        $this.ReducedFrom      = $reducedFrom
        $this.TotalProvisioned = $totalProvisioned
        $this.CollectionDate   = Get-Date
    }
}

class ArraySpace : ArrayEntity {
    [long]$Capacity
    [long]$CapacityFree
    [double]$PercentUsed
    [long]$TotalPhysical
    [long]$Unique
    [long]$Shared
    [long]$Snapshots
    [long]$System
    [float]$DataReduction
    [float]$ThinProvisioning

    ArraySpace([string]$array,
        [long]$capacity,
        [long]$totalPhysical,
        [long]$unique,
        [long]$shared,
        [long]$snapshots,
        [long]$system,
        [float]$dataReduction,
        [float]$thinProvisioning) : base($array) {

        $this.Capacity         = $capacity
        $this.TotalPhysical    = $totalPhysical
        $this.Unique           = $unique
        $this.Shared           = $shared
        $this.Snapshots        = $snapshots
        $this.System           = $system
        $this.DataReduction    = $dataReduction
        $this.ThinProvisioning = $thinProvisioning

        $this.CapacityFree = $this.Capacity - $this.TotalPhysical
        $this.PercentUsed  = $this.TotalPhysical / $this.Capacity
    }
}

class StaleSnapshot : ArrayEntity {
    [string]$SnapshotName
    [long]$TotalPhysical
    [bool]$Destroyed
    [timespan]$Age

    StaleSnapshot([string]$array,
        [string]$snapshotName,
        [long]$totalPhysical,
        [bool]$destroyed,
        [timespan]$age) : base($array) {

        $this.SnapshotName  = $snapshotName
        $this.TotalPhysical = $totalPhysical
        $this.Destroyed     = $destroyed
        $this.Age           = $age
    }
}

class VolumeGrowthStats : ArrayEntity {
    [string]$VolumeName
    [long]$Provisioned
    [long]$Unique
    [long]$Growth
    [double]$GrowthPercent

    VolumeGrowthStats([string]$array, 
        [string]$volumeName,
        [long]$provisioned,
        [long]$unique,
        [long]$growth,
        [double]$growthPercent) : base($array) {

        $this.VolumeName    = $volumeName
        $this.Provisioned   = $provisioned
        $this.Unique        = $unique
        $this.Growth        = $growth
        $this.GrowthPercent = $growthPercent
    }
}

class PgroupConfig : ArrayEntity {
    [string]$PgroupName
    [string[]]$HostGroups
    [string[]]$Hosts
    [string[]]$Volumes
    [string[]]$Members
    [bool]$ReplicationEnabled
    [long]$Frequency
    [int]$AllForSec
    [int]$Days
    [int]$PerDay

    PgroupConfig([string]$array,
        [string]$pgroupName,
        [string[]]$hostGroups,
        [string[]]$hosts,
        [string[]]$volumes,
        [bool]$replicationEnabled,
        [long]$frequency,
        [int]$allForSec,
        [int]$days,
        [int]$perDay) : base($array) {

            $this.PgroupName         = $pgroupName
            $this.HostGroups         = $hostGroups
            $this.Hosts              = $hosts
            $this.Volumes            = $volumes
            $this.ReplicationEnabled = $replicationEnabled
            $this.Frequency          = $frequency
            $this.AllForSec          = $allForSec
            $this.Days               = $days
            $this.PerDay             = $perDay

            $this.Members = (@($this.HostGroups, $this.Hosts, $this.Volumes) -ne $null)[0]
    }
}

$stylesheetRawXml = @"
<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr"
    xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"
    xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"
    xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision">
    <numFmts count="1">
        <numFmt numFmtId="164" formatCode="m/d/yy\ h:mm;@"/>
    </numFmts>
    <fonts count="1" x14ac:knownFonts="1">
        <font>
            <sz val="11"/>
            <color theme="1"/>
            <name val="Calibri"/>
            <family val="2"/>
            <scheme val="minor"/>
        </font>
    </fonts>
    <fills count="2">
        <fill>
            <patternFill patternType="none"/>
        </fill>
        <fill>
            <patternFill patternType="gray125"/>
        </fill>
    </fills>
    <borders count="1">
        <border>
            <left/>
            <right/>
            <top/>
            <bottom/>
            <diagonal/>
        </border>
    </borders>
    <cellStyleXfs count="1">
        <xf numFmtId="0" fontId="0" fillId="0" borderId="0"/>
    </cellStyleXfs>
    <cellXfs count="2">
        <xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>
        <xf numFmtId="164" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1"/>
    </cellXfs>
    <cellStyles count="1">
        <cellStyle name="Normal" xfId="0" builtinId="0"/>
    </cellStyles>
    <dxfs count="0"/>
    <tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/>
    <extLst>
        <ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}"
            xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main">
            <x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/>
        </ext>
        <ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}"
            xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main">
            <x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/>
        </ext>
    </extLst>
</styleSheet>
"@


function Invoke-GenericMethod {
    <#
    .SYNOPSIS
    Invoke a generic method on a non-generic type:
    #>
 
    [CmdletBinding()]
    param( 
        [Parameter(Mandatory)]
        $Instance, 
        [Parameter(Mandatory)]
        [string] $MethodName, 
        [Parameter(Mandatory=$false)]
        [Type[]] $TypeParameters = ($MethodParameters | ForEach-Object { $_.GetType() }),
        [Parameter(Mandatory=$false)]
        [object[]] $MethodParameters = @()
    ) 

    ## Determine if the types in $set1 match the types in $set2, replacing generic
    ## parameters in $set1 with the types in $genericTypes
    function ParameterTypesMatch([type[]] $Set1, [type[]] $Set2, [type[]] $GenericTypes) {
        $typeReplacementIndex = 0
        $currentTypeIndex = 0

        ## Exit if the set lengths are different
        if ($Set1.Count -ne $Set2.Count) {
            return $false
        }

        ## Go through each of the types in the first set
        foreach ($type in $Set1) {
            ## If it is a generic parameter, then replace it with a type from
            ## the $genericTypes list
            if ($type.IsGenericParameter) {
                $type = $GenericTypes[$typeReplacementIndex]
                $typeReplacementIndex++
            }

            ## Check that the current type (i.e.: the original type, or replacement
            ## generic type) matches the type from $set2
            if ($type -ne $Set2[$currentTypeIndex]) {
                return $false
            }

            $currentTypeIndex++
        }

        return $true
    }

    ## Determine the type that we will call the generic method on. Initially, assume
    ## that it is actually a type itself.
    $type = $Instance

    ## If it is not, then it is a real object, and we can call its GetType() method
    if ($Instance -isnot 'Type') {
        $type = $Instance.GetType()
    }

    ## Search for the method that:
    ## - has the same name
    ## - is public
    ## - is a generic method
    ## - has the same parameter types
    foreach ($method in $type.GetMethods()) {
        # Write-Host $method.Name
        if (($method.Name -eq $methodName) -and 
                ($method.IsPublic) -and 
                ($method.IsGenericMethod)) {
            $parameterTypes = @($method.GetParameters() | ForEach-Object { $_.ParameterType })
            $methodParameterTypes = @($MethodParameters | ForEach-Object { $_.GetType() })
            if (ParameterTypesMatch $parameterTypes $methodParameterTypes $TypeParameters) {
                ## Create a closed representation of it
                $newMethod = $method.MakeGenericMethod($TypeParameters)

                ## Invoke the method
                $newMethod.Invoke($Instance, $MethodParameters)

                return
            }
        }
    }

    ## Return an error if we couldn't find that method
    throw "Could not find method $MethodName"
}

function Export-Pfa2Excel {
    [CmdletBinding()]
    param(
        [Parameter(ValueFromPipeline)]
        [System.Collections.IDictionary]$Tables,
        [Parameter(Mandatory)]
        [string]$LiteralPath
    )
    begin {
        if (Test-Path $LiteralPath) {
            Remove-Item $LiteralPath
        }

        $workbook = [DocumentFormat.OpenXml.Spreadsheet.Workbook]::new();
        $sheets = [DocumentFormat.OpenXml.Spreadsheet.Sheets]::new();
        $workbookPart = $null

        try {
            $spreadsheetDocument = [DocumentFormat.OpenXml.Packaging.SpreadsheetDocument]::Create($LiteralPath, [DocumentFormat.OpenXml.SpreadsheetDocumentType]::Workbook)
            $workbookPart = $spreadsheetDocument.AddWorkbookPart()
            $workbookPart.Workbook = $workbook

            $workbookPart.Workbook.AppendChild($sheets)

            $stylesheet = [DocumentFormat.OpenXml.Spreadsheet.Stylesheet]::new($stylesheetRawXml);
            $workbookStylesPart = Invoke-GenericMethod $workbookPart AddNewPart -TypeParameters DocumentFormat.OpenXml.Packaging.WorkbookStylesPart
            $workbookStylesPart.Stylesheet = $stylesheet
        }
        catch {
            if ($spreadsheetDocument) {
                $spreadsheetDocument.Dispose()
                $spreadsheetDocument = $null
            }

            throw
        }

        $booleanType = [DocumentFormat.OpenXml.EnumValue[DocumentFormat.OpenXml.Spreadsheet.CellValues]]::new([DocumentFormat.OpenXml.Spreadsheet.CellValues]::Boolean)
        $stringType = [DocumentFormat.OpenXml.EnumValue[DocumentFormat.OpenXml.Spreadsheet.CellValues]]::new([DocumentFormat.OpenXml.Spreadsheet.CellValues]::String)
        $dateType = [DocumentFormat.OpenXml.EnumValue[DocumentFormat.OpenXml.Spreadsheet.CellValues]]::new([DocumentFormat.OpenXml.Spreadsheet.CellValues]::Date)
        $numberType = [DocumentFormat.OpenXml.EnumValue[DocumentFormat.OpenXml.Spreadsheet.CellValues]]::new([DocumentFormat.OpenXml.Spreadsheet.CellValues]::Number)

        $dataTypes = @{
            [DateTime] = $dateType
            [DateTimeOffset] = $dateType
            [String] = $stringType
            [bool] = $booleanType
            [float] = $numberType
            [double] = $numberType
            [decimal] = $numberType
            [System.SByte] = $numberType
            [System.Byte] = $numberType
            [System.Int16] = $numberType
            [System.UInt16] = $numberType
            [System.Int32] = $numberType
            [System.UInt32] = $numberType
            [System.Int64] = $numberType
            [System.UInt64] = $numberType
        }
    }

    process {
        $sheetId = 1
        foreach($table in $Tables.GetEnumerator()) {

            $sheetData = [DocumentFormat.OpenXml.Spreadsheet.SheetData]::new()
            $worksheet = [DocumentFormat.OpenXml.Spreadsheet.Worksheet]::new($sheetData)

            $worksheetPart = Invoke-GenericMethod $workbookPart AddNewPart -TypeParameters DocumentFormat.OpenXml.Packaging.WorksheetPart
            $worksheetPart.Worksheet = $worksheet

            $sheet = [DocumentFormat.OpenXml.Spreadsheet.Sheet]::new()
            $sheet.Id = $workbookPart.GetIdOfPart($worksheetPart)
            $sheet.SheetId = [DocumentFormat.OpenXml.Uint32Value]::new($sheetId)
            $sheet.Name = $table.Key
            $sheets.Append($sheet)

            $valueArray = $table.Value
            if ($table.Value -isnot [array]) {
                $valueArray = ,$table.Value
            }

            $items = @(foreach($valueItem in $valueArray) {
                $ht = [ordered]@{}

                $( if ($valueItem -is [System.Collections.IDictionary]) { $valueItem.GetEnumerator() } else { $valueItem.PSObject.Properties } ) |
                ForEach-Object {
                    $value = if(($null -eq $_.Value) -or $dataTypes.ContainsKey($_.Value.GetType())) { $_.Value } else {[string]$_.Value}
                    $ht.Add($_.Name, $value )
                }

                $ht
            })

            $columns = @($items.Keys | Select-Object -Unique)

            $row = [DocumentFormat.OpenXml.Spreadsheet.Row]::new();
            $row.RowIndex = [DocumentFormat.OpenXml.Uint32Value]::new(1)
            $sheetData.Append($row)

            foreach($c in $columns) {
                $cell = [DocumentFormat.OpenXml.Spreadsheet.Cell]::new();
                $cell.CellValue = [DocumentFormat.OpenXml.Spreadsheet.CellValue]::new($c);
                $cell.DataType = $stringType
                Invoke-GenericMethod $row AppendChild -MethodParameters (,$cell)
            }

            $rowIndex = 2

            foreach($item in $items) {
                $row = [DocumentFormat.OpenXml.Spreadsheet.Row]::new();
                $row.RowIndex = [DocumentFormat.OpenXml.Uint32Value]::new($rowIndex)
                $sheetData.Append($row)
                $rowIndex++

                foreach($c in $columns) {
                    $v = $item[$c]
                    $cell = [DocumentFormat.OpenXml.Spreadsheet.Cell]::new();
                    if($null -ne $v) {
                        $cell.CellValue = [DocumentFormat.OpenXml.Spreadsheet.CellValue]::new($v);
                        $cell.DataType = $dataTypes[$v.GetType()]

                        if($v -is [datetime]) {
                            $cell.StyleIndex = [DocumentFormat.OpenXml.Uint32Value]::new(1)
                        }
                    }

                    Invoke-GenericMethod $row AppendChild -MethodParameters (,$cell)
                }
            }

            if($columns) {
                $tableColumns = [DocumentFormat.OpenXml.Spreadsheet.TableColumns]::new()
                foreach($cid in 1..$columns.Count) {
                    $tc = [DocumentFormat.OpenXml.Spreadsheet.TableColumn]::new()
                    $tc.Name = [DocumentFormat.OpenXml.StringValue]::new($columns[$cid - 1])
                    $tc.Id = [DocumentFormat.OpenXml.Uint32Value]::new($cid)
                    $tableColumns.Append($tc)
                }

                $tableStyleInfo = [DocumentFormat.OpenXml.Spreadsheet.TableStyleInfo]::new()
                $tableStyleInfo.ShowRowStripes = [DocumentFormat.OpenXml.BooleanValue]::new($true)
                $tableStyleInfo.Name = [DocumentFormat.OpenXml.StringValue]::new("TableStyleMedium6")

                $cr = $columns.Count
                if($cr -lt 27) {
                    $cn = [char](64 + $cr)
                } else {
                    $rem = 0
                    $cr = [math]::DivRem($cr - 1, 26, [ref] $rem)
                    $cn = [char](64 + $cr) + [char](65 + $rem)
                }

                $excelTable = [DocumentFormat.OpenXml.Spreadsheet.Table]::new();
                $excelTable.Reference = [DocumentFormat.OpenXml.StringValue]::new('A1:' + $cn + (1 + $items.Length))
                $excelTable.Name = [DocumentFormat.OpenXml.StringValue]::new('Table' + $sheetId)
                $excelTable.DisplayName = $excelTable.Name
                $excelTable.Id = [DocumentFormat.OpenXml.Uint32Value]::new($sheetId)
                $excelTable.TableColumns = $tableColumns
                $excelTable.AutoFilter = [DocumentFormat.OpenXml.Spreadsheet.AutoFilter]::new()
                $excelTable.AutoFilter.Reference = $excelTable.Reference
                $excelTable.TableStyleInfo = $tableStyleInfo

                $tableDefinitionId = 'rId' + $sheetId
                $tableDefinitionPart = Invoke-GenericMethod $worksheetPart AddNewPart -TypeParameters DocumentFormat.OpenXml.Packaging.TableDefinitionPart -MethodParameters $tableDefinitionId
                $tableDefinitionPart.Table = $excelTable

                $tablePart = [DocumentFormat.OpenXml.Spreadsheet.TablePart]::new()
                $tablePart.Id = [DocumentFormat.OpenXml.StringValue]::new($tableDefinitionId)
                $tableParts = [DocumentFormat.OpenXml.Spreadsheet.TableParts]::new($tablePart)
                $worksheet.Append($tableParts)
            }

            $sheetId++
        }
    }

    end {
        if ($spreadsheetDocument) {

            if ($workbookPart.Workbook) {
                $workbookPart.Workbook.Save()
            }

            $spreadsheetDocument.Dispose()
            $spreadsheetDocument = $null
        }
    }
}

function Get-Pfa2AllHostVolumeInfo() {
    <#
    .SYNOPSIS
    Retrieves Host Volume information from a FlashArray.
    .DESCRIPTION
    Retrieves Host Volume information including volumes attributes from a FlashArray.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    FQDN or IP address of the FlashArray.
    .OUTPUTS
    Host volume information.
    .EXAMPLE
    Get-Pfa2AllHostVolumeInfo -Endpoint 'myarray.mydomain.com'
 
    Retrieves Host Volume information from the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    Get-Pfa2AllHostVolumeInfo -Endpoint 'myarray.mydomain.com' -Credential ( Get-Credential )
 
    Retrieves Host Volume information from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .EXAMPLE
    'myarray.mydomain.com' | Get-Pfa2AllHostVolumeInfo
 
    Retrieves Host Volume information from the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    'myarray01', 'myarray02' | Get-Pfa2AllHostVolumeInfo
 
    Retrieves Host Volume information from the FlashArray myarray01 and myarray02.
 
    .EXAMPLE
    $array = [pscustomobject]@{
        Caption = 'Prod Array'
        Endpoint = 'myarray.mydomain.com'
        Credential = ( Get-Credential )
    }
 
    $array | Get-Pfa2AllHostVolumeInfo
 
    Retrieves Host Volume information from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .NOTES
    This cmdlet can utilize the global credentials variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [ValidateNotNullOrEmpty()]
        [string]$Endpoint,
        [Parameter(ValueFromPipelineByPropertyName)]
        [pscredential]$Credential = [pscredential]::Empty
    )

    process {
        if (-not $Credential -or $Credential -eq [pscredential]::Empty) {
            $Credential = Get-Pfa2Credential
        }

        try {
            $flashArray = Connect-Pfa2Array -Endpoint $Endpoint -Credential $Credential -IgnoreCertificateError
        }
        catch {
            $exceptionMessage = $_.Exception.Message
            Write-Error "Failed to connect to FlashArray endpoint $Endpoint with: $exceptionMessage"
            Return
        }

        try {
            Get-Pfa2Connection -Array $flashArray -PipelineVariable c |
            ForEach-Object { Get-Pfa2Volume -Array $flashArray -Name $_.Volume.Name } |
            ForEach-Object {
                [HostVolume]::new($flashArray.ArrayName,
                    $c.Host.Name,
                    $_.Name,
                    $_.Source.Name,
                    $_.Created,
                    $_.Serial,
                    $_.Provisioned)
            }
        }
        finally {
            Disconnect-Pfa2Array -Array $flashArray
        }
    }
}

function Get-Pfa2Config() {
    <#
    .SYNOPSIS
    Retrieves and outputs to a file the configuration of the FlashArray.
    .DESCRIPTION
    This cmdlet will run Purity CLI commands to retrieve the base configuration of a FlashArray and output it to a file. This file is formatted for the CLI, not necessarily human-readable.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER OutFile
    Optional. The file path and filename that will contain the output. If not specified, the default is the current folder\Array_Config.txt.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    FQDN or IP address of the FlashArray.
    .OUTPUTS
    Configuration file.
    .EXAMPLE
    Get-Pfa2Config -Endpoint 'myarray.mydomain.com'
 
    Retrieves the configuration for a FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    Get-Pfa2Config -Endpoint 'myarray.mydomain.com' -OutFile '.\myarray.txt'
 
    Retrieves the configuration for a FlashArray myarray.mydomain.com and stores it in the current path as myarray.txt.
 
    .EXAMPLE
    Get-Pfa2Config -Endpoint 'myarray.mydomain.com' -Credential ( Get-Credential )
 
    Retrieves Host Volume information from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .EXAMPLE
    'myarray.mydomain.com' | Get-Pfa2Config
 
    Retrieves Host Volume information from the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    'myarray01', 'myarray02' | Get-Pfa2Config
 
    Retrieves Host Volume information from the FlashArray myarray01 and myarray02.
 
    .EXAMPLE
    $array = [pscustomobject]@{
        Caption = 'Prod Array'
        Endpoint = 'myarray.mydomain.com'
        Credential = ( Get-Credential )
    }
 
    $array | Get-Pfa2Config
 
    Retrieves Host Volume information from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .NOTES
    This cmdlet can utilize the global credentials variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [ValidateNotNullOrEmpty()]
        [string]$Endpoint,
        [string]$OutFile = "Array_Config.txt",
        [Parameter(ValueFromPipelineByPropertyName)]
        [pscredential]$Credential = [pscredential]::Empty
    )

    begin {
        $purearray_list         = "purearray list"
        $pureconfig_list_object = "pureconfig list --object"
        $pureconfig_list_system = "pureconfig list --system"
    }

    process {
        if (-not $Credential -or $Credential -eq [pscredential]::Empty) {
            $Credential = Get-Pfa2Credential
        }

        $connParam = @{
            Endpoint   = $Endpoint
            Credential = $Credential
        }

        Write-Host "Retrieving FlashArray Configuration Export for endpoint: $Endpoint"

        "==================================================================================",
        "FlashArray Configuration Export for endpoint: $Endpoint",
        "Date: $(Get-Date)",
        "==================================================================================`n" | 
        Out-File -FilePath $OutFile -Append

        Write-Host 'Retrieving FlashArray ATTRIBUTES (name-serial-firmware)...'
    
        "FlashArray ATTRIBUTES (name-serial-firmware)...`n",
        (Invoke-Pfa2CLICommand @connParam -CommandText $purearray_list) |
        Out-File -FilePath $OutFile -Append

        Write-Host 'Retrieving FlashArray OBJECT configuration export (host-pod-volume-hgroup-connection)...'
    
        "FlashArray OBJECT configuration export (host-pod-volume-hgroup-connection)...`n",
        (Invoke-Pfa2CLICommand @connParam -CommandText $pureconfig_list_object) |
        Out-File -FilePath $OutFile -Append

        Write-Host 'Retrieving FlashArray SYSTEM configuration export (array-network-alert-support)...'

        "FlashArray SYSTEM configuration export (array-network-alert-support):`n",
        (Invoke-Pfa2CLICommand @connParam -CommandText $pureconfig_list_system) |
        Out-File -FilePath $OutFile -Append
    }

    end {
        Write-Host "FlashArray configuration file located in $Outfile." -ForegroundColor Green
    }
}

function Get-Pfa2ConnectDetails() {
    <#
    .SYNOPSIS
    Retrieves Host Connection details from a FlashArray.
    .DESCRIPTION
    Retrieves Host Connection details including Host and Volume names, LUN ID, IQN / WWN, Volume Provisioned Size, and Host Capacity Written from a FlashArray.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    FQDN or IP address of the FlashArray.
    .OUTPUTS
    Host Connection details.
    .EXAMPLE
    Get-Pfa2ConnectDetails -Endpoint 'myarray.mydomain.com'
 
    Retrieves Host Connection details from the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    Get-Pfa2ConnectDetails -Endpoint 'myarray.mydomain.com' -Credential ( Get-Credential )
 
    Retrieves Host Connection details from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .EXAMPLE
    'myarray.mydomain.com' | Get-Pfa2ConnectDetails
 
    Retrieves Host Connection details from the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    'myarray01', 'myarray02' | Get-Pfa2ConnectDetails
 
    Retrieves Host Connection details from the FlashArray myarray01 and myarray02.
 
    .EXAMPLE
    $array = [pscustomobject]@{
        Caption = 'Prod Array'
        Endpoint = 'myarray.mydomain.com'
        Credential = ( Get-Credential )
    }
 
    $array | Get-Pfa2ConnectDetails
 
    Retrieves Host Connection details from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .NOTES
    This cmdlet can utilize the global credential variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [ValidateNotNullOrEmpty()]
        [string]$Endpoint,
        [Parameter(ValueFromPipelineByPropertyName)]
        [pscredential]$Credential = [pscredential]::Empty
    )

    process {
        if (-not $Credential -or $Credential -eq [pscredential]::Empty) {
            $Credential = Get-Pfa2Credential
        }

        try {
            $flashArray = Connect-Pfa2Array -Endpoint $EndPoint -Credential $Credential -IgnoreCertificateError
        }
        catch {
            $exceptionMessage = $_.Exception.Message
            Write-Error "Failed to connect to FlashArray endpoint $Endpoint with: $exceptionMessage"
            Return
        }

        try {
            $hosts = @{}
            Get-Pfa2Host -Array $flashArray | ForEach-Object { $hosts.Add($_.Name, $_) }

            $volumes = @{}
            Get-Pfa2Volume -Array $flashArray | ForEach-Object { $volumes.Add($_.Name, $_) }

            Get-Pfa2Connection -Array $flashArray -Filter "volume.name!='pure-protocol-endpoint'" | ForEach-Object {
                $purehost = $hosts[$_.Host.Name]
                $volume = $volumes[$_.Volume.Name]
                [VolumeConnection]::new($flashArray.ArrayName,
                    $purehost.Name,
                    $volume.Name,
                    $_.Lun,
                    $purehost.Iqns,
                    $purehost.Wwns,
                    $volume.Provisioned,
                    $volume.Space.Unique)
            }
        }
        finally {
            Disconnect-Pfa2Array -Array $flashArray
        }
    }
}

function Get-Pfa2DisconnectedVolumes() {
    <#
    .SYNOPSIS
    Retrieves disconnected volume information from a FlashArray.
    .DESCRIPTION
    Retrieves information for volumes that are in a disconnected state from a FlashArray.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    FQDN or IP address of the FlashArray.
    .OUTPUTS
    Disconnected volume information.
    .EXAMPLE
    Get-Pfa2DisconnectedVolumes -Endpoint 'myarray.mydomain.com'
 
    Retrieves disconnected volume information from the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    Get-Pfa2DisconnectedVolumes -Endpoint 'myarray.mydomain.com' -Credential ( Get-Credential )
 
    Retrieves disconnected volume information from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .EXAMPLE
    'myarray.mydomain.com' | Get-Pfa2DisconnectedVolumes
 
    Retrieves disconnected volume information from the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    'myarray01', 'myarray02' | Get-Pfa2DisconnectedVolumes
 
    Retrieves disconnected volume information from the FlashArray myarray01 and myarray02.
 
    .EXAMPLE
    $array = [pscustomobject]@{
        Caption = 'Prod Array'
        Endpoint = 'myarray.mydomain.com'
        Credential = ( Get-Credential )
    }
 
    $array | Get-Pfa2DisconnectedVolumes
 
    Retrieves disconnected volume information from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .NOTES
    This cmdlet can utilize the global credential variable for FlashArray authentication. Set the credential variable by using the command Get-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [ValidateNotNullOrEmpty()]
        [string]$Endpoint,
        [Parameter(ValueFromPipelineByPropertyName)]
        [pscredential]$Credential = [pscredential]::Empty
    )

    process {
        if (-not $Credential -or $Credential -eq [pscredential]::Empty) {
            $Credential = Get-Pfa2Credential
        }

        try {
            $flashArray = Connect-Pfa2Array -Endpoint $EndPoint -Credential $Credential -IgnoreCertificateError
        }
        catch {
            $exceptionMessage = $_.Exception.Message
            Write-Error "Failed to connect to FlashArray endpoint $Endpoint with: $exceptionMessage"
            Return
        }

        try {
            $faSpace = Get-Pfa2ArraySpace -Array $flashArray

            $allVolumes = @(Get-Pfa2Volume -Array $flashArray | Select-Object -Expand Name)
            $connectedVolumes = @(Get-Pfa2Connection -Array $flashArray | Select-Object -Expand Volume | Select-Object -Expand Name -Unique)
            $disconnectedVolumes = @($allVolumes | Where-Object { $_ -notin $connectedVolumes })

            $faTotal = Get-SizeLabel $faSpace.Space.TotalPhysical
            $faCapacity = Get-SizeLabel $faSpace.Capacity

            Write-Host ''
            Write-Host "`t$Endpoint - $faTotal / $faCapacity ($(($faSpace.Space.TotalPhysical/$faSpace.Capacity).ToString('P2')) Full)`n"
            Write-Host '==================================================='
            Write-Host "`t`tDisconnected Volumes ($($disconnectedVolumes.Count) of $($allVolumes.Count))"
            Write-Host '==================================================='

            #If the array has a disconnected volume, gather volume space metrics
            if (($disconnectedVolumes.Count) -gt 0 ) {
                foreach ($disconnectedVolume in $DisconnectedVolumes) {
                    if ($null -ne $disconnectedVolume) {
                        $getVol = Get-Pfa2Volume -Array $flashArray -Name $disconnectedVolume
                        [DisconnectedVolume]::new($flashArray.ArrayName,
                        $disconnectedVolume,
                        $getVol.Serial,
                        $getVol.Provisioned,
                        $getVol.Space.Unique,
                        $getVol.Space.DataReduction)

                        $potentialSpaceSavings = $potentialSpaceSavings + $getVol.Space.Unique
                    }
                }
                Write-Host ''
                Write-Host "Potential space savings for $Endpoint is $(Get-SizeLabel $potentialSpaceSavings)."
            }
        }
        finally {
            Disconnect-Pfa2Array -Array $flashArray
        }
    }
}

Function Get-Pfa2Hierarchy() {
    <#
    .SYNOPSIS
    Displays array hierarchy in relation to hosts and/or volumes.
    .DESCRIPTION
    This cmdlet will display the hierarchy from a FlashArray of hosts and volumes. The output is to the console in text.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER ByHost
    Optional. If specified, the hierarchy will be shown at the host level. It is useful to find disconnected hosts or hosts with no replication group. Otherwise, the hierarchy will be shown at the volume level.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    FQDN or IP address of the FlashArray.
    .OUTPUTS
    FlashArray host and/or volume hierarchy.
    .EXAMPLE
    Get-Pfa2Hierarchy -Endpoint 'myarray.mydomain.com'
 
    Displays the hierarchy from the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    Get-Pfa2Hierarchy -Endpoint 'myarray.mydomain.com' -ByHost
 
    Displays the hierarchy from the FlashArray myarray.mydomain.com at the host level.
 
    .EXAMPLE
    Get-Pfa2Hierarchy -Endpoint 'myarray.mydomain.com' -Credential ( Get-Credential )
 
    Displays the hierarchy from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .EXAMPLE
    'myarray.mydomain.com' | Get-Pfa2Hierarchy
 
    Displays the hierarchy from the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    'myarray01', 'myarray02' | Get-Pfa2Hierarchy
 
    Displays the hierarchy from the FlashArray myarray01 and myarray02.
 
    .EXAMPLE
    $array = [pscustomobject]@{
        Caption = 'Prod Array'
        Endpoint = 'myarray.mydomain.com'
        Credential = ( Get-Credential )
    }
 
    $array | Get-Pfa2Hierarchy
 
    Displays the hierarchy from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .NOTES
    This cmdlet can utilize the global credential variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [ValidateNotNullOrEmpty()]
        [string]$Endpoint,
        [switch]$ByHost,
        [Parameter(ValueFromPipelineByPropertyName)]
        [pscredential]$Credential = [pscredential]::Empty
    )

    process {
        if (-not $Credential -or $Credential -eq [pscredential]::Empty) {
            $Credential = Get-Pfa2Credential
        }

        try {
            $FlashArray = Connect-Pfa2Array -Endpoint $Endpoint -Credential $Credential -IgnoreCertificateError
        }
        catch {
            $ExceptionMessage = $_.Exception.Message
            Write-Error "Failed to connect to FlashArray endpoint $Endpoint with: $ExceptionMessage"
            Return
        }

        try {
            Write-Host ''
            Write-Host '================================================================'
            Write-Host " $Endpoint Hierarchy"
            Write-Host '================================================================'
            #If else statement to control hierarchy displayed by host or by volume
            If ($ByHost) {
                $Initiators = Get-Pfa2Host -Array $FlashArray

                #Start at host level
                ForEach ($Initiator in $Initiators) {
                    Write-Host "[H] $($Initiator.name)"

                    $Volumes = Get-Pfa2Connection -Array $FlashArray -HostNames $Initiator.name | 
                    Select-Object -expand Volume | 
                    Where-Object Name -ne 'pure-protocol-endpoint'

                    If (!$Volumes) {
                        Write-Host ' [No volumes connected]' -ForegroundColor Yellow
                    }
                    Else {
                        #Start at volume level
                        ForEach ($Volume in $Volumes) {

                            #Reset variables
                            $Snapshots = @(Get-Pfa2VolumeSnapshot -Array $FlashArray -SourceNames $Volume.name)
                            $SpaceConsumed = 0

                            #Change value for snapshot count threshold
                            If ($Snapshots.Count -eq 0) {
                                Write-Host " [V] $($Volume.name)" -ForegroundColor Yellow
                                Write-Host ' There are no associated snapshots with this volume.' -ForegroundColor Red
                            }
                            Else {
                                Write-Host " [V] $($Volume.name)" -ForegroundColor Green
                            }

                            #Change value for snapshot count threshold
                            ForEach ($Snapshot in $Snapshots) {
                                If ($Snapshots.Count -gt 1) {
                                    Write-Host " [S] $($Snapshot.name)" -ForegroundColor Yellow
                                }
                                Else {
                                    Write-Host " [S] $($Snapshot.name)" -ForegroundColor Green
                                }

                                #Space consumed computation for each volume
                                $SpaceConsumed += $Snapshot.Space.TotalPhysical
                            }

                            #Display space consumed if snapshot count exceeds threshold
                            If ($Snapshots.Count -gt 1) {
                                Write-Host  " There are $($Snapshots.Count) snapshots associated with this volume consuming a total of $(Get-SizeLabel $SpaceConsumed) on the array."
                            }
                        }
                    }
                }
            }
            #If user does not want hierarchy at host level
            Else {
                $Volumes = Get-Pfa2Volume -Array $FlashArray | Where-Object Name -ne 'pure-protocol-endpoint'

                #Start volume level
                ForEach ($Volume in $Volumes) {

                    #Reset variables
                    $Snapshots = @(Get-Pfa2VolumeSnapshot -Array $FlashArray -SourceNames $Volume.name)
                    $SpaceConsumed = 0

                    #Change value for snapshot count threshold
                    If ($Snapshots.Count -eq 0) {
                        Write-Host "[V] $($Volume.name)" -ForegroundColor Yellow
                        Write-Host ' There are no associated snapshots with this volume.' -ForegroundColor Red
                    }
                    Else {
                        Write-Host "[V] $($Volume.name)" -ForegroundColor Green
                    }

                    #Change value for snapshot count threshold
                    ForEach ($Snapshot in $Snapshots) {
                        If ($Snapshots.Count -gt 1) {
                            Write-Host " [S] $($Snapshot.name)" -ForegroundColor Yellow
                        }
                        Else {
                            Write-Host " [S] $($Snapshot.name)" -ForegroundColor Green
                        }

                        #Space consumed computation for each volume
                        $SpaceConsumed += $Snapshot.Space.TotalPhysical
                    }

                    #Display space consumed if snapshot count threshold is exceeded
                    If ($Snapshots.Count -gt 1) {
                        Write-Host  " There are $($Snapshots.Count) snapshots associated with this volume consuming a total of $(Get-SizeLabel $SpaceConsumed) on the array."
                    }
                }
            }
        }
        finally {
            Disconnect-Pfa2Array -Array $FlashArray
        }
    }
}

function Get-Pfa2PgroupsConfig() {
    <#
    .SYNOPSIS
    Retrieves Protection Group information for the FlashArray.
    .DESCRIPTION
    Retrieves Protection Group information including replication schedule configuration for the FlashArray.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    FQDN or IP address of the FlashArray.
    .OUTPUTS
    Protection Group information.
    .EXAMPLE
    Get-Pfa2PgroupsConfig -Endpoint 'myarray.mydomain.com'
 
    Retrieves Protection Group information from the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    Get-Pfa2PgroupsConfig -Endpoint 'myarray.mydomain.com' -Credential ( Get-Credential )
 
    Retrieves Protection Group information from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .EXAMPLE
    'myarray.mydomain.com' | Get-Pfa2PgroupsConfig
 
    Retrieves Protection Group information from the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    'myarray01', 'myarray02' | Get-Pfa2PgroupsConfig
 
    Retrieves Protection Group information from the FlashArray myarray01 and myarray02.
 
    .EXAMPLE
    $array = [pscustomobject]@{
        Caption = 'Prod Array'
        Endpoint = 'myarray.mydomain.com'
        Credential = ( Get-Credential )
    }
 
    $array | Get-Pfa2PgroupsConfig
 
    Retrieves Protection Group information from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .NOTES
    This cmdlet can utilize the global credential variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [ValidateNotNullOrEmpty()]
        [string]$Endpoint,
        [Parameter(ValueFromPipelineByPropertyName)]
        [pscredential]$Credential = [pscredential]::Empty
    )

    process {
        if (-not $Credential -or $Credential -eq [pscredential]::Empty) {
            $Credential = Get-Pfa2Credential
        }

        try {
            $flashArray = Connect-Pfa2Array -Endpoint $Endpoint -Credential $Credential -IgnoreCertificateError
        }
        catch {
            $exceptionMessage = $_.Exception.Message
            Write-Error "Failed to connect to FlashArray endpoint $Endpoint with: $exceptionMessage"
            Return
        }

        try {
            $protectionGroups = Get-Pfa2ProtectionGroup -Array $flashArray

            $groupVolumes = @{} 
            Get-Pfa2ProtectionGroupVolume -Array $flashArray | ForEach-Object { $groupVolumes[$_.Group.Name] += @($_.Member.Name) }

            $groupHosts = @{} 
            Get-Pfa2ProtectionGroupHost -Array $flashArray | ForEach-Object { $groupHosts[$_.Group.Name] += @($_.Member.Name) }

            $groupHostGroups = @{} 
            Get-Pfa2ProtectionGroupHostGroup -Array $flashArray | ForEach-Object { $groupHostGroups[$_.Group.Name] += @($_.Member.Name) }

            foreach ($protectionGroup in $ProtectionGroups) {
                [PgroupConfig]::new($flashArray.ArrayName,
                    $protectionGroup.Name,
                    $groupHostGroups[$protectionGroup.Name],
                    $groupHosts[$protectionGroup.Name],
                    $groupVolumes[$protectionGroup.Name],
                    $protectionGroup.ReplicationSchedule.Enabled,
                    $protectionGroup.ReplicationSchedule.Frequency,
                    $protectionGroup.TargetRetention.AllForSec,
                    $ProtectionGroup.TargetRetention.Days,
                    $protectionGroup.TargetRetention.PerDay)
            }
        }
        finally {
            Disconnect-Pfa2Array -Array $flashArray
        }
    }
}

function Get-Pfa2QuickCapacityStats() {
    <#
    .SYNOPSIS
    Quick way to retrieve FlashArray capacity statistics.
    .DESCRIPTION
    Retrieves high level capcity statistics from a FlashArray.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    FQDN or IP address of the FlashArray.
    .OUTPUTS
    FlashArray capacity statistics.
    .EXAMPLE
    Get-Pfa2QuickCapacityStats -Endpoint 'myarray.mydomain.com'
 
    Retrieves capacity statistic information from the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    Get-Pfa2QuickCapacityStats -Endpoint 'myarray.mydomain.com' -Credential ( Get-Credential )
 
    Retrieves capacity statistic information from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .EXAMPLE
    'myarray.mydomain.com' | Get-Pfa2QuickCapacityStats
 
    Retrieves capacity statistic information from the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    Get-Pfa2QuickCapacityStats -Endpoint 'myarray01', 'myarray02'
 
    Retrieves capacity statistic information from the FlashArray myarray01 and myarray02.
 
    .EXAMPLE
    'myarray01', 'myarray02' | Get-Pfa2QuickCapacityStats
 
    Retrieves capacity statistic information from the FlashArray myarray01 and myarray02.
 
    .EXAMPLE
    $array = [pscustomobject]@{
        Caption = 'Prod Array'
        Endpoint = 'myarray.mydomain.com'
        Credential = ( Get-Credential )
    }
 
    $array | Get-Pfa2QuickCapacityStats
 
    Retrieves capacity statistic information from the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .NOTES
    This cmdlet can utilize the global credentials variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [ValidateNotNullOrEmpty()]
        [string[]]$Endpoint,
        [Parameter(ValueFromPipelineByPropertyName)]
        [pscredential]$Credential = [pscredential]::Empty
    )

    begin {
        $count = 0
        $capacity = 0
        $volumes = 0
        $beforereduction = 0
        $provisioned = 0
    }

    process {
        if (-not $Credential -or $Credential -eq [pscredential]::Empty) {
            $Credential = Get-Pfa2Credential
        }

        foreach ($e in $Endpoint) {
            # Connect to FlashArray(s)
            try {
                $flashArray = Connect-Pfa2Array -Endpoint $e -Credential $Credential -IgnoreCertificateError
            }
            catch {
                $exceptionMessage = $_.Exception.Message
                Write-Error "Failed to connect to FlashArray endpoint $e with: $exceptionMessage"
                Return
            }

            try {
                $s = Get-Pfa2ArraySpace -Array $flashArray | Select-Object Capacity -Expand Space

                $count ++;
                $capacity += $s.Capacity
                $volumes += $s.Unique
                $beforereduction += $s.Unique * $s.DataReduction
                $provisioned += ($s.TotalPhysical - $s.System) / (1 - $s.ThinProvisioning) * $s.DataReduction
            }
            finally {
                Disconnect-Pfa2Array -Array $flashArray
            }
        }
    }

    end {
        [CapacityStats]::new($count,
            $capacity,
            $volumes,
            $beforereduction,
            $provisioned)
    }
}

function Get-Pfa2RASession() {
    <#
    .SYNOPSIS
    Retrieves Remote Assist status from a FlashArray.
    .DESCRIPTION
    Retrieves Remote Assist status from a FlashArray as disabled or enabled in a loop every 30 seconds until stopped.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    None.
    .OUTPUTS
    Remote Assst status.
    .EXAMPLE
    Get-Pfa2RASession -Endpoint 'myarray.mydomain.com'
 
    Retrieves the current Remote Assist status and continues check status every 30 seconds until stopped.
 
    .EXAMPLE
    Get-Pfa2PgroupsConfig -Endpoint 'myarray.mydomain.com' -Credential ( Get-Credential )
 
    Retrieves the current Remote Assist status and continues check status every 30 seconds until stopped. Asks for credentials.
    .NOTES
    This cmdlet can utilize the global credentials variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]$Endpoint,
        [pscredential]$Credential = [pscredential]::Empty
    )

    if (-not $Credential -or $Credential -eq [pscredential]::Empty) {
        $Credential = Get-Pfa2Credential
    }

    try {
        $flashArray = Connect-Pfa2Array -Endpoint $Endpoint -Credential $Credential -IgnoreCertificateError
    }
    catch {
        $exceptionMessage = $_.Exception.Message
        Write-Error "Failed to connect to FlashArray endpoint $Endpoint with: $exceptionMessage"
        Return
    }

    try {
        Write-Host 'Testing remote assist connectivity'
        do {
            $test = Get-Pfa2SupportTest -Array $flashArray -TestType 'remote-assist'
            If ($test.Success) {
                Write-Host $test.ResultDetails
            } else {
                Write-Warning $test.ResultDetails
                Start-Sleep 30
            }
        } until ($test.Success)
    }
    finally {
        Disconnect-Pfa2Array -Array $flashArray
    }
}

function Get-Pfa2Space() {
    <#
    .SYNOPSIS
    Retrieves the space used and available for a FlashArray.
    .DESCRIPTION
    This cmdlet will return various array space metrics for the given FlashArray.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    FQDN or IP address of the FlashArray.
    .OUTPUTS
    FlashArray space metrics.
    .EXAMPLE
    Get-Pfa2Space -Endpoint 'myarray.mydomain.com'
 
    Retrieves space metrics for the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    Get-Pfa2Space -Endpoint 'myarray.mydomain.com' -Credential ( Get-Credential )
 
    Retrieves space metrics for the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .EXAMPLE
    'myarray.mydomain.com' | Get-Pfa2Space
 
    Retrieves space metrics for the FlashArray myarray.mydomain.com.
 
    .EXAMPLE
    'myarray01', 'myarray02' | Get-Pfa2Space
 
    Retrieves space metrics for the FlashArray myarray01 and myarray02.
 
    .EXAMPLE
    $array = [pscustomobject]@{
        Caption = 'Prod Array'
        Endpoint = 'myarray.mydomain.com'
        Credential = ( Get-Credential )
    }
 
    $array | Get-Pfa2Space
 
    Retrieves space metrics for the FlashArray myarray.mydomain.com. Asks for credentials.
 
    .NOTES
    This cmdlet can utilize the global credential variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [ValidateNotNullOrEmpty()]
        [string]$Endpoint,
        [Parameter(ValueFromPipelineByPropertyName)]
        [pscredential]$Credential = [pscredential]::Empty
    )

    process {
        if (-not $Credential -or $Credential -eq [pscredential]::Empty) {
            $Credential = Get-Pfa2Credential
        }

        try {
            $flashArray = Connect-Pfa2Array -Endpoint $Endpoint -Credential $Credential -IgnoreCertificateError
        }
        catch {
            $ExceptionMessage = $_.Exception.Message
            Write-Error "Failed to connect to FlashArray endpoint $Endpoint with: $ExceptionMessage"
            Return
        }

        try {
            Get-Pfa2ArraySpace -Array $flashArray -PipelineVariable a | 
            Select-Object -Expand Space |
            ForEach-Object {
                [ArraySpace]::new($flashArray.ArrayName,
                    $a.Capacity,
                    $_.TotalPhysical,
                    $_.Unique,
                    $_.Shared,
                    $_.Snapshots,
                    $_.System,
                    $_.DataReduction,
                    $_.ThinProvisioning)
            }
        }
        finally {
            Disconnect-Pfa2Array -Array $flashArray
        }
    }
}

function Get-Pfa2StaleSnapshots() {
    <#
    .SYNOPSIS
    Retrieves aged snapshots and allows for Deletion and Eradication of such snapshots.
    .DESCRIPTION
    This cmdlet will retrieve all snapshots that are beyond the specified SnapAgeThreshold.
    It allows for the parameters of Delete and Eradicate, and if specified, it will delete
    and eradicate the snapshots returned. It allows for the parameter of Confirm, and if set
    to $false, it will eradicate snapshots without confirmation. Snapshots must be deleted
    before they can be eradicated.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER SnapAgeThreshold
    Optional. SnapAgeThreshold is the number of days from the current date. Defaults to 30.
    .PARAMETER Delete
    Optional. If specified, delete the snapshots.
    .PARAMETER Eradicate
    Optional. If specified, eradicate the deleted snapshots. Snapshot must be flagged as
    deleted and -Delete switch must be specified.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    FQDN or IP address of the FlashArray.
    .OUTPUTS
    Snapshots that are beyond the specified threshold and final results.
    .EXAMPLE
    Get-Pfa2StaleSnapshots -Endpoint 'myarray.mydomain.com'
 
    Returns all snapshots from the FlashArray myarray.mydomain.com that are older than 30 days from the current date.
 
    .EXAMPLE
    Get-Pfa2StaleSnapshots -Endpoint 'myarray.mydomain.com' -SnapAgeThreshold 10
 
    Returns all snapshots from the FlashArray myarray.mydomain.com that are older than 10 days from the current date.
 
    .EXAMPLE
    Get-Pfa2StaleSnapshots -Endpoint 'myarray.mydomain.com' -Delete
 
    Returns all snapshots from the FlashArray myarray.mydomain.com that are older than 30 days from the current date.
    Deletes snapshots without confirmation.
 
    .EXAMPLE
    Get-Pfa2StaleSnapshots -Endpoint 'myarray.mydomain.com' -Delete -Eradicate -Confirm:$false
 
    Returns all snapshots from the FlashArray myarray.mydomain.com that are older than 30 days from the current date.
    Deletes and eradicates (flagged as deleted) snapshots without confirmation.
     
    .EXAMPLE
    Get-Pfa2StaleSnapshots -Endpoint 'myarray.mydomain.com'
 
    Returns all snapshots from the FlashArray myarray.mydomain.com that are older than 30 days from the current date.
 
    .EXAMPLE
    Get-Pfa2StaleSnapshots -Endpoint 'myarray.mydomain.com' -Credential ( Get-Credential )
 
    Returns all snapshots from the FlashArray myarray.mydomain.com that are older than 30 days from the current date.
    Asks for credentials.
 
    .EXAMPLE
    'myarray.mydomain.com' | Get-Pfa2StaleSnapshots
 
    Returns all snapshots from the FlashArray myarray.mydomain.com that are older than 30 days from the current date.
 
    .EXAMPLE
    'myarray01', 'myarray02' | Get-Pfa2StaleSnapshots
 
    Retrieves Host Volume information from the FlashArray myarray01 and myarray02.
 
    .EXAMPLE
    $array = [pscustomobject]@{
        Caption = 'Prod Array'
        Endpoint = 'myarray.mydomain.com'
        Credential = ( Get-Credential )
    }
 
    $array | Get-Pfa2StaleSnapshots
 
    Returns all snapshots from the FlashArray myarray.mydomain.com that are older than 30 days from the current date.
    Asks for credentials.
 
    .NOTES
    This cmdlet can utilize the global credentials variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding(SupportsShouldProcess)]
    Param (
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [ValidateNotNullOrEmpty()]
        [string]$Endpoint,
        [ValidateNotNullOrEmpty()]
        [decimal]$SnapAgeThreshold = 30,
        [switch]$Delete,
        [switch]$Eradicate,
        [Parameter(ValueFromPipelineByPropertyName)]
        [pscredential]$Credential = [pscredential]::Empty
    )

    begin {
        # Establish variables, Pure time format, and gather current time.
        $currentTime = Get-Date
        [int]$snapNumber = 0
        [long]$spaceConsumed = 0
    }

    process {
        if (-not $Credential -or $Credential -eq [pscredential]::Empty) {
            $Credential = Get-Pfa2Credential
        }

        try {
            $flashArray = Connect-Pfa2Array -Endpoint $Endpoint -Credential $Credential -IgnoreCertificateError
        }
        catch {
            $ExceptionMessage = $_.Exception.Message
            Write-Error "Failed to connect to FlashArray endpoint $Endpoint with: $ExceptionMessage"
            Return
        }

        try {
            #Get all snapshots and compute the age of them.
            $snapshots = Get-Pfa2VolumeSnapshot -Array $flashArray
            foreach ($snapshot in $snapshots) {
                $snapAge = New-TimeSpan -Start $snapshot.created -End $currentTime

                #Find snaps older than given threshold and output with formatted data.
                if ($snapAge.TotalDays -gt $SnapAgeThreshold) {
                    $spaceConsumed += $snapshot.Space.TotalPhysical
                    $snapNumber++

                    #Delete snapshots
                    if ($Delete) {
                        $snapSize = Get-SizeLabel $snapshot.Space.TotalPhysical
                        if (-not $snapshot.Destroyed) {
                            Write-Host "Deleting $($snapshot.name) - $snapSize."
                            Remove-Pfa2VolumeSnapshot -Array $flashArray -Name $snapshot.name
                        }
                        elseif ($Eradicate) {
                            Write-Host "Eradicating $($snapshot.name) - $snapSize."
                            Remove-Pfa2VolumeSnapshot -Array $flashArray -Name $snapshot.name -Eradicate
                        }
                    }
                    else {
                        [StaleSnapshot]::new($flashArray.ArrayName,
                            $snapshot.Name,
                            $snapshot.Space.TotalPhysical,
                            $snapshot.Destroyed,
                            $snapAge)
                    }
                }
            }
        }
        finally {
            Disconnect-Pfa2Array -Array $flashArray
        }
    }

    end {
        #Display final message for array results.
        Write-Host ''
        Write-Host "There are $snapNumber snapshot(s) older than $SnapAgeThreshold days consuming a total of $(Get-SizeLabel $spaceConsumed)."
    }
}

function Get-Pfa2VolumeGrowth() {
    <#
    .SYNOPSIS
    Retrieves volume growth information over past X days at Y percentage of growth.
    .DESCRIPTION
    Retrieves volume growth in GB from a FlashArray for volumes that grew in past X amount of days at Y percentage of growth.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER StartTime
    Optional. The timeframe to compare the volume size against. If not specified, defaults to the last hour.
    .PARAMETER MinimumVolumeAgeInDays
    Optional. The minimum age in days that a volume must be to report on it. If not specified, defaults to 1 day.
    .PARAMETER GrowthPercentThreshold
    Optional. The minimum percentage of volume growth to report on. If not specified, defaults to 1%.
    .PARAMETER DoNotReportGrowthOfLessThan
    Optional. If growth in size, in Gigabytes, over the specified period is lower than this value, it will not be reported. If not specified, defaults to 1GB.
    .PARAMETER DoNotReportVolSmallerThan
    Optional. Volumes that are smaller than this size in Gigabytes will not be reported on. If not specified, defaults to 1GB.
    .PARAMETER Html
    Optional. Switch. If present, produces a HTML of the output in the current folder named FlashArrayVolumeGrowthReport.html.
    .PARAMETER Csv
    Optional. Switch. If present, produces a CSV comma-delimited file of the output in the current folder named FlashArrayVolumeGrowthReport.csv.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    FQDN or IP address of the FlashArray.
    .OUTPUTS
    Volume capacity information to the console, and also to a CSV and/or HTML formatted report (if specified).
    .EXAMPLE
    Get-Pfa2VolumeGrowth -Endpoint 'myarray.mydomain.com'
 
    Retrieve volume capacity report for 'myarray.mydomain.com' comparing volumes over the last hour that:
        - volumes that are not smaller than 1GB in size
        - that are at least 1 day old
        - must have growth of more than 1GB
        - have grown at least 10%
 
    .EXAMPLE
    Get-Pfa2VolumeGrowth -Endpoint 'myarray.mydomain.com' -StartTime (Get-Date).AddHours(-2) -MinimumVolumeAgeInDays 7 -GrowthPercentThreshold 15 -DoNotReportGrowthOfLessThan 50GB -DoNotReportVolSmallerThan 250GB
 
    Retrieve volume capacity report for 'myarray.mydomain.com' comparing volumes over the last two hours that:
        - volumes that are not smaller than 250GB in size
        - that are at least 7 day old
        - must have growth of more than 50GB
        - have grown at least 15%
 
    .EXAMPLE
    Get-Pfa2VolumeGrowth -Endpoint 'myarray.mydomain.com' -Html
 
    Retrieve volume capacity report for 'myarray.mydomain.com' with default parameters. Create HTML report.
 
    .EXAMPLE
    Get-Pfa2VolumeGrowth -Endpoint 'myarray.mydomain.com' -Credential ( Get-Credential )
 
    Retrieve volume capacity report for 'myarray.mydomain.com' with default parameters. Asks for credentials.
 
    .EXAMPLE
    'myarray.mydomain.com' | Get-Pfa2VolumeGrowth
 
    Retrieve volume capacity report for 'myarray.mydomain.com' with default parameters.
 
    .EXAMPLE
    Get-Pfa2VolumeGrowth -Endpoint 'myarray01', 'myarray02'
 
    Retrieve volume capacity report for myarray01 and myarray02 with default parameters.
 
    .EXAMPLE
    'myarray01', 'myarray02' | Get-Pfa2VolumeGrowth
 
    Retrieve volume capacity report for myarray01 and myarray02 with default parameters.
 
    .EXAMPLE
    $array = [pscustomobject]@{
        Caption = 'Prod Array'
        Endpoint = 'myarray.mydomain.com'
        Credential = ( Get-Credential )
    }
 
    $array | Get-Pfa2VolumeGrowth
 
    Retrieve volume capacity report for 'myarray.mydomain.com' with default parameters. Asks for credentials.
 
    .NOTES
    This cmdlet can utilize the global credentials variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [ValidateNotNullOrEmpty()]
        [string[]]$Endpoint,
        [DateTime]$StartTime = ( (Get-Date).AddHours(-1) ),
        [int]$MinimumVolumeAgeInDays = 1,
        [int]$GrowthPercentThreshold = 10,
        [long]$DoNotReportGrowthOfLessThan = 1GB,
        [long]$DoNotReportVolSmallerThan = 1GB,
        [switch]$Csv,
        [switch]$Html,
        [Parameter(ValueFromPipelineByPropertyName)]
        [pscredential]$Credential = [pscredential]::Empty
    )

    begin {
        Write-Host ''
        Write-Host 'Retrieving data from arrays and calculating.' -ForegroundColor Yellow
        Write-Host 'This may take some time depending on number of arrays, volumes, etc. Please wait...' -ForegroundColor Yellow
        Write-Host ''

        $latestDate = (Get-Date).AddDays(-$MinimumVolumeAgeInDays)

        $params_message = "Ignore volumes " +
        "1) created in the last $MinimumVolumeAgeInDays days, " +
        "2) smaller than $(Get-SizeLabel $DoNotReportVolSmallerThan), and " +
        "3) have growth of less than $(Get-SizeLabel $DoNotReportGrowthOfLessThan) " +
        "or $GrowthPercentThreshold% of thier size starting from $StartTime."

        $all_arrays = @()
        $volThatBreachGrowthThreshold = @()
    }

    process {
        if (-not $Credential -or $Credential -eq [pscredential]::Empty) {
            $Credential = Get-Pfa2Credential
        }
    
        function Get-VolumeStats {
            param (
                [Parameter(ValueFromPipeline)]
                [string]$array
            )

            process {
                Write-Host "Calculating array $array..." -ForegroundColor Green
                Write-Host ''

                # Connect to FlashArray(s)
                try {
                    $flashArray = Connect-Pfa2Array -Endpoint $array -Credential $Credential -IgnoreCertificateError
                }
                catch {
                    $exceptionMessage = $_.Exception.Message
                    Write-Error "Failed to connect to FlashArray endpoint $array with: $exceptionMessage"
                    Return
                }

                try {
                    Get-Pfa2Volume -Array $flashArray -ErrorAction SilentlyContinue |
                    Where-Object { $_.Space.TotalProvisioned -GT $DoNotReportVolSmallerThan } | 
                    Where-Object { (Get-Date $_.created) -lt $latestDate } |
                    ForEach-Object {
                        $volumeSpaceMetrics = Get-Pfa2VolumeSpace -Name $_.name -StartTime $StartTime -Array $flashArray
                        $last = ($volumeSpaceMetrics | Select-Object -Last 1).Space.Unique
                        $first = ($volumeSpaceMetrics | Select-Object -First 1).Space.Unique
                        $growth = $last - $first
                        $growthPercent = if ($first -ne 0) { $growth / $first } else { $growth / 1 }
                        [VolumeGrowthStats]::new($flashArray.ArrayName,
                            $_.Name,
                            $_.Provisioned,
                            $_.Space.Unique,
                            $growth,
                            $growthPercent)
                    } |
                    Where-Object { ($_.GrowthPercent * 100) -gt $GrowthPercentThreshold -and $_.Growth -gt $DoNotReportGrowthOfLessThan }
                }
                finally {
                    Disconnect-Pfa2Array -Array $flashArray
                }
            }
        }

        $volThatBreachGrowthThreshold += $Endpoint | Get-VolumeStats
        $all_arrays += $Endpoint
    }

    end {
        Write-Host 'Query parameters specified as:'
        Write-Host $params_message -ForegroundColor Green
        Write-Host ''

        if ($volThatBreachGrowthThreshold) {
            $result = $volThatBreachGrowthThreshold | ForEach-Object {
                [pscustomobject]@{
                    Array         = $_.Array
                    Name          = $_.VolumeName
                    'Size (GB)'   = Convert-UnitOfSize $_.Provisioned -To 1GB
                    'Unique (GB)' = Convert-UnitOfSize $_.Unique -To 1GB
                    'Growth (GB)' = Convert-UnitOfSize $_.Growth -To 1GB
                    'Growth (%)'  = '{0:P2}' -f $_.GrowthPercent
                }
            }

            # Output
            $volThatBreachGrowthThreshold

            if ($Html) {
                Write-Host 'Building HTML report as requested. Please wait...' -ForegroundColor Yellow
                Write-Host ''

                $htmlParams = @{
                    Title       = 'Volume Capacity Report'
                    Body        = Get-Date
                    PreContent  = "<p>Volume Capacity Report for FlashArray(s) $all_arrays`:</p>"
                    PostContent = "<p>Query parameters specified as: $params_message</p>"
                }

                $result | ConvertTo-Html @htmlParams | Out-File -FilePath .\FlashArrayVolumeGrowthReport.html | Out-Null
            }

            if ($Csv) {
                Write-Host 'Building CSV report as requested. Please wait...' -ForegroundColor Yellow
                Write-Host ''

                $result | Export-Csv -NoTypeInformation -Path .\FlashArrayVolumeGrowthReport.csv
            }
        }
        else {
            Write-Host 'No volumes on the array(s) match the requested criteria.'
            Write-Host ''
        }
    }
}

function Set-Pfa2Credential {
    <#
    .SYNOPSIS
    Sets credentials for FlashArray authentication.
    .DESCRIPTION
    Helper function
    Supporting function to handle connections.
    .OUTPUTS
    Nothing
    #>

    
    [CmdletBinding()]
    [OutputType([void])]

    param (
        [Parameter(Mandatory)]
        [System.Management.Automation.Credential()]
        [pscredential]$Credential
    )

    $script:Creds = $Credential
}

function Get-Pfa2Credential {
    <#
    .SYNOPSIS
    Gets credentials for FlashArray authentication.
    .DESCRIPTION
    Helper function
    Supporting function to handle connections.
    .OUTPUTS
    Credentials
    #>

    
    [OutputType([pscredential])]

    param ()

    Set-Pfa2Credential $script:Creds
    $script:Creds
}

function Clear-Pfa2Credential {
    <#
    .SYNOPSIS
    Clears credentials for FlashArray authentication.
    .DESCRIPTION
    Helper function
    Supporting function to handle connections.
    .OUTPUTS
    Nothing
    #>

    
    [OutputType([void])]

    $script:Creds = $null
}

function Get-SizeLabel {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        $Size,
        $Decimals = 2
    )

    begin {
        $postfixes = @('B', 'KB', 'MB', 'GB', 'TB', 'PB')
    }

    process {
        for ($i = 0; $Size -ge 1024 -and $i -lt $postfixes.Length; $i++) {
            $Size = $Size / 1024
        }
        return '' + [System.Math]::Round($Size, $Decimals) + ' ' + $postfixes[$i]
    }
}

function New-Pfa2CapacityReport() {
    <#
    .SYNOPSIS
    Create a formatted report that contains FlashArray Capacity Information
    .DESCRIPTION
    This cmdlet will retrieve volume and snapshot capacity information from the FlashArray and output it to a formatted report.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER OutHTMLFile
    Optional. Path for output report file. Default is %TEMP%\Array_Capacity_Report.html.
    .PARAMETER VolumeFilter
    Optional. Specific volumes to filter output on. Wildcards are accepted. By default, this is "*" (all).
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    None
    .OUTPUTS
    Formatted HTML report containing retrieved data and specified options.
    .EXAMPLE
    New-Pfa2CapacityReport -Endpoint 'myarray.mydomain.com'
 
    Creates 'myarray.mydomain.com' FlashArray capacity report named 'Array_Capacity_Report.html' in the %TEMP% folder.
 
    .EXAMPLE
    New-Pfa2CapacityReport -Endpoint 'myarray.mydomain.com' -OutHTMLFile '.\reports\dev_array.html'
 
    Creates 'myarray.mydomain.com' FlashArray capacity report located at the path '.\reports\dev_array.html'.
 
    .EXAMPLE
    New-Pfa2CapacityReport -Endpoint 'myarray.mydomain.com' -OutHTMLFile '.\reports\dev_array.html' -VolumeFilter 'dev-*'
 
    Creates 'myarray.mydomain.com' FlashArray capacity report located at the path '.\reports\dev_array.html'.
    Volumes names to include matches 'dev-*' pattern.
 
    .NOTES
    This cmdlet can utilize the global credentials variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]$Endpoint,
        [ValidateNotNullOrEmpty()]
        [string]$OutHTMLFile = (Join-Path $env:Temp 'Array_Capacity_Report.html'),
        [ValidateNotNullOrEmpty()]
        [string]$VolumeFilter = '*',
        [pscredential]$Credential = ( Get-Pfa2Credential )
    )

    # define variables
    $ReportDateTime = Get-Date -Format d
    $metadata = [PSCustomObject]@{
        ReportDate = Get-Date -Format g
        Source = $env:COMPUTERNAME
        ScriptPath = $($myInvocation.mycommand).path
        ScriptVersion = "3.0.0.0"
        CreatedBy = "$env:USERNAME"
    }

    # Connect to FlashArray
    try {
        $flashArray = Connect-Pfa2Array -Endpoint $Endpoint -Credential $Credential -IgnoreCertificateError
    }
    catch {
        $ExceptionMessage = $_.Exception.Message
        Write-Error "Failed to connect to FlashArray endpoint $Endpoint with: $ExceptionMessage"
        Return
    }

    try {
        # populate variables
        $FlashArrayConfig = Get-Pfa2Array -Array $FlashArray

        $sysCapacity = $FlashArrayConfig.Capacity / 1TB
        $sysSnapshotSpace = $FlashArrayConfig.Space.Snapshots / 1MB
        $sysVolumeSpace = $FlashArrayConfig.Space.Unique / 1GB
        $sysSpace = $FlashArrayConfig.Space.TotalPhysical / 1GB
        $sysSharedSpace = $FlashArrayConfig.Space.Shared / 1GB

        if ($FlashArrayConfig.Space.TotalReduction -gt 100) {
            $sysTotalReduction = '>100:1'
        }
        else {
            $sysTotalReduction = "$('{0:N1}' -f $FlashArrayConfig.Space.TotalReduction):1"
        }

        # zero out varables
        $volumeInfo = $null
        $provisioned = 0

        $volumes = Get-Pfa2Volume -Array $FlashArray -Filter "name='$VolumeFilter' and not(subtype='protocol_endpoint')"
        $volumeInfo += "<th>Volume Name</th><th>Volume Size (GB)</th><th>Connection</th><th><center>Protected</center></th><th>DR</th><th>SS</th><th>TP</th><th>WS (GB)</th>"

        ForEach ($volume in $volumes) {
            $printVol = $volume.name
            $volSize = $volume.Provisioned / 1GB
            $provisioned += $volume.Provisioned / 1TB
            $datardx = "{0:N2}" -f $volume.Space.DataReduction
            $dataTP = "{0:N3}" -f $volume.Space.ThinProvisioning
            $WrittenSpace = "{0:N2}" -f (((1 - $volume.Space.ThinProvisioning) * $volume.Space.TotalPhysical) / 1GB)
            if ($volume.Space.shared) {
                $dataSS = "{0:N2}" -f $volume.Space.shared
            }
            else {
                $dataSS = "None"
            }

            # Does the volume have any snapshots?
            if (!(Get-Pfa2VolumeSnapshot -Array $FlashArray -SourceNames $volume.name)) {
                $protected = "No"
            }
            else {
                $protected = "Yes"
            }

            $hostConnections = (Get-Pfa2Connection -Array $connection -VolumeNames $volume.name)
            if (!$hostConnections) {
                $hostconnname = "Not Connected"
            }
            else {
                $hostconnname = $hostConnections.Host.Name
            }

            $volumeInfo += "<tr><td>$("{0:N0}" -f $printVol)</td> <td>$("{0:N0}" -f $volSize)</td><td>$($hostconnname -join '<br>')</td><td><center>$protected</center></td><td>$($datardx)</td><td>$($dataSS)</td><td>$($dataTP)</td><td>$($WrittenSpace)</td></tr>"
        }

        $snapshotInfo = $null
        $snapshots = Get-Pfa2VolumeSnapshot -Array $FlashArray -Filter "source.name='$VolumeFilter'"
        $snapshotInfo += "<th>Snapshot Name</th><th>Snapshot Size (GB)</th>"
        ForEach ($snapshot in $snapshots) {
            $printSnapshot = $snapshot.name
            $snapshotSize = ($snapshot.Space.TotalProvisioned) / 1GB
            $snapshotInfo += "<tr><td>$("{0:N0}" -f $printSnapshot)</td> <td>$("{0:N0}" -f $snapshotSize)</td></tr>"
        }
    }
    finally {
        Disconnect-Pfa2Array -Array $flashArray
    }

    # Create HTML/CSS report format
    #region HTML
    $HTMLHeader = @"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<!--
$(($metadata | Out-String).Trim())
-->
<title>Pure Storage FlashArray Capacity Report</title>
<style type="text/css">
<!--
body {
    font-family: Proxima Nova, Verdana, Geneva, Arial, Helvetica, Sans-Serif;
}
table {
    border-collapse: collapse;
    border: none;
    border-right: 1px grey solid;
    border-top: 1px grey solid;
    border-bottom: 1px grey solid;
    border-left: 1px grey solid;
    text-align: left;
    font: 12pt Proxima Nova, Verdana, Geneva, Arial, Helvetica, Sans-Serif;
    color: black;
    margin-bottom: 10px;
    margin-left: 20px;
}
 
table td {
    vertical-align: top;
    font-size: 12px;
    padding-left: 2px;
    padding-right: 2px;
    text-align: left;
    border-right: 1px grey solid;
    border-top: 1px grey solid;
    border-bottom: 1px grey solid;
    border-left: 1px grey solid;
}
 
table th {
    font-size: 14px;
    font-weight: bold;
    padding-left: 2px;
    padding-right: 2px;
    text-align: left;
    border-right: 1px grey solid;
    border-top: 1px grey solid;
    border-bottom: 1px grey solid;
    border-left: 1px grey solid;
}
 
h2 {
    clear: both;
    font-size: 130%;
}
 
h3 {
    clear: both;
    font-size: 115%;
    margin-left: 20px;
    margin-top: 30px;
}
 
protected {
    font-weight: bold;
    text-align: left;
}
 
p {
    margin-left: 20px;
    font-size: 12px;
}
 
hr {
    background-color: #FE5000
}
 
table.list {
    font-size: 12px;
    font-weight: normal;
    padding-left: 2px;
    padding-right: 2px;
    text-align: right;
    border-style: solid;
    width: 700px;
}
 
table.list td:nth-child(1) {
    font-weight: bold;
    border-right: 1px grey solid;
    text-align: left;
}
 
table.list td:nth-child(2) {
    padding-left: 2px;
    border-right: 1px grey solid;
    text-align: left;
}
 
table tr:nth-child(even) td:nth-child(even) {
    background: #F8D2CD;
}
 
table tr:nth-child(odd) td:nth-child(odd) {
    background: #FCEAE8;
}
 
table tr:nth-child(even) td:nth-child(odd) {
    background: #F8D2CD;
}
 
table tr:nth-child(odd) td:nth-child(even) {
    background: #FCEAE8;
}
 
div.column {
    width: 400px;
    float: left;
}
 
div.first {
    padding-right: 2px;
    border-right: 1px grey solid;
}
 
div.second {
    margin-left: 30px;
}
 
div.relative {
    position: relative;
}
 
div.absolute {
    position: absolute;
    top: 80px;
    left: 350px;
    width: 250px;
    height: 75px;
    font-size: 14px;
    font-weight: bold;
}
 
div.time {
    position: absolute;
    top: 25px;
    left: 0px;
    width: 600px;
    height: 75px;
    font-size: 12px;
    font-weight: normal;
}
 
img {
    max-width: 500px;
    max-height: 88px;
}
-->
</style>
</head>
<body>
"@


$CurrentSystemHTML = @"
<img class="relative" src="data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAACowAAAHcCAYAAADmlhr5AAAAGX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IAAAAAAAAAAADQHyqM
DpRKowR4OVmltTAAAAAAAAAAAAB0nwqjQz2wKo3SPFVGAQAAAAAAAAAAekLC6JAP7k3S6PN6uxYNGjDf
VmkhDAAAAAAAAAAAAN1nSfoR2Fa7Zekv620hGhxYrmD7fLJSyRYAAAAAAAAAAKDLVBgdw0Fepc/1dlz/
8UI0OLCcjHwiDAAAAAAAAAAAAN2mwujIbKs0rz8+pJtEPziUXGV0IwwAAAAAAAAAAADdpMLo2A74Kq3r
j+f1thINDuhSCAAAAAAAAAAAALpLhdER21ZpkW4S/VQb5RBeloRkAAAAAAAAAAAAOkaF0TEf/FVaJtVG
ORxVRgEAAAAAAAAAADpKhVF2tlWa1x/v6m0qGjzBcUlEBgAAAAAAAAAAoEMkjPIX2yqd1B9nyTL1PM7n
ens+We0+AQAAAAAAAAAA6AhL0vPXE2KVrtLNMvUXKUn648FyovGJMAAAAAAAAAAAAHSLCqN807b6M/nv
dbJUPQ+Tq4xuhAEAAAAAAAAAAKAbJIxyL9sqLeqPN/V2JBrcw3qySi+FAQAAAAAAAAAAoBskjPIg22qX
MJorji7SzfLj8C0vJ6u0FgYAAAAAAAAAAID2SRjl0bZVquqPX+otf0oe5WubySo9FwYAAAAAAAAAAID2
SRjlIErl0Zw4+nO9zUWE4nSySlfCAAAAAAAAAAAA0C4JozRiW+2SRvP2U71N6+1IVEbpc709n6x2nwAA
AAAAAAAAALREwihhShXSvHT9vPyrf6ebZFKG7f1klZbCAAAAAAAAAAAA0B4JoyOwrXZJmpf1thANDkwF
UQAAAAAAAAAAgB6YCMEIDvIqfa634/qPF6LBgeVk5BNhAAAAAAAAAAAA6Lb/X4ABALB1eFG6MQyjAAAA
AElFTkSuQmCC">
 
<div id="report">
<p><div class='absolute'>FlashArray Capacity Report<br><div class='time'>$(Get-Date -Format U)</div></div>
<h3>FlashArray Information</h3>
<table class="list">
<tr>
<td>FlashArray Name</td>
<td>$($FlashArrayConfig.name)</td>
</tr>
<tr>
<td>Purity Version</td>
<td>$($FlashArrayConfig.version)</td>
</tr>
<tr>
<td>ID</td>
<td>$($FlashArrayConfig.id)</td>
</tr>
<tr>
<td>Total Volumes Space</td>
<td>$("{0:N2}" -f $sysVolumeSpace) G</td>
</tr>
<tr>
<td>Total Snapshots Space</td>
<td>$("{0:N2}" -f $sysSnapshotSpace) M</td>
</tr>
<tr>
<td>Shared Space</td>
<td>$("{0:N2}" -f $sysSharedSpace) G</td>
</tr>
<tr>
<td>Used Space</td>
<td>$("{0:N2}" -f $sysSpace) G</td>
</tr>
<tr>
<td>System Capacity</td>
<td>$("{0:N2}" -f $sysCapacity) T</td>
</tr>
<tr>
<td>System Data Reduction</td>
<td>$("{0:N2}" -f $FlashArrayConfig.Space.DataReduction):1</td>
</tr>
<tr>
<td>Total Data Reduction</td>
<td>$sysTotalReduction</td>
</tr>
<tr>
<td>Provisioned Space</td>
<td>$("{0:N2}" -f $provisioned) T</td>
</tr>
</table>
<h3>Volume Information</h3>
<p>Volumes(s), Sizes (GB) and Data Reduction columes include DR (Data Reduction), SS (Shared Space)<br>and TP (Thin Provisioning) and WS (Written Space) for $($FlashArrayConfig.name) listed below.</p>
<table class="list">$volumeInfo</table>
<h3>FlashRecover SnapShot Information</h3>
<p>Snapshot(s) and Sizes (GB) for $($FlashArrayConfig.name) listed below.</p>
<table class="list">$snapshotInfo</table>
<br></br>
"@

    # Add the current System HTML Report into the final HTML Report body
    $HTMLMiddle += $CurrentSystemHTML

    # Assemble the closing HTML for our report.
    $HTMLEnd = @"
</div>
<hr noshade size=3 width="100%">
$ReportDateTime
</body>
</html>
"@

    # Assemble the final report from all our HTML sections
    $HTMLmessage = $HTMLHeader + $HTMLMiddle + $HTMLEnd
    # Save the report out to a file
    $HTMLmessage | Out-File $OutHTMLFile

    Write-Host ''
    Write-Host "The report file path $(Resolve-Path $OutHTMLFile)." -ForegroundColor Green
}

function New-Pfa2ExcelReport {
    <#
    .SYNOPSIS
    Create an Excel workbook that contains FlashArray Information for each endpoint specified.
    .DESCRIPTION
    This cmdlet will retrieve array, volume, host, pod, and snapshot capacity information from all of the endpoints and output it to an Excel spreadsheet. Each FlashArray will have it's own filename and the current date and time will be added to the filenames.
    This cmdlet requires the PowerShell module ImportExcel - https://www.powershellgallery.com/packages/ImportExcel
    .PARAMETER Endpoint
    Required. An IP address or FQDN of the FlashArray. Multiple endpoints can be specified.
    .PARAMETER OutPath
    Optional. Directory path for Excel workbook. If not specified, the files will be placed in the %temp% folder.
    .PARAMETER SnapLimit
    Optional. This will limit the total number of Volume snapshots returned from the arrays. This will be beneficial when working with a large number of snapshots. With a large number of snapshots, and not setting this limit, the worksheet creation time is increased considerably.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    None
    .OUTPUTS
    An Excel workbook
    .EXAMPLE
    New-Pfa2ExcelReport -Endpoint 'myarray.mydomain.com'
 
    Creates an Excel file in the %temp% folder for array myarray.mydomain.com.
 
    .EXAMPLE
    New-Pfa2ExcelReport -Endpoint 'myarray01', 'myarray02' -OutPath '.\reports'
 
    Creates an Excel file for myarray01 and myarray02. Reports are located in the 'reports' folder.
 
    .EXAMPLE
    Get-Content '.\arrays.txt' | New-Pfa2ExcelReport -OutPath '.\reports'
 
    Creates an Excel file for each array in the arrays.txt file. Reports are located in the 'reports' folder.
 
    .EXAMPLE
    New-Pfa2ExcelReport -Endpoint 'myarray.mydomain.com' -Credential (Get-Credential) -OutPath '.\reports'
 
    Creates an Excel file in the 'reports' folder for array myarray.mydomain.com. Asks for FlashArray credentials.
 
    .EXAMPLE
    $endpoint = [pscustomobject]@{Endpoint = @('myarray.mydomain.com'); Credential = (Get-Credential)}
    $endpoint | New-Pfa2ExcelReport -OutPath '.\reports'
 
    Creates an Excel file in the 'reports' folder for array myarray.mydomain.com. Asks for FlashArray credentials.
 
    .NOTES
    This cmdlet can utilize the global credential variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [ValidateNotNullOrEmpty()]
        [string[]]$Endpoint,
        [int]$SnapLimit,
        [string]$OutPath = $env:Temp,
        [Parameter(ValueFromPipelineByPropertyName)]
        [pscredential]$Credential = ( Get-Pfa2Credential )
    )

    begin {
        $date = (Get-Date).ToString('MMddyyyy_HHmmss')
    }

    process {
        # Run through each array
        foreach ($e in $Endpoint) {
            Write-Host "Starting to read from array $e ..." -ForegroundColor green

            # Connect to FlashArray(s)
            try {
                $flashArray = Connect-Pfa2Array -Endpoint $e -Credential $Credential -IgnoreCertificateError
            }
            catch {
                $exceptionMessage = $_.Exception.Message
                Write-Error "Failed to connect to FlashArray endpoint $e with: $exceptionMessage"
                Return
            }

            try {
                $array_details = Get-Pfa2Array -Array $flasharray
                $host_details = Get-Pfa2Host -Array $flasharray -Sort 'name'
                $hostgroup = Get-Pfa2HostGroup -Array $flasharray
                $volumes = Get-Pfa2Volume -Array $flasharray -Sort 'name'
                $pgd = Get-Pfa2ProtectionGroup -Array $flasharray
                $pgst = Get-Pfa2ProtectionGroupSnapshotTransfer -Array $flasharray -Sort 'name'
                $controllers = Get-Pfa2Controller -Array $flasharray
                $controller0_details = $controllers | Where-Object Name -EQ 'CT0'
                $controller1_details = $controllers | Where-Object Name -EQ 'CT1'
                $free = $array_details.capacity - $array_details.space.TotalPhysical
                $lim = @{}
                if ($PSBoundParameters.ContainsKey('SnapLimit')) {
                    $lim.Add('Limit', $SnapLimit)
                }
                $snapshots = Get-Pfa2VolumeSnapshot -Array $flashArray @lim
                $pods = Get-Pfa2Pod -Array $flashArray
            
                Write-Host 'Read complete. Disconnecting and continuing...' -ForegroundColor green
            }
            finally {
                # Disconnect 'cause we don't need to waste the connection anymore
                Disconnect-Pfa2Array -Array $flasharray
            }

            # Name and path the files
            $excelFile = Join-Path $OutPath "$($array_details.name)-$date.xlsx"
            Write-Host 'Writing data to Excel workbook...' -ForegroundColor green
            
            $report = [ordered]@{}

            # Array Information
            $report['Array_Info'] = @( [ordered]@{
                    'Array Name'            = ($array_details.Name).ToUpper()
                    'Array ID'              = $array_details.Id
                    'Purity Version'        = $array_details.Version
                    'CT0-Mode'              = $controller0_details.Mode
                    'CT0-Status'            = $controller0_details.Status
                    'CT1-Mode'              = $controller1_details.Mode
                    'CT1-Status'            = $controller1_details.Status
                    '% Utilized'            = '{0:P}' -f ($array_details.space.TotalPhysical / $array_details.capacity)
                    'Total Capacity(TB)'    = Convert-UnitOfSize $array_details.Capacity -To 1TB
                    'Used Capacity(TB)'     = Convert-UnitOfSize $array_details.space.TotalPhysical -To 1TB
                    'Free Capacity(TB)'     = Convert-UnitOfSize $free -To 1TB
                    'Provisioned Size(TB)'  = Convert-UnitOfSize $array_details.space.TotalProvisioned -To 1TB
                    'Unique Data(TB)'       = Convert-UnitOfSize $array_details.space.Unique -To 1TB
                    'Shared Data(TB)'       = Convert-UnitOfSize $array_details.space.shared -To 1TB
                    'Snapshot Capacity(TB)' = Convert-UnitOfSize $array_details.space.snapshots -To 1TB
                } )

            ## Volume Details
            $details = $volumes | ForEach-Object {
                [ordered]@{
                    'Name'            = $_.Name
                    'Size(GB)'        = Convert-UnitOfSize $_.provisioned -To 1GB
                    'Unique Data(GB)' = Convert-UnitOfSize $_.space.Unique -To 1GB
                    'Shared Data(GB)' = Convert-UnitOfSize $_.space.Shared -To 1GB
                    'Serial'          = $_.Serial
                    'ConnectionCount' = $_.ConnectionCount
                    'Created'         = $_.Created
                    'Volume Group'    = $_.VolumeGroup.Name 
                    'Destroyed'       = $_.Destroyed
                    'Time Remaining'  =
                    if ($_.TimeRemaining) {
                        $span = [TimeSpan]::FromMilliseconds($_.TimeRemaining)
                        '{0:D2}h {1:D2}m' -f ($span.Days * 24 + $span.Hours), $span.Minutes
                    }
                } }

            $simple = @()
            $vvol = @()
            foreach ($v in $details) {
                if ($v.Name -like '*vvol*') {
                    $vvol += $v
                }
                else {
                    $simple += $v
                }
            }

            if ($simple) {
                $report['Volumes-No vVols'] = $simple
            }
            else {
                Write-Host 'No Volumes exist on Array. Skipping.'
            }

            if ($vvol) {
                $report['vVol Volumes'] = $vvol
            }
            else {
                Write-Host 'No vVol Volume exist on Array. Skipping.'
            }

            ## Volume Snapshot details
            if ($snapshots) {
                $report['Volume Snapshots'] = $snapshots | ForEach-Object {
                    [ordered]@{
                        'Name'            = $_.Name
                        'Created'         = $_.Created
                        'Provisioned(GB)' = Convert-UnitOfSize $_.Provisioned -To 1GB
                        'Destroyed'       = $_.Destroyed
                        'Source'          = $_.Source.Name
                        'Pod'             = $_.pod.name
                        'Volume Group'    = $_.VolumeGroup.Name
                    } }
            }
            else {
                Write-Host 'No Volume Snapshots exist on Array. Skipping.'
            }

            # Host Details
            if ($host_details) {
                $report['Hosts'] = $host_details | ForEach-Object {
                    [ordered]@{
                        'Name'           = $_.Name
                        'No. of Volumes' = $_.ConnectionCount
                        'HostGroup'      = $_.HostGroup.Name
                        'Personality'    = $_.Personality
                        'Allocated(GB)'  = Convert-UnitOfSize $_.space.totalprovisioned -To 1GB
                        'Wwns'           = $_.Wwns -join ', '
                    } }
            }
            else {
                Write-Host 'No Hosts exist on Array. Skipping.'
            }
            
            ## HostGroup Details
            if ($hostgroup) {
                $report['Host Groups'] = $hostgroup | ForEach-Object {
                    [ordered]@{
                        'Name'           = $_.Name
                        'HostCount'      = $_.HostCount
                        'No. of Volumes' = $_.ConnectionCount
                        'Total Size(GB)' = Convert-UnitOfSize $_.space.totalprovisioned -To 1GB
                    } }
            }
            else {
                Write-Host 'No Host Groups exist on Array. Skipping.'
            }
            
            ## Protection Group and Protection Group Transfer details
            if ($pgd) {
                $report['Protection Groups'] = $pgd | ForEach-Object {
                    [ordered]@{
                        'Name'              = $_.Name
                        'Snapshot Size(GB)' = Convert-UnitOfSize $_.space.snapshots -To 1GB
                        'VolumeCount'       = $_.VolumeCount
                        'Source'            = $_.source.name
                    } }
            }
            else {
                Write-Host 'No Protection Groups exist on Array. Skipping.'
            }

            if ($pgst) {
                $report['PG Snapshot Transfers'] = $pgst | ForEach-Object {
                    [ordered]@{
                        'Name'                       = $_.Name
                        'Data Transferred(MB)'       = Convert-UnitOfSize $_.DataTransferred -To 1MB
                        'Destroyed'                  = $_.Destroyed
                        'Physical Bytes Written(MB)' = Convert-UnitOfSize $_.PhysicalBytesWritten -To 1MB
                        'Status'                     = $_.Progress -Replace ('1', 'Transfer Complete')
                    } }
            }
            else {
                Write-Host 'No Protection Group Transfer details on Array. Skipping.'
            }

            ## Pod details
            if ($pods) {
                $report['Pods'] = $pods | ForEach-Object {
                    [ordered]@{
                        'Name'            = $_.Name
                        'ArrayCount'      = $_.ArrayCount
                        'Source'          = $_.source.name
                        'Mediator'        = $_.Mediator
                        'PromotionStatus' = $_.PromotionStatus
                        'Destroyed'       = $_.Destroyed
                    } }
            }
            else {
                Write-Host 'No Pods exist on Array. Skipping.'
            }

            Export-Pfa2Excel -Tables $report -LiteralPath $excelFile
        }
    }

    end {
        Write-Host "Complete. Files located in $(Resolve-Path $OutPath)" -ForegroundColor green
    }
}

function New-Pfa2PGroupVolumes() {
    <#
    .SYNOPSIS
    Creates volumes to a new FlashArray Protection Group (PGroup).
    .DESCRIPTION
    This cmdlet will allow for the creation of multiple volumes and adding the created volumes to a new Protection Group (PGroup).
    The new volume names will default to "$PGroupPrefix-vol1", "PGroupPrefix-vol2" etc.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER PGroupPrefix
    Required. The name of the Protection Group prefix to add volumes to. This parameter specifies the prefix of the PGroup name.
    The suffix defaults to "-PGroup". Example: -PGroupPrefix "database". The full PGroup name will be "database-PGroup".
    This PGroup will be created as new and must not already exist on the array.
    This prefix will also be used to uniquely name the volumes as they are created.
    .PARAMETER VolumeSizeGB
    Required. The size of the new volumes in Gigabytes (GB).
    .PARAMETER NumberOfVolumes
    Required. The number of volumes that are to be created. Each volume will be named "vol" with an ascending number following (ie. vol1, vol2, etc.). Each volume name will also contain the $PGroupPrefix variable as the name prefix.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    None
    .OUTPUTS
    None
    .EXAMPLE
    New-Pfa2PGroupVolumes -Endpoint "myarray.mydomain.com" -PGroupPrefix "database" -VolumeSizeGB 200 -NumberOfVolumes 3
 
    Creates 3-200GB volumes, named "database-vol1", "database-vol2", and "database-vol3". Each volume is added to the new Protection Group "database-PGroup".
 
    .NOTES
    This cmdlet can utilize the global credentials variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]$Endpoint,
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]$PGroupPrefix,
        [Parameter(Mandatory)]
        [ValidateRange(1, [int]::MaxValue)]
        [int]$VolumeSizeGB,
        [Parameter(Mandatory)]
        [ValidateRange(1, [int]::MaxValue)]
        [int]$NumberOfVolumes,
        [pscredential]$Credential = ( Get-Pfa2Credential )
    )

    # Connect to FlashArray
    try {
        $flashArray = Connect-Pfa2Array -Endpoint $Endpoint -Credential $Credential -IgnoreCertificateError
    }
    catch {
        $ExceptionMessage = $_.Exception.Message
        Write-Error "Failed to connect to FlashArray endpoint $Endpoint with: $ExceptionMessage"
        Return
    }

    try {
        $volumes = ( 1..$NumberOfVolumes ) |
        ForEach-Object { "$PGroupPrefix-Vol$_" } |
        New-Pfa2Volume -Array $FlashArray -Provisioned ($VolumeSizeGB * 1GB)

        $group = New-Pfa2ProtectionGroup -Array $FlashArray -Name "$PGroupPrefix-PGroup"

        New-Pfa2ProtectionGroupVolume -Array $FlashArray -MemberNames $volumes.name -GroupNames $group.Name
    }
    finally {
        Disconnect-Pfa2Array -Array $flashArray
    }
}

function Remove-Pfa2PendingDeletes() {
    <#
    .SYNOPSIS
    Reports on pending FlashArray Volume and Snapshots deletions and optionally Eradicates them.
    .DESCRIPTION
    This cmdlet will return information on any volumes or volume snapshots that are pending eradication after deletion and
    optionally prompt for eradication of those objects. The user will be prompted for confirmation.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    None
    .OUTPUTS
    Volume and volume snapshots awaiting eradication.
    .EXAMPLE
    Remove-Pfa2PendingDeletes -Endpoint 'myarray.mydomain.com'

    Reports and prompts for eradication on pending Volume and Snapshots deletions on the FlashArray myarray.mydomain.com.

    .EXAMPLE
    Remove-Pfa2PendingDeletes -Endpoint 'myarray.mydomain.com'

    Reports on pending Volume and Snapshots deletions on the FlashArray myarray.mydomain.com.
    Eradicates Volume and Snapshots without confirmation.

    .NOTES
    This cmdlet can utilize the global credentials variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'High')]
    Param (
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]$Endpoint,
        [pscredential]$Credential = ( Get-Pfa2Credential )
    )

    # Connect to FlashArray
    try {
        $flashArray = Connect-Pfa2Array -Endpoint $Endpoint -Credential $Credential -IgnoreCertificateError
    }
    catch {
        $ExceptionMessage = $_.Exception.Message
        Write-Error "Failed to connect to FlashArray endpoint $Endpoint with: $ExceptionMessage"
        Return
    }

    try {
        $pendingvolumelist = Get-Pfa2Volume -Array $flashArray -Destroyed $true
        $pendingsnaplist = Get-Pfa2VolumeSnapshot -Array $flashArray -Destroyed $true

        Write-Host 'Listing PENDING volumes and snapshots that exist on the array.'
        Write-Host "======================================================================================================================`n"

        if (-not $pendingvolumelist) {
            Write-Host 'No volumes are pending delete.'
        }
        else {
            Write-Host 'Volumes in PENDING state'
            foreach ($volume in $pendingvolumelist) {
                Write-Host ' -' $volume.name
            }
        }

        if (-not $pendingsnaplist) {
            Write-Host 'No snapshots are pending delete.'
        }
        else {
            Write-Host 'Snapshots in PENDING state'
            foreach ($volumesnap in $pendingsnaplist) {
                Write-Host ' -' $volumesnap.name
            }
        }

        if (-not $pendingvolumelist -and -not $pendingsnaplist) {
            return
        }

        if (-not $PSCmdlet.ShouldProcess(
                'Eradicate pending volumes and snapshots.',
                'Do you wish to perform this unrecoverable operation?',
                'Eradicate pending volumes and snapshots.')) {
            return
        }

        Write-Host 'Eradicating PENDING volumes and snapshots.'
        Write-Host "======================================================================================================================`n"

        foreach ($volumesnap in $pendingsnaplist) {
            Write-Host ' -' $volumesnap.name ' eradicated'
            Remove-Pfa2VolumeSnapshot -Array $flashArray -Name $volumesnap.name -Eradicate
        }

        foreach ($volume in $pendingvolumelist) {
            Write-Host ' -' $volume.name ' eradicated.'
            Remove-Pfa2Volume -Array $flashArray -Name $volume.name -Eradicate
        }

        Write-Host 'Volume and Snapshot pending deletes have been eradicated.'
    }
    finally {
        Disconnect-Pfa2Array -Array $flashArray
    }
}

function Restore-Pfa2PGroupVolumeSnapshots() {
    <#
    .SYNOPSIS
    Recover all of the volumes from a protection group (PGroup) snapshot.
    .DESCRIPTION
    This cmdlet will recover all of the volumes from a protection group (PGroup) snapshot in one operation.
    .PARAMETER Endpoint
    Required. FQDN or IP address of the FlashArray.
    .PARAMETER ProtectionGroup
    Required. The name of the protection group.
    .PARAMETER SnapshotName
    Required. The name of the protection group snapshot.
    .PARAMETER Prefix
    Required. The prefix to add to the recovered volume name.
    .PARAMETER HostName
    Optional. The name of the host to attach the recovered volumes to.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    None
    .OUTPUTS
    None
    .EXAMPLE
    Restore-Pfa2PGroupVolumeSnapshots -Endpoint 'myarray.mydomain.com' –ProtectionGroup 'Dev-PGroup' –SnapshotName 'Dev-PGroup.01' –Prefix 'TEST'
 
    Restores snapshot 'Dev-PGroup.01' from the protection group 'Dev-PGroup', adds the prefix of 'TEST' to
    recovered volumes names on the FlashArray 'myarray.mydomain.com'.
 
    .EXAMPLE
    Restore-Pfa2PGroupVolumeSnapshots -Endpoint 'myarray.mydomain.com' –ProtectionGroup 'Dev-PGroup' –SnapshotName 'Dev-PGroup.01' –Prefix 'TEST' -HostName 'test-vm-01'
 
    Restores snapshot 'Dev-PGroup.01' from the protection group 'Dev-PGroup', adds the prefix of 'TEST' to
    recovered volumes names, and attaches them to the host 'test-vm-01' on the FlashArray 'myarray.mydomain.com'.
 
    .NOTES
    This cmdlet can utilize the global credentials variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding()]
    Param (
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]$Endpoint,
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]$ProtectionGroup,
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]$SnapshotName,
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]$Prefix,
        [ValidateNotNullOrEmpty()]
        [string]$HostName,
        [pscredential]$Credential = ( Get-Pfa2Credential )
    )

    # Connect to FlashArray
    try {
        $flashArray = Connect-Pfa2Array -Endpoint $Endpoint -Credential $Credential -IgnoreCertificateError
    }
    catch {
        $ExceptionMessage = $_.Exception.Message
        Write-Error "Failed to connect to FlashArray endpoint $Endpoint with: $ExceptionMessage"
        Return
    }

    try {
        $groups = Get-Pfa2ProtectionGroup -Array $flashArray -Name $ProtectionGroup
        foreach ($group in $groups) {
            $volumes = Get-Pfa2ProtectionGroupVolume -Array $flashArray -GroupNames $group.Name | Select-Object -ExpandProperty 'Member'
            foreach ($volume in $volumes) {
                $name = $volume.Name.Replace($group.Source.Name + '::', '')
                $volumeName = "$Prefix-$name"
                $source = "$SnapshotName.$name"
                New-Pfa2Volume -Array $flashArray -Name $volumeName -SourceName $source
                if ($HostName) {
                    New-Pfa2Connection -Array $flashArray -HostNames $HostName -VolumeNames $volumeName
                }
            }
        }
    }
    finally {
        Disconnect-Pfa2Array -Array $flashArray
    }
}

function Sync-Pfa2Hosts() {
    <#
    .SYNOPSIS
    Synchronizes the hosts amd host protocols between two FlashArrays.
    .DESCRIPTION
    This cmdlet will retrieve the current hosts from the Source array and create them on the Target array. It will also add the FC (WWN) or iSCSI (IQN) settings for each host on the Target array.
    .PARAMETER SourceArray
    Required. FQDN or IP address of the source FlashArray.
    .PARAMETER TargetArray
    Required. FQDN or IP address of the target FlashArray.
    .PARAMETER Protocol
    Required. 'FC' for Fibre Channel WWNs or 'iSCSI' for iSCSI IQNs.
    .PARAMETER HostName
    Optional. Host name to filter out hosts to synchronize.
    .PARAMETER Credential
    Optional. Credential for the FlashArray.
    .INPUTS
    None
    .OUTPUTS
    None
    .EXAMPLE
    Sync-Pfa2Hosts -SourceArray 'dev-array' -TargetArray 'test-array' -Protocol FC
 
    Synchronizes the hosts and hosts FC WWNs from the 'dev-array' to the 'test-array'.
 
    .EXAMPLE
    Sync-Pfa2Hosts -SourceArray 'dev-array' -TargetArray 'test-array' -Protocol FC -Confirm:$false
 
    Synchronizes the hosts and hosts FC WWNs from the 'dev-array' to the 'test-array' skipping confirmation prompt.
 
    .EXAMPLE
    Sync-Pfa2Hosts -SourceArray 'dev-array' -TargetArray 'test-array' -Protocol FC -HostName 'vm-*'
 
    Synchronizes the hosts and hosts FC WWNs from the 'dev-array' to the 'test-array'. Hosts names to synchronize matches 'vm-*' pattern.
 
    .EXAMPLE
    Sync-Pfa2Hosts -SourceArray 'dev-array' -TargetArray 'test-array' -Protocol iSCSI
 
    Synchronizes the hosts and hosts iSCSI IQNs from the 'dev-array' to the 'test-array'.
 
    .NOTES
    This cmdlet can utilize the global credentials variable for FlashArray authentication. Set the credential variable by using the command Set-Pfa2Credential.
    #>


    [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'High')]
    Param (
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]$SourceArray,
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]$TargetArray,
        [Parameter(Mandatory)]
        [ValidateSet('iSCSI', 'FC')]
        [string]$Protocol,
        [ValidateNotNullOrEmpty()]
        [string]$HostName = '*',
        [pscredential]$Credential = ( Get-Pfa2Credential )
    )

    # Connect to source FlashArray
    try {
        $flashArray1 = Connect-Pfa2Array -Endpoint $SourceArray -Credential $Credential -IgnoreCertificateError
    }
    catch {
        $exceptionMessage = $_.Exception.Message
        Write-Error "Failed to connect to FlashArray endpoint $SourceArray with: $exceptionMessage"
        Return
    }

    try {
        # Connect to target FlashArray
        try {
            $flashArray2 = Connect-Pfa2Array -Endpoint $TargetArray -Credential $Credential -IgnoreCertificateError
        }
        catch {
            $exceptionMessage = $_.Exception.Message
            Write-Error "Failed to connect to FlashArray endpoint $TargetArray with: $exceptionMessage"
            Return
        }

        try {
            $sync_msg = "Copy hosts configuration from $SourceArray to $TargetArray. " +
            "This action overwrites the target array's configuration and can be destructive."
            if (-not $PSCmdlet.ShouldProcess($sync_msg, "Are you sure you want to perform this action?`n$sync_msg", 'Confirm')) {
                return
            }

            Get-Pfa2HostGroup -Array $flashArray1 -Filter "not(contains(name,':'))" | New-Pfa2HostGroup -Array $flashArray2

            $fa1Hosts = Get-Pfa2Host -Array $flashArray1 -Filter "not(contains(name,':'))" -Name $HostName
            $fa1Hosts | New-Pfa2Host -Array $flashArray2

            switch ($Protocol) {
                'iSCSI' {
                    foreach ($fa1Host in $fa1Hosts) {
                        Update-Pfa2host -Array $flashArray2 -AddIqns $fa1Host.iqns -Name $fa1Host.name |
                        Update-Pfa2host -Array $flashArray2 -HostGroupName $fa1Host.HostGroup.Name

                    }
                }
                'FC' {
                    foreach ($fa1Host in $fa1Hosts) {
                        Update-Pfa2host -Array $flashArray2 -AddWwns $fa1Host.wwns -Name $fa1Host.name |
                        Update-Pfa2host -Array $flashArray2 -HostGroupName $fa1Host.HostGroup.Name
                    }
                }
            }
        }
        finally {
            Disconnect-Pfa2Array -Array $flashArray2
        }
    }
    finally {
        Disconnect-Pfa2Array -Array $flashArray1
    }
}

# Declare exports
Export-ModuleMember -Function Get-Pfa2AllHostVolumeInfo
Export-ModuleMember -Function Get-Pfa2DisconnectedVolumes
Export-ModuleMember -Function Get-Pfa2Space
Export-ModuleMember -Function Get-Pfa2StaleSnapshots
Export-ModuleMember -Function Get-Pfa2PgroupsConfig
Export-ModuleMember -Function Get-Pfa2Config
Export-ModuleMember -Function Get-Pfa2Hierarchy
Export-ModuleMember -Function Get-Pfa2QuickCapacityStats
Export-ModuleMember -Function Get-Pfa2RASession
Export-ModuleMember -Function Get-Pfa2VolumeGrowth
Export-ModuleMember -Function Get-Pfa2ConnectDetails
Export-ModuleMember -Function Remove-Pfa2PendingDeletes
Export-ModuleMember -Function Restore-Pfa2PGroupVolumeSnapshots
Export-ModuleMember -Function Sync-Pfa2Hosts
Export-ModuleMember -Function New-Pfa2PGroupVolumes
Export-ModuleMember -Function New-Pfa2CapacityReport
Export-ModuleMember -Function Export-Pfa2Excel
Export-ModuleMember -Function New-Pfa2ExcelReport
Export-ModuleMember -Function Get-Pfa2Credential
Export-ModuleMember -Function Set-Pfa2Credential
Export-ModuleMember -Function Clear-Pfa2Credential
# END