Azure / Azure/azure-powershell
[Feature]: Get-AzDataLakeGen2ChildItem with -Recurse and -FetchProperty should support runtime filtering
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description of the new feature
Using `Get-AzDataLakeGen2ChildItem -Recurse -FetchProperty` causes Get-AzDataLakeGen2ChildItem to make HEAD request for all directories and files.
CmdLet should provide runtime filtering to:
* get properties/ACLs only for directories: fetch (and display) only directories
* to limit amount of recursion: fetch (and display) only first n levels on directories and/or files
-----
Alternative approach:
1. Run `Get-AzDataLakeGen2ChildItem -Recurse`
2. Filter results
3. Run Get-AzDataLakeGen2Item -Path $_.Path for all filtered results.
### Proposed implementation details (optional)
_No response_
Contributor guide
Research direction
Start at the Get-AzDataLakeGen2ChildItem cmdlet and trace how -Recurse and -FetchProperty currently enumerate items and issue HEAD requests. Define and implement the runtime filtering and recursion-depth behavior for directories and files, then verify that filtered results fetch and display only the requested properties.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100