diff --git a/data-explorer/kusto/management/data-ingestion/list-blobs.md b/data-explorer/kusto/management/data-ingestion/list-blobs.md index 2dc950838a..456a29cb5d 100644 --- a/data-explorer/kusto/management/data-ingestion/list-blobs.md +++ b/data-explorer/kusto/management/data-ingestion/list-blobs.md @@ -3,7 +3,7 @@ title: .list blobs command (list blobs from storage) description: Learn how to use the list blobs from storage command. ms.reviewer: vplauzon ms.topic: reference -ms.date: 04/25/2025 +ms.date: 06/03/2025 --- # .list blobs command (preview) @@ -124,17 +124,28 @@ The following command lists a maximum of 10 blobs of type `.parquet` from a fold ```kusto .list blobs ( - "https://mystorageaccount.blob.core.windows.net/datasets/myfolder;managed_identity=system" + "https://mystorageaccount.blob.core.windows.net/spark/myfolder;managed_identity=system" ) Suffix=".parquet" MaxFiles=10 PathFormat=("myfolder/year=" datetime_pattern("yyyy'/month='MM'/day='dd", creationTime) "/") ``` -The `PathFormat` in the example can extract dates from a path such as the following path: +The `PathFormat` parameter can extract dates from various folder hierarchies, such as: -``` -https://mystorageaccount.blob.core.windows.net/datasets/myfolder/year=2024/month=03/day=16/myblob.parquet +* *Spark* folder paths, for example: `https://mystorageaccount.blob.core.windows.net/spark/myfolder/year=2024/month=03/day=16/myblob.parquet` + +* Common folder paths, for example: `https://mystorageaccount.blob.core.windows.net/datasets/export/2024/03/16/03/myblob.parquet` where the hour `03` is included in the path. + +You can extract the creation time with the following command: + +```kusto +.list blobs ( + "https://mystorageaccount.blob.core.windows.net/datasets/export;managed_identity=system" +) +Suffix=".parquet" +MaxFiles=10 +PathFormat=("datasets/export/" datetime_pattern("yyyy'/'MM'/'dd'/'HH", creationTime) "/") ``` ## Related content