我在 Azure Webjob 中的 powershell 脚本下运行以连接到存储帐户并上传文件
Write-Output "Getting Azure storage context..."
$storageContext = New-AzureStorageContext -StorageAccountName "awemigcitest" -StorageAccountKey "xx+74Z81YJf373p88Emp2jKidMZ8b4/+UTLJT4Rvgqrc8IedRxkg=="
$ProgressPreference="SilentlyContinue"
Set-AzureStorageBlobContent -Blob $azureBlobStorageFileName -File $tempFilename -Container $MigrationReportsContainerName -Context $storageContext -Force
Write-Output "Copied HTML file to Azure blob storage."
但低于错误。对此有任何想法吗?
New-AzureStorageContext:为控制台输出缓冲区设置字符属性时发生 Win32 内部错误“句柄无效”0x6 [09/30/2017 06:41:20 > 4db5e9: ERR]。