Azure Data Lake Storage CLI Reference
This reference provides detailed information on the Azure CLI commands for interacting with Azure Data Lake Storage Gen2.
Core Commands
Manage your Data Lake Storage resources using the following core commands.
az storage fs access show --account-name --acl --file-system --path
Shows the Access Control List (ACL) for a file or directory in Azure Data Lake Storage Gen2.
az storage fs access set --account-name --acl --file-system --path
Sets the Access Control List (ACL) for a file or directory in Azure Data Lake Storage Gen2.
az storage fs blob inventory list --account-name --file-system
Lists blob inventory configuration for a file system in Azure Data Lake Storage Gen2.
az storage fs blob inventory policy set --account-name --file-system --container
Sets a blob inventory policy for a file system in Azure Data Lake Storage Gen2.
az storage fs create --account-name --name
Creates a file system (container) in Azure Data Lake Storage Gen2.
File System Operations
Commands for managing file systems (containers).
| Command | Description |
|---|---|
az storage fs delete |
Deletes a file system (container) in Azure Data Lake Storage Gen2. |
az storage fs list |
Lists all file systems (containers) in Azure Data Lake Storage Gen2. |
az storage fs show |
Shows details of a specific file system (container). |
Directory and File Operations
Manage directories and files within your file systems.
| Command | Description |
|---|---|
az storage fs directory create |
Creates a directory in Azure Data Lake Storage Gen2. |
az storage fs directory delete |
Deletes a directory in Azure Data Lake Storage Gen2. |
az storage fs directory list |
Lists directories and files within a specified path. |
az storage fs file upload |
Uploads a file to Azure Data Lake Storage Gen2. |
az storage fs file download |
Downloads a file from Azure Data Lake Storage Gen2. |
az storage fs file delete |
Deletes a file in Azure Data Lake Storage Gen2. |
az storage fs file show |
Shows details of a file. |
Common Parameters
Most commands require the following parameters:
- --account-name: The name of your Azure Storage account.
- --file-system: The name of the file system (container) to operate on.
- --path: The path within the file system to the directory or file.
- --acl: The Access Control List string.
Learn More
For more comprehensive documentation, including authentication, permissions, and advanced scenarios, please refer to the official Azure Data Lake Storage Gen2 documentation.