共用方式為


Confirm-AzureStorSimpleLegacyVolumeContainerStatus

起始已移轉之磁碟區容器的認可或復原。

注意

本文件中參考的 Cmdlet 用於管理使用 Azure Service Manager(ASM) API 的舊版 Azure 資源。 建立新的資源時,不建議使用此舊版 PowerShell 模組,因為 ASM 已排定淘汰。 如需詳細資訊,請參閱 Azure Service Manager 淘汰

Az PowerShell 模組是使用 PowerShell 管理 Azure Resource Manager (ARM) 資源的建議 PowerShell 模組。

語法

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 會在匯入的組態檔中的所有磁碟區容器上起始復原或認可作業。

類型:SwitchParameter
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-LegacyConfigId

指定舊版設備組態的唯一標識符。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-LegacyContainerNames

指定移轉計劃適用的磁碟區容器名稱陣列。

類型:String[]
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-MigrationOperation

指定此 Cmdlet 是否執行認可或復原。 有效值為:認可和回復。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Profile

指定此 Cmdlet 從中讀取的 Azure 設定檔。 如果您未指定設定檔,此 Cmdlet 會從本機預設配置檔讀取。

類型:AzureSMProfile
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False