1
votes

I want to file the how many file shares are created in azure storage account using power shell. All my storage accounts are in New Resource Manager Mode.

Thanks Amit

1
Do you want to find out how many total file shares are there in a storage account or how many of them are created using PowerShell Cmdlets?Gaurav Mantri
I was looking to find details about file share like count and some other useful details ......Amit

1 Answers

3
votes

The powershell script below should work for you.

$ctx = New-AzureStorageContext -StorageAccountName <storage-account-name> -StorageAccountKey <storage-account-key>
(Get-AzureStorageShare -Context $ctx).count