共用方式為


Start-AzureStorSimpleLegacyVolumeContainerMigrationPlan

開始建立移轉計劃。

注意

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

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

語法

Start-AzureStorSimpleLegacyVolumeContainerMigrationPlan
     -LegacyConfigId <String>
     -LegacyContainerNames <String[]>
     [-Profile <AzureSMProfile>]
     [<CommonParameters>]
Start-AzureStorSimpleLegacyVolumeContainerMigrationPlan
     -LegacyConfigId <String>
     [-All]
     [-Profile <AzureSMProfile>]
     [<CommonParameters>]

Description

Start-AzureStorSimpleLegacyVolumeContainerMigrationPlan Cmdlet 會開始建立移轉計劃。 建立移轉計劃是異步的。 若要查看移轉計劃的狀態,請使用 Get-AzureStorSimpleLegacyVolumeContainerMigrationPlan Cmdlet。

範例

範例 1:啟動移轉計劃

PS C:\>Start-AzureStorSimpleLegacyVolumeContainerMigrationPlan -LegacyConfigId "c5a831e1-7888-44f4-adf1-92994be630c3" -LegacyContainerNames "OneSDKAzureCloud"
Successfully started estimating the Migration Plan. Please check details with Get-AzureStorSimpleLegacyVolumeContainerMigrationPlan

此命令會開始為名為 OneSDKAzureCloud 的舊版容器建立移轉計畫。 此命令會傳回有關計劃狀態的訊息,並使用 Get-AzureStorSimpleLegacyVolumeContainerMigrationPlan Cmdlet 取得最新資訊。

範例 2:啟動所有磁碟區容器的移轉計劃

PS C:\>Start-AzureStorSimpleLegacyVolumeContainerMigrationPlan -LegacyConfigId "c5a831e1-7888-44f4-adf1-92994be630c3" -All
Successfully started estimating the Migration Plan. Please check details with Get-AzureStorSimpleLegacyVolumeContainerMigrationPlan

此命令會開始針對匯入的組態檔中的所有舊版磁碟區容器建立移轉計劃。

參數

-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

-Profile

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

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

輸入

None

輸出

String

如果已在設備中成功啟動,此 Cmdlet 會傳回移轉計劃作業的狀態。