你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

Microsoft.Quota 配额

Bicep 资源定义

quotas 资源类型可以通过以下目标作进行部署:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志。

资源格式

若要创建 Microsoft.Quota/quotas 资源,请将以下 Bicep 添加到模板中。

resource symbolicname 'Microsoft.Quota/quotas@2026-09-01-preview' = {
  scope: resourceSymbolicName or scope
  name: 'string'
  properties: {
    limit: {
      limitObjectType: 'string'
      // For remaining properties, see LimitJsonObject objects
    }
    name: {
      value: 'string'
    }
    properties: any(...)
    resourceType: 'string'
  }
}

LimitJsonObject 对象

设置 limitObjectType 属性以指定对象的类型。

对于 LimitValue,请使用:

{
  limitObjectType: 'LimitValue'
  limitType: 'string'
  value: int
}

属性值

Microsoft.Quota/quotas

Name Description Value
name 资源名称 string (必需)
properties 指定资源的配额属性,基于调用的 API Quotas 或 Usages。 QuotaProperties
作用域 在与部署范围不同的范围内创建资源时使用。 将此属性设置为资源的符号名称,以应用 扩展资源。

LimitJsonObject

Name Description Value
limitObjectType 将 LimitObject 类型设置为 'LimitValue'。 'LimitValue'(必填)

LimitObject

Name Description Value
limitObjectType limit 对象类型。 'LimitValue'(必填)
limitType 配额或使用情况限制类型。 'Independent'
'Shared'
value 配额/限制值 int (必需)

QuotaProperties

Name Description Value
limit 资源配额限制属性。 LimitJsonObject
name 资源提供程序提供的资源名称。 在请求配额时使用此属性名称。 ResourceName
properties 特定资源提供程序的其他属性。 any
resourceType 资源类型的名称。 可选字段。 字符串

ResourceName

Name Description Value
value 资源名称。 字符串

ARM 模板资源定义

quotas 资源类型可以通过以下目标作进行部署:

用法示例

资源格式

要创建 Microsoft.Quota/quotas 资源,请将以下 JSON 添加到模板中。

{
  "type": "Microsoft.Quota/quotas",
  "apiVersion": "2026-09-01-preview",
  "name": "string",
  "properties": {
    "limit": {
      "limitObjectType": "string"
      // For remaining properties, see LimitJsonObject objects
    },
    "name": {
      "value": "string"
    },
    "properties": {},
    "resourceType": "string"
  }
}

LimitJsonObject 对象

设置 limitObjectType 属性以指定对象的类型。

对于 LimitValue,请使用:

{
  "limitObjectType": "LimitValue",
  "limitType": "string",
  "value": "int"
}

属性值

Microsoft.Quota/quotas

Name Description Value
apiVersion API 版本 '2026-09-01-预览'
name 资源名称 string (必需)
properties 指定资源的配额属性,基于调用的 API Quotas 或 Usages。 QuotaProperties
类型 资源类型 'Microsoft.Quota/quotas'

LimitJsonObject

Name Description Value
limitObjectType 将 LimitObject 类型设置为 'LimitValue'。 'LimitValue'(必填)

LimitObject

Name Description Value
limitObjectType limit 对象类型。 'LimitValue'(必填)
limitType 配额或使用情况限制类型。 'Independent'
'Shared'
value 配额/限制值 int (必需)

QuotaProperties

Name Description Value
limit 资源配额限制属性。 LimitJsonObject
name 资源提供程序提供的资源名称。 在请求配额时使用此属性名称。 ResourceName
properties 特定资源提供程序的其他属性。 any
resourceType 资源类型的名称。 可选字段。 字符串

ResourceName

Name Description Value
value 资源名称。 字符串

Terraform (AzAPI 提供程序)资源定义

quotas 资源类型可以通过以下目标作进行部署:

  • 租户* 管理组* 订阅* 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。

资源格式

要创建 Microsoft.Quota/quotas 资源,请将以下 Terraform 添加到您的模板中。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Quota/quotas@2026-09-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      limit = {
        limitObjectType = "string"
        // For remaining properties, see LimitJsonObject objects
      }
      name = {
        value = "string"
      }
      properties = ?
      resourceType = "string"
    }
  }
}

LimitJsonObject 对象

设置 limitObjectType 属性以指定对象的类型。

对于 LimitValue,请使用:

{
  limitObjectType = "LimitValue"
  limitType = "string"
  value = int
}

属性值

Microsoft.Quota/quotas

Name Description Value
name 资源名称 string (必需)
parent_id 要向其应用此扩展资源的资源的 ID。 string (必需)
properties 指定资源的配额属性,基于调用的 API Quotas 或 Usages。 QuotaProperties
类型 资源类型 “Microsoft。Quota/quotas@2026-09-01-preview”

LimitJsonObject

Name Description Value
limitObjectType 将 LimitObject 类型设置为 'LimitValue'。 'LimitValue'(必填)

LimitObject

Name Description Value
limitObjectType limit 对象类型。 'LimitValue'(必填)
limitType 配额或使用情况限制类型。 'Independent'
'Shared'
value 配额/限制值 int (必需)

QuotaProperties

Name Description Value
limit 资源配额限制属性。 LimitJsonObject
name 资源提供程序提供的资源名称。 在请求配额时使用此属性名称。 ResourceName
properties 特定资源提供程序的其他属性。 any
resourceType 资源类型的名称。 可选字段。 字符串

ResourceName

Name Description Value
value 资源名称。 字符串