我想使用power shell来记录在azure存储帐户中创建的文件共享数量。我的所有存储帐户都处于新资源管理器模式。
由于 阿米特
答案 0 :(得分:3)
下面的powershell脚本应该适合您。
$ctx = New-AzureStorageContext -StorageAccountName <storage-account-name> -StorageAccountKey <storage-account-key>
(Get-AzureStorageShare -Context $ctx).count