Share via


Get-AzureStorSimpleDeviceConnectedInitiator

StorSimple デバイスで使用できる iSCSI 接続を取得します。

注意

このドキュメントで参照されているコマンドレットは、Service Management API を使用するレガシ Azure リソースを管理するためのものです。 Azure Resource Manager リソースを管理するためのコマンドレットについては、Az PowerShell モジュールを参照してください。

構文

Get-AzureStorSimpleDeviceConnectedInitiator
   -DeviceId <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]
Get-AzureStorSimpleDeviceConnectedInitiator
   -DeviceName <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

説明

Get-AzureStorSimpleDeviceConnectedInitiator コマンドレットは、StorSimple デバイスで使用できる iSCSI 接続の一覧を取得します。 このコマンドレットが返す iSCSI 接続オブジェクトには、次のプロパティが含まれています。

  • AcrInstanceId
  • AcrName
  • AllowedVolumeNames
  • InitiatorAddress
  • インターフェイス
  • Iqn
  • IscsiConnectionId

このコマンドレットは、デバイスに対して iSCSI 接続が有効になっている場合にのみ、接続オブジェクトを取得します。 既定では、接続はオフになっています。

例 1: デバイスのすべての接続を取得する

PS C:\>Get-AzureStorSimpleDeviceConnectedInitiator -DeviceName "Contoso63-AppVm"
VERBOSE: ClientRequestId: bec615b9-79ab-4671-88b0-287adeb6bf68_PS
VERBOSE: ClientRequestId: ef976c58-2660-41c8-aa15-c84e70c9d01c_PS
VERBOSE: ClientRequestId: 9b306b96-8e76-47ed-beda-d3bd2fb2bb82_PS
VERBOSE: ClientRequestId: 0f4fc743-0b60-45da-a45a-27f4b0f32bd2_PS

AcrInstanceId      : 55f24643-ab3a-4098-ade2-aa2b1a3ab18c
AcrName            : Contoso63-AppVm
AllowedVolumeNames : {Policyvolume1_Default}
InitiatorAddress   : 
Interfaces         : {Data0}
Iqn                : iqn10
IscsiConnectionId  : cfc144cb-00f1-44b1-9655-80b431f2161b

VERBOSE: 1 Iscsi Connection found!

このコマンドは、Contoso63-AppVm という名前のデバイスのすべての iSCSI 接続を取得します。 このコマンドは、デバイスの接続が有効になっている場合にのみ、接続を返します。

パラメーター

-DeviceId

iSCSI イニシエーターの取得元となる StorSimple デバイスのインスタンス ID を指定します。

Type:String
Aliases:ID
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DeviceName

iSCSI イニシエーターの取得元となる StorSimple デバイスの名前を指定します。

Type:String
Aliases:Name
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Profile

Azure プロファイルを指定します。

Type:AzureSMProfile
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

入力

None

出力

List\<IscsiConnection\>

このコマンドレットは、次のプロパティを含む iSCSI 接続オブジェクトを返します。

  • AcrInstanceId
  • AcrName
  • AllowedVolumeNames
  • InitiatorAddress
  • インターフェイス
  • Iqn
  • IscsiConnectionId