Overview

In this article, we are going to learn about the differences between Storage Account and Azure Data Lake Gen2 services.

1. Overview of Storage Account and When to Use It?

Azure Storage Account is a foundational service that provides scalable, durable, and secure storage for a wide range of data types. It offers services such as:

When to Use a Storage Account?

2. Overview of Azure Data Lake Storage (ADLS) Gen2 and When to Use It

Azure Data Lake Storage Gen2 builds on the capabilities of Azure Blob Storage but is specifically optimized for analytics workloads. Its key feature is the hierarchical namespace, which supports directory structures similar to how we organize (nested) Folders and files in our computers, allowing faster processing for big data operations.

When to Use ADLS Gen2

3. Creating a Storage Account and ADLS Gen2

Creating a Storage Account and ADLS Gen2 in the Azure Portal. The process is the same for creating the Storage Account and ADLS Gen2, except for one property called Hierarchical Namespace.

Steps to Create a Storage Account

  1. Log in to the Azure Portal.
  2. Navigate to Storage Accounts and click Create.
  3. Fill in the required fields:
    • Resource Group: Choose or create one.
    • Storage Account Name: Enter a globally unique name.
    • Primary Service: Azure Blob Storage or Azure Data Lake Gen2
    • Region: Select the closest region.
    • Performance/Replication: Choose the desired performance and replication strategy.
  4. Click Review + Create, then Create.

Steps to Create an ADLS Gen2 Account

  1. Follow the same steps as above but under Advanced settings:
    • Enable Hierarchical Namespace as shown below.
    • Create a storage account

4. Creating Folders in Storage Accounts and ADLS Gen2

What is ACL in ADLS Gen2?

Access Control Lists (ACLs) provide fine-grained access permissions to directories and files in ADLS Gen2. Unlike Role-Based Access Control (RBAC), which operates at the account level, ACLs allow you to define access for specific users or service principals or Microsoft Entra Groups at a more granular level.

Setting ACLs in ADLS Gen2

  1. Navigate to the ADLS Gen2 account in the portal.
  2. Go to the Containers section, select a directory or file, and click Access Control (IAM).
  3. Set Read, Write or Execute permissions for users/groups.

Summary

Azure Storage Accounts and ADLS Gen2 are powerful tools for managing data in the cloud. While Storage Accounts cater to general-purpose storage needs, ADLS Gen2 is designed for analytics-heavy workloads with its hierarchical namespace and fine-grained ACL capabilities. Selecting the right service depends on your workload requirements and data processing needs.