如何使用powershell ARM查找azure Storage帐户中的文件共享数量

时间:2016-05-22 12:14:21

标签: azure azure-storage azure-storage-blobs azure-files

我想使用power shell来记录在azure存储帐户中创建的文件共享数量。我的所有存储帐户都处于新资源管理器模式。

由于 阿米特

1 个答案:

答案 0 :(得分:3)

下面的powershell脚本应该适合您。

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