New-HPOVProfile fails unless the server is unassigned


The call to Send-HPOVRequest on line 14235 uses an undefined variable as the parameter "$serverHardwareType = Send-HPOVRequest $serverHardwareTypeUri". While both $server.serverHardwareTypeUri and $serverprofile.serverHardwaretypeUri are defined, $serverHardwareTypeUri is not. As a result, you can create a new profile only if you don't try to assign it to a server.

Also, you can't specify the SANStorage parameter because it also uses the undefined "$serverHardwareTypeUri" variable in the call to get the available storage systems.
Closed Nov 6, 2014 at 4:05 PM by ChrisLynchHP
Fixed in the 1.10.1415 release.


ChrisLynchHP wrote Nov 4, 2014 at 4:52 AM

This is fixed and will be in the next release.

You can use the following as a workaround:
$name = "Encl1, Bay 1"
$server = (Get-HPOVServer) | ? { $_.name -eq $name }