Microsoft.CognitiveServices 承諾用量計畫
Bicep 資源定義
承諾用量計畫資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.CognitiveServices/commitmentPlans 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.CognitiveServices/commitmentPlans@2022-12-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 | 資源所在的地理位置 | 字串 |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標籤 |
sku | 代表 SKU 的資源模型定義 | Sku |
kind | 資源的種類。 | 字串 |
properties | 認知服務帳戶承諾用量方案的屬性。 | CommitmentPlanProperties |
CommitmentPlanProperties
名稱 | 描述 | 值 |
---|---|---|
autoRenew | 自動重新新增承諾用量方案。 | bool |
commitmentPlanGuid | 承諾用量方案 GUID。 | 字串 |
目前的 | 認知服務帳戶承諾用量期間。 | CommitmentPeriod |
hostingModel | 帳戶裝載模型。 | 'ConnectedContainer' 'DisconnectedContainer' 'Web' |
下一步 | 認知服務帳戶承諾用量期間。 | CommitmentPeriod |
planType | 承諾用量方案類型。 | 字串 |
CommitmentPeriod
名稱 | 描述 | 值 |
---|---|---|
count | 承諾用量期間承諾用量計數。 | int |
tier | 承諾期間承諾用量層級。 | 字串 |
SKU
名稱 | 描述 | 值 |
---|---|---|
處理能力 | 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 | int |
family | 如果服務有不同的硬體世代,則針對相同的 SKU,則可以在這裡擷取。 | 字串 |
NAME | SKU 的名稱。 例如 - P3。 通常是字母+數位碼 | 需要字串 () |
{1}size{2} | SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程式碼。 | 字串 |
tier | 如果服務有一個以上的層級,但在 PUT 上則不需要此欄位,才能由資源提供者實作。 | 'Basic' 'Enterprise' 'Free' 'Premium' 'Standard' |
ARM 範本資源定義
承諾用量計畫資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.CognitiveServices/commitmentPlans 資源,請將下列 JSON 新增至您的範本。
{
"type": "Microsoft.CognitiveServices/commitmentPlans",
"apiVersion": "2022-12-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 版本 | '2022-12-01' |
NAME | 資源名稱 | 需要字串 () |
location | 資源所在的地理位置 | 字串 |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標籤 |
sku | 代表 SKU 的資源模型定義 | Sku |
kind | 資源的種類。 | 字串 |
properties | 認知服務帳戶承諾用量方案的屬性。 | CommitmentPlanProperties |
CommitmentPlanProperties
名稱 | 描述 | 值 |
---|---|---|
autoRenew | 自動重新新增承諾用量方案。 | bool |
commitmentPlanGuid | 承諾用量方案 GUID。 | 字串 |
目前的 | 認知服務帳戶承諾用量期間。 | CommitmentPeriod |
hostingModel | 帳戶裝載模型。 | 'ConnectedContainer' 'DisconnectedContainer' 'Web' |
下一步 | 認知服務帳戶承諾用量期間。 | CommitmentPeriod |
planType | 承諾用量方案類型。 | 字串 |
CommitmentPeriod
名稱 | 描述 | 值 |
---|---|---|
count | 承諾用量期間承諾用量計數。 | int |
tier | 承諾期間承諾用量層級。 | 字串 |
SKU
名稱 | 描述 | 值 |
---|---|---|
處理能力 | 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 | int |
family | 如果服務有不同的硬體世代,則針對相同的 SKU,則可以在這裡擷取。 | 字串 |
NAME | SKU 的名稱。 例如 - P3。 通常是字母+數位碼 | 需要字串 () |
{1}size{2} | SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程式碼。 | 字串 |
tier | 如果服務有一個以上的層級,但在 PUT 上則不需要此欄位,才能由資源提供者實作。 | 'Basic' 'Enterprise' 'Free' 'Premium' 'Standard' |
Terraform (AzAPI 提供者) 資源定義
承諾用量計畫資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.CognitiveServices/commitmentPlans 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.CognitiveServices/commitmentPlans@2022-12-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@2022-12-01」 |
NAME | 資源名稱 | 需要字串 () |
location | 資源所在的地理位置 | 字串 |
parent_id | 若要部署至資源群組,請使用該資源群組的識別碼。 | 需要字串 () |
tags | 資源標籤。 | 標記名稱和值的字典。 |
sku | 代表 SKU 的資源模型定義 | Sku |
kind | 資源的種類。 | 字串 |
properties | 認知服務帳戶承諾用量方案的屬性。 | CommitmentPlanProperties |
CommitmentPlanProperties
名稱 | 描述 | 值 |
---|---|---|
autoRenew | 自動重新新增承諾用量方案。 | bool |
commitmentPlanGuid | 承諾用量方案 GUID。 | 字串 |
目前的 | 認知服務帳戶承諾用量期間。 | CommitmentPeriod |
hostingModel | 帳戶裝載模型。 | 「ConnectedContainer」 「DisconnectedContainer」 「Web」 |
下一步 | 認知服務帳戶承諾用量期間。 | CommitmentPeriod |
planType | 承諾用量方案類型。 | 字串 |
CommitmentPeriod
名稱 | 描述 | 值 |
---|---|---|
count | 承諾用量期間承諾用量計數。 | int |
tier | 承諾期間承諾用量層級。 | 字串 |
SKU
名稱 | 描述 | 值 |
---|---|---|
處理能力 | 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 | int |
family | 如果服務有不同的硬體世代,則針對相同的 SKU,則可以在這裡擷取。 | 字串 |
NAME | SKU 的名稱。 例如 - P3。 通常是字母+數位碼 | 需要字串 () |
{1}size{2} | SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程式碼。 | 字串 |
tier | 如果服務有一個以上的層級,但在 PUT 上則不需要此欄位,才能由資源提供者實作。 | "Basic" 「企業」 「Free」 「Premium」 「標準」 |