Set-VsanIscsiInitiatorGroup

This cmdlet modifies the specified vSAN iSCSI initiator groups.

Syntax

-InitiatorGroup  <VsanIscsiInitiatorGroup[]>
[-AddInitiator  <String[]>]
[-RemoveInitiator  <String[]>]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
InitiatorGroup
VsanIscsiInitiatorGroup[] named
  • wildcards
  • pipeline
  • Specifies the vSAN iSCSI initiator group to which you want to add or remove initiators.
    optional
    AddInitiator
    String[] named Specifies the names of the vSAN iSCSI initiators which you want to add to the initiator group.
    optional
    RemoveInitiator
    String[] named Specifies the names of the vSAN iSCSI initiators which you want to remove from the initiator group.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

    Output

    VMware.VimAutomation.Storage.Types.V1.Vsan.Iscsi.VsanIscsiInitiatorGroup

    Examples


    Example 1

    Set-VsanIscsiInitiatorGroup -InitiatorGroup $initiatorGroup -AddInitiator "initiator1-iqn", "initiator2-iqn" -RemoveInitiator "initiator3-iqn"

    Adds iSCSI initiators with IQN "initiator1-iqn" and "initiator2-iqn" to the $initiatorGroup initiator group and removes iSCSI initiator with IQN "initiator3-iqn" from the initiator group.

    Related Commands

    Feedback

    Was this page helpful?