共用方式為


Import-AzureStorSimpleLegacyVolumeContainer

開始移轉磁碟區容器。

注意

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

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

語法

Import-AzureStorSimpleLegacyVolumeContainer
      -LegacyConfigId <String>
      -LegacyContainerNames <String[]>
      [-SkipACRs]
      [-Force]
      [-Profile <AzureSMProfile>]
      [<CommonParameters>]
Import-AzureStorSimpleLegacyVolumeContainer
      -LegacyConfigId <String>
      [-All]
      [-SkipACRs]
      [-Force]
      [-Profile <AzureSMProfile>]
      [<CommonParameters>]

Description

Import-AzureStorSimpleLegacyVolumeContainer Cmdlet 會開始將磁碟區容器從舊版設備移轉至目標設備。

範例

範例 1:匯入舊版磁碟區容器

PS C:\>Import-AzureStorSimpleLegacyVolumeContainer -LegacyConfigId "c5a831e1-7888-44f4-adf1-92994be630c3" -LegacyContainerNames "OneSDKAzureCloud"
Import started, Please check status with Get-AzureStorSimpleLegacyVolumeContainerStatus commandlet

此命令會匯入具名容器的舊版磁碟區容器。 Cmdlet 會啟動匯入,然後傳回訊息。

範例 2:匯入所有舊版磁碟區容器

PS C:\>Import-AzureStorSimpleLegacyVolumeContainer -LegacyConfigId "c5a831e1-7888-44f4-adf1-92994be630c3" -All
Import started, Please check status with Get-AzureStorSimpleLegacyVolumeContainerStatus commandlet

此命令會從匯入的組態檔匯入所有舊版磁碟區容器。 Cmdlet 會啟動匯入,然後傳回訊息。

參數

-All

指出此 Cmdlet 會將匯入組態檔中的所有磁碟區容器匯入目標裝置。

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

-Force

表示此 Cmdlet 會在不同的裝置上匯入磁碟區容器,即使磁碟區容器已在不同的裝置上匯入也一樣。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入: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

-SkipACRs

表示匯入程式會略過移轉的訪問控制記錄。

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

輸出

String

如果已在設備中成功啟動,此命令會傳回移轉匯入磁碟區容器作業的狀態。