This is a great example of using the Cisco UCS PowerTool Suite for Microsoft PowerShell to setup a FlashStack. The Cisco UCS manager can be a bit overwhelming with all of the various tabs, dialogs, etc. and being able to create a setup PowerShell script makes life a lot easier for an administrator to create a repeatable workflow. Check out the white paper at FlashStack Virtual Server Infrastructure Deployment Guide: Cisco PowerTool Addendum.

There are some areas of this paper that can be automated with the Pure Storage PowerShell SDK. One example is when creating boot policies the information from the FlashArray can be retrieved and either set via a variable or through the pipeline by using:


As you can see from the above output that the WWN does not come back in correct format. The below script adds the “:” as appropriate to have a well formed WWN.

Modified Cisco PowerShell with the added wwns.

The PowerShell example above for the Pure Storage FlashArray is using Get-Credential which I would suggest against for full automation. There is an example in the following post on how to automate the login to the FlashArray using PowerShell at

Once the Cisco UCS infrastructure has been setup then there are other actions that can be automated as well:

  1. Creating SAN boot volumes (How-To)
  2. Creating Hosts and/or Host Groups (How-To)
  3. Create data volumes for newly created Hosts (How-To)
  4. Connecting volumes to Hosts and/or Host Groups (How-To)
  5. Using DesiredStateConfiguration (DSC) to setup Windows Server

A suggestion for the Cisco UCS PowerTools team; put the Cisco UCS PowerTool Suite on the PowerShell Gallery.