Get-AzureStorSimpleDeviceVolumeContainer
取得裝置上的磁片區容器。
注意
本檔中參考的 Cmdlet 用於管理使用服務管理 API 的舊版 Azure 資源。 如需管理 Azure Resource Manager 資源的 Cmdlet,請參閱 Az PowerShell 模組 。
Syntax
Get-AzureStorSimpleDeviceVolumeContainer
-DeviceName <String>
[-VolumeContainerName <String>]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Description
Get-AzureStorSimpleDeviceVolumeContainer Cmdlet 會取得裝置上的磁片區容器清單,或具有指定名稱的磁片區容器清單。 傳回的物件包含下列屬性:
- BandwidthRate
- EncryptionKey
- InstanceId
- IsDefault
- IsEncryptionEnabled
- 名稱
- 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 會從此參數指定的裝置取得磁片區容器。
Type: | String |
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 |
-VolumeContainerName
指定要取得的磁片區容器名稱。
Type: | String |
Aliases: | Name |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸入
None
輸出
DataContainer, IList\<DataContainer\>
如果您指定 VolumeContainerName 參數,此 Cmdlet 會 傳回 DataContainer 物件。 如果您未指定該參數,這個 Cmdlet 會 傳回 IList < DataContainer > 物件。