diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index 47aecc69499b..1786331ca6a8 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fixed upload blob fail by upgrade to Microsoft.Azure.Storage.DataMovement 2.0.0 [#12220] * Supported Point In Time Restore - Enable-AzStorageBlobRestorePolicy - Disable-AzStorageBlobRestorePolicy diff --git a/src/Storage/Storage.Management/Storage.Management.csproj b/src/Storage/Storage.Management/Storage.Management.csproj index 8855f21bff7c..dd2ef4d33d30 100644 --- a/src/Storage/Storage.Management/Storage.Management.csproj +++ b/src/Storage/Storage.Management/Storage.Management.csproj @@ -15,9 +15,9 @@ - - - + + + diff --git a/src/Storage/Storage.Test/Storage.Test.csproj b/src/Storage/Storage.Test/Storage.Test.csproj index 2a378e5d6702..e2c49a8afd7e 100644 --- a/src/Storage/Storage.Test/Storage.Test.csproj +++ b/src/Storage/Storage.Test/Storage.Test.csproj @@ -14,9 +14,9 @@ - - - + + + diff --git a/src/Storage/Storage/Blob/Cmdlet/SetAzureStorageBlobContent.cs b/src/Storage/Storage/Blob/Cmdlet/SetAzureStorageBlobContent.cs index ec881ffc50c3..1a6fffa2181a 100644 --- a/src/Storage/Storage/Blob/Cmdlet/SetAzureStorageBlobContent.cs +++ b/src/Storage/Storage/Blob/Cmdlet/SetAzureStorageBlobContent.cs @@ -247,7 +247,7 @@ internal virtual async Task Upload2Blob(long taskId, IStorageBlobManagement loca SingleTransferContext transferContext = this.GetTransferContext(data); #pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously - transferContext.SetAttributesCallbackAsync = async (destination) => + transferContext.SetAttributesCallbackAsync = async (source, destination) => #pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously { CloudBlob destBlob = destination as CloudBlob; diff --git a/src/Storage/Storage/DatalakeGen2/Cmdlet/NewAzDataLakeGen2Item.cs b/src/Storage/Storage/DatalakeGen2/Cmdlet/NewAzDataLakeGen2Item.cs index 4a86d2cac0d9..1912033d8092 100644 --- a/src/Storage/Storage/DatalakeGen2/Cmdlet/NewAzDataLakeGen2Item.cs +++ b/src/Storage/Storage/DatalakeGen2/Cmdlet/NewAzDataLakeGen2Item.cs @@ -314,7 +314,7 @@ internal virtual async Task Upload2Blob(long taskId, IStorageBlobManagement loca SingleTransferContext transferContext = this.GetTransferContext(data); #pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously - transferContext.SetAttributesCallbackAsync = async (destination) => + transferContext.SetAttributesCallbackAsync = async (source, destination) => #pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously { CloudBlob destBlob = destination as CloudBlob; diff --git a/src/Storage/Storage/Storage.csproj b/src/Storage/Storage/Storage.csproj index 8ee2047c1849..60fe6c6d7452 100644 --- a/src/Storage/Storage/Storage.csproj +++ b/src/Storage/Storage/Storage.csproj @@ -18,9 +18,9 @@ - - - + + + diff --git a/src/lib/Microsoft.Azure.Storage.DataMovement.dll b/src/lib/Microsoft.Azure.Storage.DataMovement.dll index c1822d798630..39b81f7709e2 100644 Binary files a/src/lib/Microsoft.Azure.Storage.DataMovement.dll and b/src/lib/Microsoft.Azure.Storage.DataMovement.dll differ