Remove-AzureStorSimpleDeviceVolume
StorSimple デバイスからボリュームを削除します。
注意
このドキュメントで参照されているコマンドレットは、Service Management API を使用するレガシ Azure リソースを管理するためのものです。 Azure Resource Manager リソースを管理するためのコマンドレットについては、Az PowerShell モジュールを参照してください。
構文
Remove-AzureStorSimpleDeviceVolume
-DeviceName <String>
-VolumeName <String>
[-WaitForComplete]
[-Force]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Remove-AzureStorSimpleDeviceVolume
-DeviceName <String>
-Volume <VirtualDisk>
[-WaitForComplete]
[-Force]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
説明
Remove-AzureStorSimpleDeviceVolume コマンドレットは、StorSimple デバイスからボリュームを削除します。 このコマンドレットは、Force パラメーターを指定しない限り、確認を求められます。
例
例 1: パイプラインを使用してボリュームを削除する
PS C:\>Get-AzureStorSimpleDeviceVolume -DeviceName "Contoso63-AppVm" -VolumeName "Volume18" | Remove-AzureStorSimpleDeviceVolume -DeviceName "Contoso63-AppVm"
VERBOSE: ClientRequestId: 2933e24d-9564-42b5-9053-5f0bc4f59ea8_PS
VERBOSE: ClientRequestId: 7c2d854b-537a-4253-bb0c-c15bc8aa2b49_PS
VERBOSE: ClientRequestId: 4bf749ac-517c-49e7-8027-a8f62e272014_PS
VERBOSE: ClientRequestId: 7d9ec87a-616d-4ca9-bfb8-158859174d59_PS
Confirm
Are you sure you want to remove the volume?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
VERBOSE: ClientRequestId: 67a38e28-a015-44b1-8159-c1a6604f4d81_PS
VERBOSE: About to run a job to remove your volume!
VERBOSE: ClientRequestId: 56101c10-07ca-40f4-8f19-c6fdd895e3a5_PS
32925451-4451-4478-89f7-d8930505d3fb
VERBOSE: The delete task is submitted successfully. Please use the command Get-AzureStorSimpleTask -InstanceId
32925451-4451-4478-89f7-d8930505d3fb for tracking the task's status
VERBOSE: Volume with name: Volume18 is found.
このコマンドは、Contoso63-AppVm という名前のデバイス上の Volume18 という名前のボリュームを取得し、パイプライン 演算子を使用してそのボリュームを現在のコマンドレットに渡します。 現在のコマンドレットは、ボリュームを削除するタスクを開始し、TaskResponse オブジェクトを返します。 タスクの状態を確認するには、Get-AzureStorSimpleTask コマンドレットを使用します。 このコマンドでは Force パラメーターが指定されていないため、コマンドレットによって確認が求められます。
例 2: 確認なしでボリュームを削除する
PS C:\>Remove-AzureStorSimpleDeviceVolume -DeviceName "Contoso63-AppVm" -VolumeName "Volume18" -Force
VERBOSE: ClientRequestId: 72f13290-41eb-4ac4-9535-da1a42d0fa0b_PS
VERBOSE: ClientRequestId: ae0c1d99-1a66-4a69-9260-f2c8c12546bd_PS
VERBOSE: ClientRequestId: 9610744f-d031-488f-87e6-3ecddb305e13_PS
VERBOSE: About to run a job to remove your volume!
VERBOSE: ClientRequestId: d33525d8-7276-4d2a-942d-d10f8078f1f7_PS
483f8cb4-ebc3-46a9-a9e6-0989e25738a0
VERBOSE: The delete task is submitted successfully. Please use the command Get-AzureStorSimpleTask -InstanceId
483f8cb4-ebc3-46a9-a9e6-0989e25738a0 for tracking the task's status
このコマンドは、Volume18 という名前のボリュームを Contoso63-AppVm という名前のデバイスから削除します。 このコマンドは Force パラメーターを指定するため、コマンドレットは確認を求めません。
パラメーター
-DeviceName
削除するボリュームが存在する StorSimple デバイスの名前を指定します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Force
このコマンドレットが確認を求めないことを示します。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
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 |
-Volume
削除するボリュームを VirtualDisk オブジェクトとして指定します。 VirtualDisk オブジェクトを取得するには、Get-AzureStorSimpleDeviceVolume コマンドレットを使用します。
Type: | VirtualDisk |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VolumeName
削除するボリュームの名前を指定します。
Type: | String |
Aliases: | Name |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WaitForComplete
このコマンドレットは、Windows PowerShell コンソールに制御を返す前に、操作が完了するまで待機することを示します。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
入力
VirtualDisk
このコマンドレットは、削除する VirtualDisk オブジェクトまたは削除する VirtualDisk のボリューム名を受け入れます。
出力
TaskStatusInfo
WaitForComplete パラメーターを 指定すると、このコマンドレットは TaskStatusInfo オブジェクトを 返 します。