Set-AzStorageFileContent corrupting files when using OAuth #24289
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Storage
Description
Using
Set-AzStorageFileContent
to upload a file when using OAuth authentication (a storage context with-UseConnectedAccount -EnableFileBackupRequestIntent
) can cause the uploaded file to be corrupt. Seems to happen consistently for files that are over 8MiB in size. If I swap to using a storage key, it works fine.Having a look at the source, it looks like a buffer is being reused as the file is uploaded in blocks concurrently. So as the one block is being uploaded, the buffer is being overwritten with the next block from the file.
Issue script & Debug output
Environment data
Module versions
Error output
No response
The text was updated successfully, but these errors were encountered: