Azure Data Lake Storage SDK for .NET - Authentication

Learn how to authenticate your applications when accessing Azure Data Lake Storage Gen2.

Authentication Methods

The Azure Data Lake Storage SDK for .NET provides several ways to authenticate your applications before accessing your Data Lake Storage Gen2 account. Choosing the right method depends on your application's needs and security requirements.

Authentication Options

  1. Shared Access Signatures (SAS)

    SAS tokens provide controlled access to data in your Data Lake Storage Gen2 account. They are a flexible and secure way to grant temporary access without sharing credentials.

    Learn more about SAS tokens.

  2. Managed Identity

    Managed identities allow your Azure resources (like Azure VMs, App Service plans, and Azure Functions) to authenticate to Azure services, including Data Lake Storage Gen2, without the need to manage credentials directly.

    Learn more about Managed Identities.

Best Practices

Always follow security best practices when working with Data Lake Storage Gen2 credentials. Minimize the permissions granted by SAS tokens and leverage Managed Identities whenever possible. Regularly review and rotate your SAS tokens.