Microsoft.CognitiveServices 承諾用量計畫
Bicep 資源定義
承諾用量計畫資源類型可以使用目標作業進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.CognitiveServices/commitmentPlans 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.CognitiveServices/commitmentPlans@2023-05-01' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
sku: {
capacity: int
family: 'string'
name: 'string'
size: 'string'
tier: 'string'
}
kind: 'string'
properties: {
autoRenew: bool
commitmentPlanGuid: 'string'
current: {
count: int
tier: 'string'
}
hostingModel: 'string'
next: {
count: int
tier: 'string'
}
planType: 'string'
}
}
屬性值
commitmentPlans
名稱 | 描述 | 值 |
---|---|---|
NAME | 資源名稱 | 字串 (必要) |
location | 資源所在的地理位置 | string |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標記 |
sku | 代表 SKU 的資源模型定義 | Sku |
kind | 資源的種類。 | string |
properties | 認知服務帳戶承諾用量方案的屬性。 | CommitmentPlanProperties |
CommitmentPlanProperties
名稱 | 描述 | 值 |
---|---|---|
autoRenew | AutoRenew 承諾用量方案。 | bool |
commitmentPlanGuid | 承諾用量方案 guid。 | string |
目前的 | 認知服務帳戶承諾期。 | CommitmentPeriod |
hostingModel | 帳戶裝載模型。 | 'ConnectedContainer' 'DisconnectedContainer' 'ProvisionedWeb' 'Web' |
下一步 | 認知服務帳戶承諾期。 | CommitmentPeriod |
planType | 承諾用量方案類型。 | string |
CommitmentPeriod
名稱 | 描述 | 值 |
---|---|---|
count | 承諾期承諾用量計數。 | int |
tier | 承諾期承諾用量層。 | string |
SKU
名稱 | 描述 | 值 |
---|---|---|
處理能力 | 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,則可能會省略此專案。 | int |
family | 如果服務有不同層代的硬體,則針對相同的 SKU,則可以在這裡擷取。 | 字串 |
NAME | SKU 的名稱。 例如 - P3。 通常是字母+數位代碼 | 字串 (必要) |
{1}size{2} | SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程式碼。 | string |
tier | 如果服務有多個層級,但 PUT 上不需要,則資源提供者必須實作此欄位。 | 'Basic' 'Enterprise' 'Free' 'Premium' 'Standard' |
ARM 範本資源定義
承諾用量計畫資源類型可以使用目標作業進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.CognitiveServices/commitmentPlans 資源,請將下列 JSON 新增至您的範本。
{
"type": "Microsoft.CognitiveServices/commitmentPlans",
"apiVersion": "2023-05-01",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"sku": {
"capacity": "int",
"family": "string",
"name": "string",
"size": "string",
"tier": "string"
},
"kind": "string",
"properties": {
"autoRenew": "bool",
"commitmentPlanGuid": "string",
"current": {
"count": "int",
"tier": "string"
},
"hostingModel": "string",
"next": {
"count": "int",
"tier": "string"
},
"planType": "string"
}
}
屬性值
commitmentPlans
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 'Microsoft.CognitiveServices/commitmentPlans' |
apiVersion | 資源 API 版本 | '2023-05-01' |
NAME | 資源名稱 | 字串 (必要) |
location | 資源所在的地理位置 | string |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標記 |
sku | 代表 SKU 的資源模型定義 | Sku |
kind | 資源的種類。 | string |
properties | 認知服務帳戶承諾用量方案的屬性。 | CommitmentPlanProperties |
CommitmentPlanProperties
名稱 | 描述 | 值 |
---|---|---|
autoRenew | AutoRenew 承諾用量方案。 | bool |
commitmentPlanGuid | 承諾用量方案 guid。 | string |
目前的 | 認知服務帳戶承諾期。 | CommitmentPeriod |
hostingModel | 帳戶裝載模型。 | 'ConnectedContainer' 'DisconnectedContainer' 'ProvisionedWeb' 'Web' |
下一步 | 認知服務帳戶承諾期。 | CommitmentPeriod |
planType | 承諾用量方案類型。 | string |
CommitmentPeriod
名稱 | 描述 | 值 |
---|---|---|
count | 承諾期承諾用量計數。 | int |
tier | 承諾期承諾用量層。 | string |
SKU
名稱 | 描述 | 值 |
---|---|---|
處理能力 | 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,則可能會省略此專案。 | int |
family | 如果服務有不同層代的硬體,則針對相同的 SKU,則可以在這裡擷取。 | 字串 |
NAME | SKU 的名稱。 例如 - P3。 通常是字母+數位代碼 | 字串 (必要) |
{1}size{2} | SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程式碼。 | string |
tier | 如果服務有多個層級,但 PUT 上不需要,則資源提供者必須實作此欄位。 | 'Basic' 'Enterprise' 'Free' 'Premium' 'Standard' |
Terraform (AzAPI 提供者) 資源定義
承諾用量計畫資源類型可以使用目標作業進行部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.CognitiveServices/commitmentPlans 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.CognitiveServices/commitmentPlans@2023-05-01"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
body = jsonencode({
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"
}
kind = "string"
})
}
屬性值
commitmentPlans
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 「Microsoft.CognitiveServices/commitmentPlans@2023-05-01」 |
NAME | 資源名稱 | 字串 (必要) |
location | 資源所在的地理位置 | string |
parent_id | 若要部署至資源群組,請使用該資源群組的識別碼。 | 字串 (必要) |
tags | 資源標籤。 | 標記名稱和值的字典。 |
sku | 代表 SKU 的資源模型定義 | Sku |
kind | 資源的種類。 | string |
properties | 認知服務帳戶承諾用量方案的屬性。 | CommitmentPlanProperties |
CommitmentPlanProperties
名稱 | 描述 | 值 |
---|---|---|
autoRenew | AutoRenew 承諾用量方案。 | bool |
commitmentPlanGuid | 承諾用量方案 guid。 | string |
目前的 | 認知服務帳戶承諾期。 | CommitmentPeriod |
hostingModel | 帳戶裝載模型。 | 「ConnectedContainer」 「DisconnectedContainer」 「ProvisionedWeb」 "Web" |
下一步 | 認知服務帳戶承諾期。 | CommitmentPeriod |
planType | 承諾用量方案類型。 | string |
CommitmentPeriod
名稱 | 描述 | 值 |
---|---|---|
count | 承諾期承諾用量計數。 | int |
tier | 承諾期承諾用量層。 | string |
SKU
名稱 | 描述 | 值 |
---|---|---|
處理能力 | 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,則可能會省略此專案。 | int |
family | 如果服務有不同層代的硬體,則針對相同的 SKU,則可以在這裡擷取。 | 字串 |
NAME | SKU 的名稱。 例如 - P3。 通常是字母+數位代碼 | 字串 (必要) |
{1}size{2} | SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程式碼。 | string |
tier | 如果服務有多個層級,但 PUT 上不需要,則資源提供者必須實作此欄位。 | "Basic" 「企業」 「Free」 「Premium」 「Standard」 |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應