Closed briamorr closed 6 months ago
Looks like filter needs a backtick to get it working
$resourceGroup = Get-IntersightResourceGroup -Name IMM-Blade1
$selector = Initialize-IntersightResourceSelector -Selector "/api/v1/compute/Blades?`$filter=Serial in ('FCHYYYY','FCHXXX') and ManagementMode eq 'Intersight'"
$resourceGroup | Set-IntersightResourceGroup -Selector $selector
Describe the bug Initialize-IntersightResourceSelector appears to be adding classid/objecttype to payload which backend isn't expecting
To Reproduce Payload when adding a server to a sub-target from the UI:
Powershell:
Error:
Version used Intersight SaaS Intersight Module: 1.0.11.16342
Expected behavior Initialize-IntersightResourceSelector works correctly when used in conjunction with Set-IntersightResourceGroup