HPE OneView
1827894 Members
1648 Online
109969 Solutions
New Discussion

unassign profile powershell

 
SOLVED
Go to solution
Synergize
Occasional Advisor

unassign profile powershell

what is the command to unassign a profile from a synergy module. Would remove-hpovserverprofile do the unassign or would that actually delete the profile?

2 REPLIES 2
ChrisLynch
HPE Pro
Solution

Re: unassign profile powershell

Please review the Verb Mapping online documentation to understand what PowerShell verbs align to which Actions within the UI are available.

That said, Remove-HPOVServeProfile will delete it, not unassign. What you want is New-HPOVServerProfileAssign, which there is a parameter called -Unassign that will essentially clear out the serverHardwareUri property of the specified server profile resource and then save it to the appliance.

 

I work at HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Synergize
Occasional Advisor

Re: unassign profile powershell

very helpful. tyvm