Closed mdk85-start closed 1 month ago
Please use your script with latest released module version https://www.powershellgallery.com/packages/Intersight.PowerShell/1.0.11.18775
@Ghufz : the new module fixed the issue. Thanks for fixing the resolution quickly! :)
Using contain() method in PolicyBucket, how do i find a policy inside $serverProfile.PolicyBucket.Contain() ?
PolicyBucket is complex type so contains will not solve your issue, either use compare-object cmdlet, or simply iterate on policy bucket and check
Describe the bug I am seeing issues while adding a new existing policy on existing an ucs server profile for cimc, where $serverProfile.policyBucket.Add method doesn't execute.
When i ran this code couple of weeks it was able to attach the policy into UCS Server Profile (~200) . But now it doesn't execute.
Also when i run Set-IntersightServerProfile, I am seeing the following error
Code - $serverProfileKVM = $serverProfileDetail | Set-IntersightServerProfile
"Set-IntersightServerProfile: Object serialized to Array. JObject instance expected"
To Reproduce Steps to reproduce the behavior
Version used
Intersight PowerShell Module version (1.0.11.17956)
Expected behavior Add additional policies into UCS Server Profile
Screenshots
Additional context Add any other context about the problem here.