Confirm-AzureStorSimpleLegacyVolumeContainerStatus
起始已移轉之磁片區容器的認可或復原。
注意
本檔中參考的 Cmdlet 用於管理使用服務管理 API 的舊版 Azure 資源。 如需管理 Azure Resource Manager 資源的 Cmdlet,請參閱 Az PowerShell 模組 。
Syntax
Confirm-AzureStorSimpleLegacyVolumeContainerStatus
-LegacyConfigId <String>
-MigrationOperation <String>
-LegacyContainerNames <String[]>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Confirm-AzureStorSimpleLegacyVolumeContainerStatus
-LegacyConfigId <String>
-MigrationOperation <String>
[-All]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Description
Confirm-AzureStorSimpleLegacyVolumeContainerStatus Cmdlet 會起始移轉為舊版移轉之磁片區容器的認可或復原。 復原會將設備還原至原始擁有權。 認可會將擁有權指派給目標設備。
範例
範例 1:在特定磁片區容器上起始認可作業
PS C:\>Confirm-AzureStorSimpleLegacyVolumeContainerStatus -LegacyConfigId "c5a831e1-7888-44f4-adf1-92994be630c3" -LegacyContainerNames "OneSDKAzureCloud" -MigrationOperation Commit
Please check the commit/discard status using Get-AzureStorSimpleLegacyVolumeContainerConfirmStatus
此命令會針對指定的舊版組態識別碼,在指定的磁片區容器上起始認可作業。 若要查看作業的狀態,請使用 Get-AzureStorSimpleLegacyVolumeContainerStatus Cmdlet。
範例 2:在特定磁片區容器上起始復原作業
PS C:\>Confirm-AzureStorSimpleLegacyVolumeContainerStatus -LegacyConfigId "c5a831e1-7888-44f4-adf1-92994be630c3" -LegacyContainerNames "OneSDKAzureCloud" -MigrationOperation Rollback
Please check the commit/discard status using Get-AzureStorSimpleLegacyVolumeContainerConfirmStatus
此命令會針對指定的舊版組態識別碼,在指定的磁片區容器上起始復原作業。
範例 3:在所有磁片區容器上起始認可作業
PS C:\>Confirm-AzureStorSimpleLegacyVolumeContainerStatus -LegacyConfigId "c5a831e1-7888-44f4-adf1-92994be630c3" -MigrationOperation Commit -All
Please check the commit/discard status using Get-AzureStorSimpleLegacyVolumeContainerConfirmStatus
此命令會在指定舊版組態識別碼的所有磁片區容器上起始認可作業。
範例 4:在所有磁片區容器上起始復原作業
PS C:\>Confirm-AzureStorSimpleLegacyVolumeContainerStatus -LegacyConfigId "c5a831e1-7888-44f4-adf1-92994be630c3" -MigrationOperation Rollback -All
Please check the commit/discard status using Get-AzureStorSimpleLegacyVolumeContainerConfirmStatus
此命令會在指定舊版組態識別碼的所有磁片區容器上起始復原作業。
參數
-All
指出此 Cmdlet 會在匯入的組態檔中的所有磁片區容器上起始復原或認可作業。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LegacyConfigId
指定舊版設備組態的唯一識別碼。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LegacyContainerNames
指定移轉計畫適用的磁片區容器名稱陣列。
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MigrationOperation
指定此 Cmdlet 是否執行認可或復原。 有效值為:認可和回復。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Profile
指定此 Cmdlet 從中讀取的 Azure 設定檔。 如果您未指定設定檔,此 Cmdlet 會從本機預設設定檔讀取。
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |