你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzureStorSimpleDeviceVolumeContainer
获取设备上的卷容器。
注意
本文档中引用的 cmdlet 用于管理使用 Azure Service Manager (ASM) API 的旧 Azure 资源。 创建新的资源时,不建议使用此旧版 PowerShell 模块,因为 ASM 计划停用。 有关详细信息,请参阅 Azure Service Manager 停用。
Az PowerShell 模块是推荐的 PowerShell 模块,用于使用 PowerShell 管理 Azure 资源管理器 (ARM) 资源。
语法
Get-AzureStorSimpleDeviceVolumeContainer
-DeviceName <String>
[-VolumeContainerName <String>]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
说明
Get-AzureStorSimpleDeviceVolumeContainer cmdlet 获取设备上卷容器的列表,或具有指定名称的卷容器。 返回的对象包含以下属性:
- BandwidthRate
- EncryptionKey
- InstanceId
- IsDefault
- IsEncryptionEnabled
- Name
- OperationInProgress
- 拥有
- PrimaryStorageAccountCredential
- SecretsEncryptionThumbprint
- VolumeCount
示例
示例 1:获取设备上的所有容器
PS C:\>Get-AzureStorSimpleDeviceVolumeContainer -DeviceName "8600-Bravo 001"
InstanceId Name IsEncryptionEnabled Owned BandwidthRate PrimaryStorageAccountCredential VolumeCount
---------- ---- ------------------- ----- ------------- ------------------------------- -----------
127135b6-92de-4f53-850d-70e1f9a38cbe Test_Container False True 0 Test_Account 6
此命令获取名为 8600-Bravo 001 的设备上的卷容器列表。
示例 2:使用容器名称获取容器
PS C:\>Get-AzureStorSimpleDeviceVolumeContainer -DeviceName "Contoso63-AppVm" -VolumeContainerName "Container08"
VERBOSE: ClientRequestId: 8027c66a-869b-4ea3-97a2-e17d98ec751c_PS
VERBOSE: ClientRequestId: 344f9be5-0887-4d37-98ef-e45c557774f1_PS
VERBOSE: ClientRequestId: 14919be5-d6f5-4f81-b7f1-d7fafff2238c_PS
BandwidthRate : 256
EncryptionKey :
InstanceId : 04ea9aad-7a56-4a50-b195-86061b0a810a
IsDefault : False
IsEncryptionEnabled : False
Name : Container03
OperationInProgress : None
Owned : True
PrimaryStorageAccountCredential : Microsoft.WindowsAzure.Management.StorSimple.Models.StorageAccountCredentialResponse
SecretsEncryptionThumbprint :
VolumeCount : 5
VERBOSE: Volume container with name: Container03 is found.
此命令在名为 Contoso63-AppVm 的设备上获取名为 Container08 的卷容器。
参数
-DeviceName
指定 StorSimple 设备的名称。 此 cmdlet 从此参数指定的设备获取卷容器。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Profile
指定 Azure 配置文件。
类型: | AzureSMProfile |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-VolumeContainerName
指定要获取的卷容器的名称。
类型: | String |
别名: | Name |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输入
None
输出
DataContainer, IList\<DataContainer\>
如果指定 VolumeContainerName 参数,此 cmdlet 将返回 DataContainer 对象。 如果未指定该参数,此 cmdlet 将 返回 IList<DataContainer> 对象。