Home > Enterprise >  Want to all details of blob storage in one script
Want to all details of blob storage in one script

Time:10-28

Script:

$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

By using this I am only able to get details of file level, if I run this script again and again in each level the only i can get details of the file inside the folder. FYI enter image description here

Kindly help me to get one script by which i can get all the details include file inside the folder.

CodePudding user response:

There is a -Recurse switch within the Get-AzDataLakeGen2ChildItem cmdlet that:

Indicates if will recursively get the Child Item. The default is false.

  • Related