1

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

2
  • 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? Commented May 22, 2016 at 12:21
  • I was looking to find details about file share like count and some other useful details ...... Commented May 23, 2016 at 10:22

1 Answer 1

3

The powershell script below should work for you.

$ctx = New-AzureStorageContext -StorageAccountName <storage-account-name> -StorageAccountKey <storage-account-key>
(Get-AzureStorageShare -Context $ctx).count
Sign up to request clarification or add additional context in comments.

1 Comment

For future examples/questions on PowerShell, you might want to check out msdn.microsoft.com/library/azure/dn806401.aspx and github.com/Azure-Samples/storage-powershell-getting-started/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.