你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzStorageUsage
获取当前订阅存储资源使用情况。
语法
Get-AzStorageUsage
-Location <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-Az存储Usage cmdlet 获取当前订阅Azure 存储的资源使用情况。
示例
示例 1:获取指定位置的存储资源使用情况
Get-AzStorageUsage -Location 'West US'
LocalizedName : Storage Accounts
Name : StorageAccounts
Unit : Count
CurrentValue : 18
Limit : 250
此命令获取当前订阅下指定位置存储资源使用情况。
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Location
指示在指定位置上获取存储资源使用情况。 如果未指定,将获取订阅下所有位置的资源使用情况存储。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
输入
输出
相关链接
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈