New-VsanIscsiInitiatorGroupTargetAssociation

This cmdlet associates the specified vSAN iSCSI initiator group with specified vSAN iSCSI target to provide access to the target.

Syntax

[-Target]  <VsanIscsiTarget>
-InitiatorGroup  <VsanIscsiInitiatorGroup>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Target
VsanIscsiTarget 1
  • wildcards
  • pipeline
  • Specifies the vSAN iSCSI target to which you want to provide access.
    required
    InitiatorGroup
    VsanIscsiInitiatorGroup named
  • wildcards
  • pipeline
  • Specifies the vSAN iSCSI initiator group associated with the vSAN iSCSI target to which you have provided access.
    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.VsanIscsiInitiatorGroupTargetAssociation

    Examples


    Example 1

    New-VsanIscsiInitiatorGroupTargetAssociation -InitiatorGroup $initiatorGroup -Target $target

    Associates the $initiatorGroup initiator group with the $target iSCSI target.

    Related Commands

    Feedback

    Was this page helpful?