繁体   English   中英

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

[英]How to find how many file share in azure Storage account using powershell ARM

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

谢谢阿米特

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM