Amit
Amit

Reputation: 153

How to find how many file share in azure Storage account using powershell ARM

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

Upvotes: 1

Views: 2183

Answers (1)

Derek
Derek

Reputation: 837

The powershell script below should work for you.

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

Upvotes: 3

Related Questions