Closed jeromezliu closed 3 years ago
Additionally, if Set-AzStorageBlobContent executed before New-Object System.Windows.Forms.Form, everything is good.
@lzy8513 Thanks for reporting this issue! I can repro this issue locally. It looks the hang happens on a depends library of Azure Powershell. I will need more time to look deeper into it.
There's a workaround, in my test if you run the cmdlet async with -Asjob, then wait for upload complete, the job won't hang:
$task = Set-AzStorageBlobContent -Container $containerName -Blob $blobName -File $localSrcFile -Context $ctx -Force -asjob
$task | Wait-Job
@blueww Thanks for the help. It works in my end.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.
Author: | lzy8513 |
---|---|
Assignees: | blueww |
Labels: | `Service Attention`, `Storage`, `customer-reported`, `question` |
Milestone: | - |
@EmmaZhu
Would you please help to follow up the hang issue?
We suspect this is an issue in .Net framework, and we made a simple repro and opened an issue in .Net repository: https://github.com/dotnet/sdk/issues/19494
Description
When use Set-AzStorageBlobContent after New-Object System.Windows.Forms.Form, the upload command will never stop as the screenshot below.
The upload operation is successful actually.
Please find the sample code below.
Steps to reproduce
sample code
Environment data
PowerShell Version
Module versions
Az.Storage Version
Debug output
Please find in the screenshot below.
Other
Please let me know if you need any other information. jerome.liu@microsoft.com