Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified AsBuiltReport.PureStorage.FlashArray.psd1
Binary file not shown.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Pure Storage FlashArray As Built Report Changelog

## [0.4.1] - 2019-04-03
### Changed
- Modified the logic used when connecting to a Pure Flasharray target
- Added PSEdition_Desktop tag to the module manifest
- Updated the copyright information in the module manifest
- Add statistic links to readme.md

## [0.4.0] - 2019-03-15
### Changed
- Refactored into PowerShell module
Expand Down
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
<p align="center">
<a alt="PowerShell Gallery Version">
<img src="https://img.shields.io/powershellgallery/v/AsBuiltReport.PureStorage.FlashArray.svg" /></a>
<a alt="PS Gallery Downloads">
<img src="https://img.shields.io/powershellgallery/dt/AsBuiltReport.PureStorage.FlashArray.svg" /></a>
<a alt="PS Platform">
<img src="https://img.shields.io/powershellgallery/p/AsBuiltReport.PureStorage.FlashArray.svg" /></a>
</p>
<p align="center">
<a alt="GitHub Last Commit">
<img src="https://img.shields.io/github/last-commit/AsBuiltReport/AsBuiltReport.PureStorage.FlashArray/master.svg" /></a>
<a alt="GitHub License">
<img src="https://img.shields.io/github/license/AsBuiltReport/AsBuiltReport.PureStorage.FlashArray.svg" /></a>
<a alt="GitHub Contributors">
<img src="https://img.shields.io/github/contributors/AsBuiltReport/AsBuiltReport.PureStorage.FlashArray.svg"/></a>
</p>
<p align="center">
<a alt="Twitter">
<img src="https://img.shields.io/twitter/follow/AsBuiltReport.svg?style=social"/></a>
</p>

# Pure Storage FlashArray AsBuiltReport

Pure Storage FlashArray AsBuiltReport is a module of the parent "AsBuiltReport" project (https://github.com/AsBuiltReport/AsBuiltReport). AsBuiltReport is a PowerShell module which generates As-Built documentation for many common datacentre infrastructure systems. Reports can be generated in Text, XML, HTML and MS Word formats and can be presented with custom styling to align with your company/customer's brand.
Expand Down Expand Up @@ -53,9 +74,9 @@ The following provides information of how to configure each schema within the re
## Examples
There is one example listed below on running the AsBuiltReport script against a Pure Storage FlashArray target. Refer to the `README.md` file in the main AsBuiltReport project repository for more examples.

- The following creates a Pure Storage FlashArray As-Built report in HTML & Word formats.
- The following creates a Pure Storage FlashArray As-Built report in HTML & Word formats in the folder C:\scripts\.
```powershell
PS C:\>New-AsBuiltReport -Report PureStorage.FlashArray -Target 192.168.1.100 -Credential (Get-Credential) -Format HTML,Word
PS C:\>New-AsBuiltReport -Report PureStorage.FlashArray -Target 192.168.1.100 -Credential (Get-Credential) -Format HTML,Word -OutputPath C:\scripts\
```

## Knwon Issues
9 changes: 6 additions & 3 deletions Src/Public/Invoke-AsBuiltReport.Purestorage.FlashArray.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Invoke-AsBuiltReport.PureStorage.FlashArray {
.DESCRIPTION
Documents the configuration of Pure Storage FlashArray in Word/HTML/XML/Text formats using PScribo.
.NOTES
Version: 0.4/0
Version: 0.4.1
Author: Matt Allford
Twitter: @mattallford
Github: https://github.com/mattallford
Expand All @@ -30,11 +30,12 @@ function Invoke-AsBuiltReport.PureStorage.FlashArray {
}

$Script:Array = $Null
#Connect to Pure Storage Array using supplied credentials
foreach ($FlashArray in $Target) {
Try {
$Array = New-PfaArray -EndPoint $FlashArray -Credentials $Credential -IgnoreCertificateError
$Array = New-PfaArray -EndPoint $FlashArray -Credentials $Credential -IgnoreCertificateError -ErrorAction Stop
} Catch {
Write-Verbose "Unable to connect to the Pure Storage FlashArray $FlashArray"
Write-Error $_
}

if ($Array) {
Expand Down Expand Up @@ -438,5 +439,7 @@ function Invoke-AsBuiltReport.PureStorage.FlashArray {
}#End Section Heading2 Users
}#End Section Heading1 $ArrayAttributes.array_name
}#End if $Array
#Clear the $Array variable ready for reuse for a connection attempt on the next foreach loop
Clear-Variable -Name Array
}#End foreach $FlashArray in $Target
}#End Function Invoke-AsBuiltReport.PureStorage.FlashArray