Skip to content

Commit 299e9d2

Browse files
Edits
1 parent 30d4c00 commit 299e9d2

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

articles/storage/common/storage-use-data-movement-library.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The Data Movement library is only available for .NET, and only supports Azure Bl
2222

2323
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).
2424

25-
[API reference docs](/dotnet/api/azure.storage.datamovement) | [Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.DataMovement) | [Package (NuGet)](https://www.nuget.org/packages/Azure.Storage.DataMovement) | Samples: [Blobs](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.DataMovement.Blobs/samples) / [Files](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.DataMovement.Files.Shares/samples)
25+
[API reference docs](/dotnet/api/azure.storage.datamovement) | [Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.DataMovement) | [Package (NuGet)](https://www.nuget.org/packages/Azure.Storage.DataMovement) | Samples: [DataMovement.Blobs](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.DataMovement.Blobs/samples) / [DataMovement.Files.Shares](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.DataMovement.Files.Shares/samples)
2626

2727
## Prerequisites
2828

@@ -44,9 +44,15 @@ dotnet add package Azure.Storage.DataMovement.Blobs
4444
dotnet add package Azure.Identity
4545
```
4646

47+
To work with extension library for Azure Files, install the **Azure.Storage.DataMovement.Files.Shares** package:
48+
49+
```dotnetcli
50+
dotnet add package Azure.Storage.DataMovement.Files.Shares
51+
```
52+
4753
#### Add `using` directives
4854

49-
Add these `using` directives to your code file:
55+
To run the code examples in this article, add the following `using` directives:
5056

5157
```csharp
5258
using Azure;
@@ -56,6 +62,12 @@ using Azure.Storage.DataMovement;
5662
using Azure.Storage.DataMovement.Blobs;
5763
```
5864

65+
If you're using the extension library for Azure Files, add the following `using` directive:
66+
67+
```csharp
68+
using Azure.Storage.DataMovement.Files.Shares;
69+
```
70+
5971
#### Authorization
6072

6173
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
371383

372384
## Next step
373385

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

Comments
 (0)