Microsoft。認知服務承諾計畫

Bicep 資源定義

CommitmentPlans 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

創造一個 Microsoft。CognitiveServices/commitmentPlans 資源,請將以下 Bicep 加入你的範本。

resource symbolicname 'Microsoft.CognitiveServices/commitmentPlans@2026-09-15-preview' = {
  kind: 'string'
  location: 'string'
  name: 'string'
  properties: {
    autoRenew: bool
    commitmentPlanGuid: 'string'
    current: {
      count: int
      tier: 'string'
    }
    hostingModel: 'string'
    next: {
      count: int
      tier: 'string'
    }
    planType: 'string'
  }
  sku: {
    capacity: int
    family: 'string'
    name: 'string'
    size: 'string'
    tier: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

Microsoft。認知服務/承諾計畫

名稱 說明 價值觀
類型 認知服務帳戶的種類(類型)。 字串
位置 資源所在的地理位置 字串
名稱 資源名稱 字串

約束:
模式 = ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ (必要)
屬性 認知服務帳戶承諾用量方案的屬性。 CommitmentPlanProperties
SKU 代表 SKU 的資源模型定義 SKU
標記 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

承諾期

名稱 說明 價值觀
計數 承諾期間承諾用量計數。 整數 (int)
分層 承諾期承諾用量層級。 字串

CommitmentPlanProperties

名稱 說明 價值觀
自動續訂 自動重新新增承諾用量方案。 布爾 (bool)
commitmentPlanGuid 承諾用量方案 guid。 字串
當前的 認知服務帳戶承諾期。 承諾期
hostingModel (託管模型) 帳戶裝載模型。 “已連接容器”
“DisconnectedContainer”
“已配置的 Web”
“網络”
下一個 認知服務帳戶承諾期。 承諾期
planType 承諾用量方案類型。 字串

CommitmentPlan標籤

名稱 說明 價值觀

SKU

名稱 說明 價值觀
容量 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 整數 (int)
家庭 如果服務有不同世代的硬體,針對相同的 SKU,則可以在這裡擷取。 字串
名稱 SKU 的名稱。 例如 - P3。 通常是字母+數位碼 字串 (必要)
尺寸 SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程序代碼。 字串
分層 如果服務有一個以上的層級,但 PUT 上不需要此欄位,則資源提供者必須實作此字段。 “基本”
'企業'
“免費”
“高級”
“標準”

ARM 樣本資源定義

CommitmentPlans 資源類型可以使用目標作業來部署:

使用範例

資源格式

創造一個 Microsoft。Cognitive Services/commitmentPlans 資源,請將以下 JSON 加入你的範本。

{
  "type": "Microsoft.CognitiveServices/commitmentPlans",
  "apiVersion": "2026-09-15-preview",
  "name": "string",
  "kind": "string",
  "location": "string",
  "properties": {
    "autoRenew": "bool",
    "commitmentPlanGuid": "string",
    "current": {
      "count": "int",
      "tier": "string"
    },
    "hostingModel": "string",
    "next": {
      "count": "int",
      "tier": "string"
    },
    "planType": "string"
  },
  "sku": {
    "capacity": "int",
    "family": "string",
    "name": "string",
    "size": "string",
    "tier": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

Microsoft。認知服務/承諾計畫

名稱 說明 價值觀
apiVersion API 版本 『2026-09-15-預覽』
類型 認知服務帳戶的種類(類型)。 字串
位置 資源所在的地理位置 字串
名稱 資源名稱 字串

約束:
模式 = ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ (必要)
屬性 認知服務帳戶承諾用量方案的屬性。 CommitmentPlanProperties
SKU 代表 SKU 的資源模型定義 SKU
標記 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
型別 資源類型 「Microsoft。認知服務/承諾計畫

承諾期

名稱 說明 價值觀
計數 承諾期間承諾用量計數。 整數 (int)
分層 承諾期承諾用量層級。 字串

CommitmentPlanProperties

名稱 說明 價值觀
自動續訂 自動重新新增承諾用量方案。 布爾 (bool)
commitmentPlanGuid 承諾用量方案 guid。 字串
當前的 認知服務帳戶承諾期。 承諾期
hostingModel (託管模型) 帳戶裝載模型。 “已連接容器”
“DisconnectedContainer”
“已配置的 Web”
“網络”
下一個 認知服務帳戶承諾期。 承諾期
planType 承諾用量方案類型。 字串

CommitmentPlan標籤

名稱 說明 價值觀

SKU

名稱 說明 價值觀
容量 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 整數 (int)
家庭 如果服務有不同世代的硬體,針對相同的 SKU,則可以在這裡擷取。 字串
名稱 SKU 的名稱。 例如 - P3。 通常是字母+數位碼 字串 (必要)
尺寸 SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程序代碼。 字串
分層 如果服務有一個以上的層級,但 PUT 上不需要此欄位,則資源提供者必須實作此字段。 “基本”
'企業'
“免費”
“高級”
“標準”

Terraform (AzAPI 提供者) 資源定義

CommitmentPlans 資源類型可以使用目標作業來部署:

  • 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。

資源格式

創造一個 Microsoft。CognitiveServices/commitmentPlans 資源,請將以下 Terraform 加入你的範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.CognitiveServices/commitmentPlans@2026-09-15-preview"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    kind = "string"
    properties = {
      autoRenew = bool
      commitmentPlanGuid = "string"
      current = {
        count = int
        tier = "string"
      }
      hostingModel = "string"
      next = {
        count = int
        tier = "string"
      }
      planType = "string"
    }
    sku = {
      capacity = int
      family = "string"
      name = "string"
      size = "string"
      tier = "string"
    }
  }
}

屬性值

Microsoft。認知服務/承諾計畫

名稱 說明 價值觀
類型 認知服務帳戶的種類(類型)。 字串
位置 資源所在的地理位置 字串
名稱 資源名稱 字串

約束:
模式 = ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ (必要)
屬性 認知服務帳戶承諾用量方案的屬性。 CommitmentPlanProperties
SKU 代表 SKU 的資源模型定義 SKU
標記 資源標籤 標記名稱和值的字典。
型別 資源類型 「Microsoft。認知服務/commitmentPlans@2026-09-15-預覽」

承諾期

名稱 說明 價值觀
計數 承諾期間承諾用量計數。 整數 (int)
分層 承諾期承諾用量層級。 字串

CommitmentPlanProperties

名稱 說明 價值觀
自動續訂 自動重新新增承諾用量方案。 布爾 (bool)
commitmentPlanGuid 承諾用量方案 guid。 字串
當前的 認知服務帳戶承諾期。 承諾期
hostingModel (託管模型) 帳戶裝載模型。 “已連接容器”
“DisconnectedContainer”
“已配置的 Web”
“網络”
下一個 認知服務帳戶承諾期。 承諾期
planType 承諾用量方案類型。 字串

CommitmentPlan標籤

名稱 說明 價值觀

SKU

名稱 說明 價值觀
容量 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 整數 (int)
家庭 如果服務有不同世代的硬體,針對相同的 SKU,則可以在這裡擷取。 字串
名稱 SKU 的名稱。 例如 - P3。 通常是字母+數位碼 字串 (必要)
尺寸 SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程序代碼。 字串
分層 如果服務有一個以上的層級,但 PUT 上不需要此欄位,則資源提供者必須實作此字段。 “基本”
'企業'
“免費”
“高級”
“標準”