gpt4 book ai didi

powershell - 将本地内容上传到 SharePoint Online 如何检索日志(使用 powershell)

转载 作者:行者123 更新时间:2023-12-02 23:10:58 25 4
gpt4 key购买 nike

基于以下article我正在将文件服务器信息上传到 SharePoint Online。除了步骤 7:处理和监控您的 SPO 迁移之外,一切正常。那里的描述是:

Checking job status You can check the status of your job by viewing the real time updates posted in the Azure storage account queue by using the Encryption.EncryptionKey returned in step 6.

Viewing logs If you’re using your own Azure storage account, you can look into the manifest container in the Azure Storage for logs of everything that happened. At this stage, it is now safe to delete those containers if you don’t want to keep them as backup in Azure.

If there were errors or warnings, .err and .wrn files will be created in the manifest container.

If you’re using the temporary Azure storage created by Invoke-SPOMigrationEncryptUploadSubmit in step 6, the import log SAS URL can be obtained by decrypting the Azure queue message with the “Event” value “JobLogFileCreate”. With the import log SAS URL, you can download the log file and decrypt it with the same encryption key as returned in Step 6.

我有 EncryptionKey 和 ReportingQueueUri,没有说明如何使用它们,尝试使用 Azure 存储资源管理器打开报告队列,但它在那里全部加密,并且没有使用 EncryptionKey 的选项。

如果有人这样做或知道如何做,我真的很感激一些帮助。

最佳答案

必须使用另外两个 cmdlet:Get-SPOMigrationJobProgressGet-SPOMigrationJobStatus

$job = Invoke-SPOMigrationEncryptUploadSubmit       `
-SourceFilesPath $sourceFiles `
-SourcePackagePath $targetPackage `
-Credentials $creds `
-TargetWebUrl $targetWebUrl

$encryption = $job.Encryption

$queueLink = $job.ReportingQueueUri.AbsoluteUri

$jobID = $job.jobid

Get-SPOMigrationJobProgress -AzureQueueUri $queueLink `
-Credentials $creds `
-TargetWebUrl $targetWebUrl `
-JobIds $jobID `
-EncryptionParameters $encryption

Get-SPOMigrationJobStatus -TargetWebUrl $targetWebUrl -Credentials $creds -JobId $jobID

关于powershell - 将本地内容上传到 SharePoint Online 如何检索日志(使用 powershell),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40996811/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com