共用方式為


Get-AzQuota

取得資源的配額限制。 回應可用來判斷剩餘配額,以計算可使用PUT要求提交的新配額限制。

語法

Get-AzQuota
   -Scope <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzQuota
   -ResourceName <String>
   -Scope <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzQuota
   -InputObject <IQuotaIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

取得資源的配額限制。 回應可用來判斷剩餘配額,以計算可使用PUT要求提交的新配額限制。

範例

範例 1:列出範圍的配額限制

Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"

Name              NameLocalizedValue  Unit  ETag
----              ------------------  ----  ----
VirtualNetworks   Virtual Networks    Count
CustomIpPrefixes  Custom Ip Prefixes  Count
PublicIpPrefixes  Public Ip Prefixes  Count
PublicIPAddresses Public IP Addresses Count
......

此命令會列出範圍的配額限制。

範例 2:取得資源的配額限制

Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -ResourceName VirtualNetworks

Name            NameLocalizedValue Unit  ETag
----            ------------------ ----  ----
VirtualNetworks Virtual Networks   Count

此命令會取得資源的配額限制。 回應可用來判斷剩餘配額,以計算可使用PUT要求提交的新配額限制。

參數

-DefaultProfile

DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。

類型:PSObject
別名:AzureRMContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InputObject

Identity 參數

類型:IQuotaIdentity
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ResourceName

指定資源提供者的資源名稱。 例如:

  • Microsoft.Compute 的 SKU 名稱
  • Microsoft.MachineLearningServices for Microsoft.Network PublicIPAddresses 的 SKU 或 TotalLowPriorityCores。
類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Scope

目標 Azure 資源 URI。 例如: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/ 。 這是清單 GET 作業的目標 Azure 資源 URI。 {resourceName}如果在 之後/quotas新增 ,則它是特定資源 GET 作業中的目標 Azure 資源 URI。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

輸入

IQuotaIdentity

輸出

ICurrentQuotaLimitBase