Reputation: 153
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
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