你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzureStorSimpleDeviceConnectedInitiator

获取可用于 StorSimple 设备的 iSCSI 连接。

注意

本文档中引用的 cmdlet 用于管理使用 Azure Service Manager (ASM) API 的旧 Azure 资源。 创建新的资源时,不建议使用此旧版 PowerShell 模块,因为 ASM 计划停用。 有关详细信息,请参阅 Azure Service Manager 停用

Az PowerShell 模块是推荐的 PowerShell 模块,用于使用 PowerShell 管理 Azure 资源管理器 (ARM) 资源。

语法

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

说明

Get-AzureStorSimpleDeviceConnectedInitiator cmdlet 获取可用于 StorSimple 设备的 iSCSI 连接的列表。 此 cmdlet 返回的 iSCSI 连接对象包含以下属性:

  • AcrInstanceId
  • AcrName
  • AllowedVolumeNames
  • InitiatorAddress
  • 接口
  • Iqn
  • IscsiConnectionId

仅当设备启用了 iSCSI 连接时,此 cmdlet 才获取连接对象。 默认情况下,连接处于关闭状态。

示例

示例 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。

类型:String
别名:ID
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-DeviceName

指定要从中获取 iSCSI 发起程序的 StorSimple 设备的名称。

类型:String
别名:Name
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-Profile

指定 Azure 配置文件。

类型:AzureSMProfile
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

输入

None

输出

List\<IscsiConnection\>

此 cmdlet 返回包含以下属性的 iSCSI 连接对象:

  • AcrInstanceId
  • AcrName
  • AllowedVolumeNames
  • InitiatorAddress
  • 接口
  • Iqn
  • IscsiConnectionId