PowerShell Script Descriptions

There are a total of four sample files which are mentioned below:

  • DeploymentUSeries.ps1: PowerShell script to be called for deployment of appliance
  • Deployment.json: This file contains sample JSON format used by Deployment script (DeploymentUSeries.ps1)
  • ConfigurationUSeries.ps1: PowerShell script to be called for configuration of appliance
  • Configuration.json: This file contains sample JSON format used by Configuration script (ConfigurationUSeries.ps1)

DeploymentUSeries.ps1

  • $UvmAddress: IP of U-Series Appliance

Replace “XX.XXX.XXX.XXX” with an actual IP of U-Series Appliance in DeploymentUSeries.ps1 script.

  • $InputFileName: Name of the file which contains JSON Data to be passed to Deployment endpoint. In our case value will be DeploymentUSeries.ps1 if User is using their own file, then this will be name of that file. User can edit this value in file DeploymentUSeries.ps1 according to the requirement.
  • $Header: Need to pass header with key “SerialNumber” and value “actual serial number”.

Replace “XXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX” with an actual serial number in DeploymentUSeries.ps1 script.

Deployment.json

This file contains sample JSON format used by the Deployment script. You can edit the values according to the requirement.

Deployment Script Results

After running the deployment script, you will get one of the following outputs:

  • Deployment Completed: Implies that deployment is successful.
  • Deployment Failed: Implies that deployment is failed. There will be error message. User can work on the error and rerun the script.

This script returns a “Not halting script” message when the endpoint will not be available during restart.

ConfigurationUSeries.ps1

This file contains the PowerShell Script that calls Configuration endpoints. This needs to be the second script to be called after deployment script. You need to pass three parameters in this script.

  • $UvmAddress: IP of U-Series Appliance.

Replace “XX.XXX.XXX.XXX” with actual IP of U-Series Appliance in ConfigurationUSeries.ps1 script.

  • $InputFileName: Name of the file which contains JSON Data to be passed to Configuration endpoint. In this case, the value will be Configuration.psd1. If the user is using their own file, then this will be name of that file. You can edit this value in file ConfigurationUSeries.ps1 according to the requirement.
  • $Header: Need to pass header with key “SerialNumber” and value “actual serial number”.

Configuration.json

This file contains sample JSON format used by Configuration script. You can edit the values according to the requirement.

Configuration Script Results

After running the configuration script, you will get following outputs.

  • Configuration Completed: Implies that Configuration is successful.
  • Configuration Failed: Implies that Configuration is failed. There will be an error message. You can then work on the error and rerun the script.