Skip to content

Commit 257047c

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/dataexplorer-docs-pr (branch live)
2 parents 986289c + 4074f47 commit 257047c

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

data-explorer/kusto/management/data-ingestion/list-blobs.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: .list blobs command (list blobs from storage)
33
description: Learn how to use the list blobs from storage command.
44
ms.reviewer: vplauzon
55
ms.topic: reference
6-
ms.date: 04/25/2025
6+
ms.date: 06/03/2025
77
---
88
# .list blobs command (preview)
99

@@ -124,17 +124,28 @@ The following command lists a maximum of 10 blobs of type `.parquet` from a fold
124124

125125
```kusto
126126
.list blobs (
127-
"https://mystorageaccount.blob.core.windows.net/datasets/myfolder;managed_identity=system"
127+
"https://mystorageaccount.blob.core.windows.net/spark/myfolder;managed_identity=system"
128128
)
129129
Suffix=".parquet"
130130
MaxFiles=10
131131
PathFormat=("myfolder/year=" datetime_pattern("yyyy'/month='MM'/day='dd", creationTime) "/")
132132
```
133133

134-
The `PathFormat` in the example can extract dates from a path such as the following path:
134+
The `PathFormat` parameter can extract dates from various folder hierarchies, such as:
135135

136-
```
137-
https://mystorageaccount.blob.core.windows.net/datasets/myfolder/year=2024/month=03/day=16/myblob.parquet
136+
* *Spark* folder paths, for example: `https://mystorageaccount.blob.core.windows.net/spark/myfolder/year=2024/month=03/day=16/myblob.parquet`
137+
138+
* 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.
139+
140+
You can extract the creation time with the following command:
141+
142+
```kusto
143+
.list blobs (
144+
"https://mystorageaccount.blob.core.windows.net/datasets/export;managed_identity=system"
145+
)
146+
Suffix=".parquet"
147+
MaxFiles=10
148+
PathFormat=("datasets/export/" datetime_pattern("yyyy'/'MM'/'dd'/'HH", creationTime) "/")
138149
```
139150

140151
## Related content

0 commit comments

Comments
 (0)