提问者:小点点

如何使用powershell ARM查找azure存储帐户中有多少文件共享


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

谢谢Amit


共1个答案

匿名用户

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

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