Add-SMResource from SnapCenter Powershell for the custom Storage plugin fails
Applies to
- SnapCenter Server
- SnapCenter Custom Plugin - Storage
Issue
The Powershell command to, for example, add a LUN resource for a Linux host, using the "storage" Plug-in from the Automation Store, fails as such:
Add-SmResource -Hostname <LUN_HOST> -PluginCode Storage -ResourceName <LUN_NAME> -ResourceType "Storage Resource" -StorageFootprint (@{"VolumeName"="<VOLUME>";"LunName"="LUN_NAME";"StorageSystem"="<SVM_NAME>"})
Add-SmResource : Cannot retrieve the dynamic parameters for the cmdlet. Unsupported Resource Type
At line:1 char:1
+ Add-SmResource -Hostname <LUN_HOST> -PluginCode Storage -ResourceName <LUN_NAME> -Re ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Add-SmResource], ParameterBindingException
+ FullyQualifiedErrorId : GetDynamicParametersException,SmPSSnapin.PSAddScInventory