Skip to content

Commit 964406b

Browse files
Edits
1 parent adf417e commit 964406b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

articles/storage/files/storage-dotnet-how-to-use-files.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to develop .NET applications and services that use Azure
55
author: pauljewellmsft
66
ms.service: azure-file-storage
77
ms.topic: conceptual
8-
ms.date: 03/13/2025
8+
ms.date: 03/31/2025
99
ms.author: pauljewell
1010
ms.devlang: csharp
1111
ms.custom: devx-track-csharp, devx-track-dotnet
@@ -261,11 +261,11 @@ static void LockFile(string filePath)
261261
}
262262
```
263263
264-
When using both SMB and the FileREST API, be aware that the FileREST API uses [leases](#example-lease-a-file-using-the-file-shares-client-library) to manage file locks, while SMB uses file system locks managed by the operating system. To learn more about managing file locking interactions between SMB and the FileREST API, see [Manage file locks](/rest/api/storageservices/managing-file-locks).
264+
When using both SMB and the FileREST API, keep in mind that the FileREST API uses [leases](#example-lease-a-file-using-the-file-shares-client-library) to manage file locks, while SMB uses file system locks managed by the operating system. To learn more about managing file locking interactions between SMB and the FileREST API, see [Manage file locks](/rest/api/storageservices/managing-file-locks).
265265
266266
### Example: Enumerate file ACLs using System.IO
267267
268-
The following code example shows how to enumerate ACLs for a file:
268+
The following code example shows how to enumerate access control lists (ACLs) for a file:
269269
270270
```csharp
271271
using System.IO;
@@ -393,7 +393,7 @@ ShareClient shareClient = new ShareClient(connectionString, shareName);
393393
For information about how to obtain account keys and best practice guidelines for properly managing and safeguarding your keys, see [Manage storage account access keys](../common/storage-account-keys-manage.md).
394394
395395
> [!IMPORTANT]
396-
> The account access key should be used with caution. If your account access key is lost or accidentally placed in an insecure location, your service may become vulnerable. Anyone who has the access key is able to authorize requests against the storage account, and effectively has access to all the data. `DefaultAzureCredential` provides enhanced security features and benefits and is the recommended approach for managing authorization to Azure services.
396+
> The account access key should be used with caution. If your account access key is lost or accidentally placed in an insecure location, your service can become vulnerable. Anyone who has the access key is able to authorize requests against the storage account, and effectively has access to all the data. `DefaultAzureCredential` provides enhanced security features and benefits and is the recommended approach for managing authorization to Azure services.
397397
398398
---
399399
@@ -449,7 +449,7 @@ await destShareFileClient.StartCopyAsync(srcShareFileClient.Uri);
449449
450450
A lease creates a lock on a file that's managed by Azure via a lease ID. The lease provides a mechanism to coordinate access to files across multiple clients in a distributed system. A lease on a file provides exclusive write and delete access. To learn more about lease states and actions, see [Lease File](/rest/api/storageservices/lease-file#remarks).
451451
452-
The following code example shows how to create a lease client, acquire a infinite duration lease on a file, and release the lease:
452+
The following code example shows how to create a lease client, acquire an infinite duration lease on a file, and release the lease:
453453
454454
```csharp
455455
using Azure.Core;
@@ -485,7 +485,7 @@ await leaseClient.AcquireAsync(duration: ShareLeaseClient.InfiniteLeaseDuration)
485485
await leaseClient.ReleaseAsync();
486486
```
487487
488-
When using both SMB and the FileREST API, be aware that the FileREST API uses [leases](#example-lease-a-file-using-the-file-shares-client-library) to manage file locks, while SMB uses file system locks managed by the operating system. To learn more about managing file locking interactions between SMB and the FileREST API, see [Manage file locks](/rest/api/storageservices/managing-file-locks).
488+
When using both SMB and the FileREST API, keep in mind that the FileREST API uses [leases](#example-lease-a-file-using-the-file-shares-client-library) to manage file locks, while SMB uses file system locks managed by the operating system. To learn more about managing file locking interactions between SMB and the FileREST API, see [Manage file locks](/rest/api/storageservices/managing-file-locks).
489489
490490
### Example: Create and list share snapshots using the File Shares client library
491491

articles/storage/files/storage-files-developer-overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to develop applications and services that use Azure Files
55
author: pauljewellmsft
66
ms.service: azure-file-storage
77
ms.topic: conceptual
8-
ms.date: 03/13/2025
8+
ms.date: 03/31/2025
99
ms.author: pauljewell
1010
---
1111

@@ -19,7 +19,7 @@ Azure Files offers several ways for developers to access data and manage resourc
1919

2020
| Approach | How it works | When to use |
2121
| --- | --- | --- |
22-
| [Standard file I/O libraries](#standard-file-io-libraries) | Uses OS-level API calls through Azure file shares mounted using SMB or NFS. When you mount a file share using SMB/NFS, you can use file I/O libraries for a programming language or framework, such as `System.IO` for .NET, `os` and `io` for Python, `java.io` for Java, or `fs` for JavaScript (Node.js). | You have line-of-business apps with existing code that uses standard file I/O, and you don't want to rewrite code for the app to work with an Azure file share. |
22+
| [Standard file I/O libraries](#standard-file-io-libraries) | Uses OS-level API calls through Azure file shares mounted using the industry standard Server Message Block (SMB) and Network File System (NFS) protocols. When you mount a file share using SMB/NFS, you can use file I/O libraries for a programming language or framework, such as `System.IO` for .NET, `os` and `io` for Python, `java.io` for Java, or `fs` for JavaScript (Node.js). | You have line-of-business apps with existing code that uses standard file I/O, and you don't want to rewrite code for the app to work with an Azure file share. |
2323
| [FileREST API](#filerest-api)| Directly calls HTTPS endpoints to interact with data stored in Azure Files. Provides programmatic control over file share resources. The Azure SDK provides client libraries that build on the FileREST API, allowing you interact with FileREST API operations through familiar programming language paradigms. | You're building value-added cloud services and apps for customers and you want to use advanced features not available through native protocols. |
2424
| [Storage resource provider REST API](#storage-resource-provider-rest-api) | Uses Azure Resource Manager (ARM) to manage storage accounts and file shares. Calls REST API endpoints for various resource management operations. | Your app or service needs to perform resource management tasks, such as creating, deleting, or updating storage accounts or file shares. |
2525

@@ -60,7 +60,7 @@ The Azure SDK provides two sets of libraries for working with Azure Files resour
6060

6161
### Libraries for data access
6262

63-
Data plane libraries are designed to handle data access operations at the *directory* or *file* level. The following section shows the File Shares client library for .NET, Java, Python, JavaScript, and Go.
63+
Data plane libraries are designed to handle data access operations at the *directory* or *file* level. The following sections show the File Shares client library for .NET, Java, Python, JavaScript, and Go.
6464

6565
### [.NET](#tab/dotnet)
6666

@@ -114,7 +114,7 @@ The following table shows the File Shares client library for data access:
114114

115115
Control plane libraries build on top of the Azure Storage resource provider REST API, allowing you to manage Azure Storage resources. The Azure Storage resource provider is a service that is based on [Azure Resource Manager](/azure/azure-resource-manager/management/overview), and supports both declarative (templates) and imperative (direct API call) methods.
116116

117-
Resource management libraries are designed to handle resource management operations at the *file service* or *file share* level. To learn more about the operations, see [File Services](/rest/api/storagerp/file-services) or [File Shares](/rest/api/storagerp/file-shares). The following section shows the Azure Storage management libraries for .NET, Java, Python, JavaScript, and Go.
117+
Resource management libraries are designed to handle resource management operations at the *file service* or *file share* level. To learn more about the operations, see [File Services](/rest/api/storagerp/file-services) or [File Shares](/rest/api/storagerp/file-shares). The following sections show the Azure Storage management libraries for .NET, Java, Python, JavaScript, and Go.
118118

119119
## [.NET](#tab/dotnet)
120120

0 commit comments

Comments
 (0)