gpt4 book ai didi

azure - 想要在一个脚本中获取 blob 存储的所有详细信息

转载 作者:行者123 更新时间:2023-12-03 03:33:13 25 4
gpt4 key购买 nike

脚本:

$storageAccountKey = (Get-AzStorageAccountKey -ResourceGroupName "RD-RDIPCloudMigration-AppResources-devtest" -AccountName "rdipstoragegen2").Value[0]
$ctx = New-AzStorageContext -StorageAccountName "rdipstoragegen2" -StorageAccountKey $storageAccountKey
Get-AzDataLakeGen2ChildItem -Context $ctx -FileSystem "rdipdata" -Path "eval/raw/rdipclinicaltrial/data/warehouse/integrated/clntrl_reference_use.db" | export-csv "test.csv" -NoTypeInformation

通过使用此功能,我只能获取文件级别的详细信息,如果我在每个级别一次又一次运行此脚本,那么我只能获取文件夹内文件的详细信息。供引用 enter image description here

请帮助我获取一个脚本,通过该脚本我可以获得文件夹内包含文件的所有详细信息。

最佳答案

Get-AzDataLakeGen2ChildItem 中有一个 -Recurse 开关cmdlet:

Indicates if will recursively get the Child Item. The default isfalse.

关于azure - 想要在一个脚本中获取 blob 存储的所有详细信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74217914/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com