You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/common/storage-use-data-movement-library.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ The Data Movement library is only available for .NET, and only supports Azure Bl
22
22
23
23
If you're migrating code from the older **Microsoft.Azure.Storage.DataMovement** library (version 2.X.X) to the current **Azure.Storage.DataMovement** library (version 12.X.X), see the [Migration guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.DataMovement/MigrationGuide.md#migration-guide-from-microsoftazurestoragedatamovement-to-azurestoragedatamovement).
To run the code examples in this article, add the following `using` directives:
50
56
51
57
```csharp
52
58
usingAzure;
@@ -56,6 +62,12 @@ using Azure.Storage.DataMovement;
56
62
usingAzure.Storage.DataMovement.Blobs;
57
63
```
58
64
65
+
If you're using the extension library for Azure Files, add the following `using` directive:
66
+
67
+
```csharp
68
+
usingAzure.Storage.DataMovement.Files.Shares;
69
+
```
70
+
59
71
#### Authorization
60
72
61
73
The authorization mechanism must have the necessary permissions to perform upload, download, or copy operations. For authorization with Microsoft Entra ID (recommended), you need Azure RBAC built-in role **Storage Blob Data Contributor** or higher.
@@ -371,4 +383,4 @@ To learn more about the extension methods for `BlobContainerClient`, see [Extens
371
383
372
384
## Next step
373
385
374
-
- Code samples for [Blobs](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.DataMovement.Blobs/samples) and [Files](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.DataMovement.Files.Shares/samples) are available in the Azure SDK for .NET GitHub repository.
386
+
- Code samples for [DataMovement.Blobs](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.DataMovement.Blobs/samples) and [DataMovement.Files.Shares](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.DataMovement.Files.Shares/samples) are available in the Azure SDK for .NET GitHub repository.
0 commit comments