Set-SPOMigrationPackageAzureSource
Cmdlet 可建立 Azure 容器、將移轉套件檔案上傳至適當的容器,並快照集上傳的內容。
Syntax
Set-SPOMigrationPackageAzureSource
-AccountKey <String>
-AccountName <String>
[-AzureQueueName <String>]
[-EncryptionMetaInfo <MigrationFileEncryptionInfo[]>]
[-EncryptionParameters <EncryptionParameters>]
[-FileContainerName <String>]
-MigrationSourceLocations <MigrationPackageLocation>
[-NoLogFile]
[-NoSnapshotCreation]
[-NoUpload]
[-Overwrite]
[-PackageContainerName <String>]
[<CommonParameters>]
Set-SPOMigrationPackageAzureSource
-AccountKey <String>
-AccountName <String>
[-AzureQueueName <String>]
[-EncryptionMetaInfo <MigrationFileEncryptionInfo[]>]
[-EncryptionParameters <EncryptionParameters>]
[-FileContainerName <String>]
[-NoLogFile]
[-NoSnapshotCreation]
[-NoUpload]
[-Overwrite]
[-PackageContainerName <String>]
-SourceFilesPath <String>
-SourcePackagePath <String>
[<CommonParameters>]
Set-SPOMigrationPackageAzureSource
[-EncryptionMetaInfo <MigrationFileEncryptionInfo[]>]
[-EncryptionParameters <EncryptionParameters>]
-MigrationPackageAzureLocations <MigrationPackageAzureLocations>
-MigrationSourceLocations <MigrationPackageLocation>
[-NoLogFile]
[-NoSnapshotCreation]
[-NoUpload]
[-Overwrite]
[<CommonParameters>]
Set-SPOMigrationPackageAzureSource
[-EncryptionMetaInfo <MigrationFileEncryptionInfo[]>]
[-EncryptionParameters <EncryptionParameters>]
-MigrationPackageAzureLocations <MigrationPackageAzureLocations>
[-NoLogFile]
[-NoSnapshotCreation]
[-NoUpload]
[-Overwrite]
-SourceFilesPath <String>
-SourcePackagePath <String>
[<CommonParameters>]
Description
此 Cmdlet 包含一個以上的參數集。 您可能只會使用到一個參數集中的參數,而且您無法合併不同參數集中的參數。 如需如何使用參數集的詳細資訊,請參閱 Cmdlet 參數集。
這個 Cmdlet 會傳回 Microsoft.Online.SharePoint.Migration。 MigrationPackageAzureLocations 物件,可作為此 Cmdlet 的來源,或更常用來作為 Cmdlet 的 Submit-SPOMigrationJob
來源。
範例
範例 1
$azurelocations = Set-SPOMigrationPackageAzureSource -SourcePath \\fileserver\share\folder1 -OutputPackagePath d:\MigrationPackages\Folder1_TgtPkg -FileContainerUri migration-files -PackageContainerUri migration-package -AccountName migrationstore -AccountKey "nmcXQ+1NctB7BlRVm+8+qWUn6GUFIH7E5ZQPThcjg8SfFWTJ34HthyOEoROwxHYIajpOYxYDt7qUwSEBQlLWoA=="
此範例會使用提供的帳號憑證,在 Azure 儲存體中建立移轉套件容器、將套件檔案上傳至其中、將檔案快照集化,最後將連接字串傳回 PowerShell 變數。
範例 2
Set-SPOMigrationPackageAzureSource -SourcePath \\fileserver\share\folder1 -OutputPackagePath d:\MigrationPackages\Folder1_TgtPkg -MigrationPackageAzureLocations $azurelocations -AccountName migrationstore -AccountKey "nmcXQ+1NctB7BlRVm+8+qWUn6GUFIH7E5ZQPThcjg8SfFWTJ34HthyOEoROwxHYIajpOYxYDt7qUwSEBQlLWoA==" -NoUpload
本範例會在 Azure 存放區中使用現有的移轉封裝容器,以快照先前上傳的檔案,然後將連接字串傳回給 PowerShell 變數。
參數
-AccountKey
Azure 儲存體帳戶的帳戶金鑰。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-AccountName
Azure 儲存體帳戶的帳戶名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-AzureQueueName
Azure 儲存體報告佇列的選用名稱,而匯入作業將在匯入期間列出其中事件。 此值必須是小寫,並符合 Azure 的佇列命名規則。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-EncryptionMetaInfo
PARAMVALUE:MigrationFileEncryptionInfo[]
Type: | MigrationFileEncryptionInfo[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-EncryptionParameters
EncryptionParameters 物件。 如需詳細資訊,請參閱 New-SPOMigrationEncryptionParameters 。
Type: | EncryptionParameters |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-FileContainerName
Azure Blob 儲存體容器的選用名稱 (如果目前不存在,則會建立)。 它將保留上傳的封裝內容檔案。 此值必須是小寫,並符合 Azure 的容器命名規則。 如果未提供此名稱,則會使用 -files 格式產生名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-MigrationPackageAzureLocations
一組完整的 URL 及 SA 權杖,代表 Azure Blob 儲存體容器,其中包含封裝內容和中繼資料檔案,以及選用的 Azure 儲存體報告佇列。 此物件會在成功處理 期間傳回 Set-SPOMigrationPackageAzureSource
Type: | MigrationPackageAzureLocations |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-MigrationSourceLocations
可能要移轉的來源位置。
Type: | MigrationPackageLocation |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-NoLogFile
表示不要建立記錄檔。 預設值就是在 SourcePackagePath 參數內指定的目錄內建立新的 CopyMigrationPackage 記錄檔。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-NoSnapshotCreation
表示不要對容器中的內容執行快照。 預設值就是快照容器中的每個封裝檔案。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-NoUpload
表示不要上傳封裝檔案。 預設值就是上傳所有封裝檔案。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Overwrite
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-PackageContainerName
Azure Blob 儲存體容器的選用名稱 (如果目前不存在,則會建立)。 它將保留上傳的封裝中繼資料檔案。 此值必須是小寫,並符合 Azure 的容器命名規則。 如果未提供此名稱,則會使用 -package 格式產生名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SourceFilesPath
套件來源內容檔案所在的目錄位置。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SourcePackagePath
套件中繼資料檔案所在的目錄位置。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
輸入
None
輸出
System.Object