This cmdlet adds devices to a static resource group.

Note: You cannot pipe objects to this cmdlet.


Add-LXCAResourceGroupMembers [-Connection LXCAConnection]
                              -GroupUuid String
                              -DeviceType String
                              -DevicesUuid String[]


-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-GroupUuid String
Specifies the UUID of the resource group to which you want to add devices.
-DeviceType String
Specifies the type of the devices to be added. You can specify one of the following values.
  • Chassis

  • Nodes

  • Switches

  • Storage

-DevicesUuid String[]
Specifies the UUID of the devices to be added.
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.


This cmdlet returns a Lenovo.SysMgmt.LXCA.Integration.Data.ResourceGroup object for the resource group with specified UUID. The returned object contains all the devices (including devices that were just added) in the resource group.

Note: This cmdlet does not returns any error if one or more devices were not added to the group.


The following example adds three switches to a specific resource group.

$cred = Get-Credential
Connect-LXCA -Host "" -Credential $Cred –SkipCertificateCheck

$result = Add-LXCAResourceGroupMembers -GroupUuid $groupUuid -DevicesUuid $switchesUuids -DeviceType Switches


Related links