How to Get ADLS Gen1 Instance Size Using any Script

%3CLINGO-SUB%20id%3D%22lingo-sub-1874720%22%20slang%3D%22en-US%22%3EHow%20to%20Get%20ADLS%20Gen1%20Instance%20Size%20Using%20any%20Script%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1874720%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Team%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20fetch%20ADLS%20Gen1%20Instance%20size%20using%20any%20API%20or%20script%2C%20Can%20you%20please%20suggest%20if%20any%20meta%20data%20resides%20about%20Instance%20size.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20How%20to%20get%20folders%20size%20and%20add%20sum%20gives%20ADLS%20Instance%20size%20currently%20this%20what%20I%20am%20doing%20but%20calculating%20each%20folder%20is%20taking%20around%2010%20hrs%20because%20my%20ADLS%20instance%20size%20bit%20bigger%20and%20too%20many%20nested%20folders.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20anyway%20we%20can%20calculate%20ADLS%20Gen1%20instance%20size%20not%20with%20calculating%20subfolders%20and%20all%20%3F%20I%20mean%20is%20there%20any%20meta%20data%20available%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20using%20below%20Powershell%20script%20but%20it%20is%20not%20optimal.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%24rootdir%20%3D%20'%2F'%0A%0A%24adlsactname%20%3D%20%22**********%22%0A%0AGet-AzDataLakeStoreChildItemSummary%20-Account%20%24adlsactname%20-Path%20%24rootdir%20-Concurrency%20128%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAzure%20portal%20providing%20ADLS%20Instance%20size%20on%20daily%20basis%20so%20we%20can%20get%20this%20info%20export%20using%20any%20metadata%20or%20script%20or%20API%20%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22ADLS.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F232782iAB29B90ACBF611F8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ADLS.PNG%22%20alt%3D%22ADLS.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EBrahma%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi Team,

 

I want to fetch ADLS Gen1 Instance size using any API or script, Can you please suggest if any meta data resides about Instance size.

 

I know How to get folders size and add sum gives ADLS Instance size currently this what I am doing but calculating each folder is taking around 10 hrs because my ADLS instance size bit bigger and too many nested folders.

 

Is there anyway we can calculate ADLS Gen1 instance size not with calculating subfolders and all ? I mean is there any meta data available ?

 

I am using below Powershell script but it is not optimal.

 

$rootdir = '/'

$adlsactname = "**********"

Get-AzDataLakeStoreChildItemSummary -Account $adlsactname -Path $rootdir -Concurrency 128

 

Azure portal providing ADLS Instance size on daily basis so we can get this info export using any metadata or script or API ?

 

ADLS.PNG

 

Thanks,

Brahma

1 Reply

Hi,

 

Anyone can please check and update ?

 

Thanks,

Brahma