Bicep 資源定義
登錄/程式代碼/版本資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.MachineLearningServices/registries/code/versions 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.MachineLearningServices/registries/codes/versions@2023-10-01' = {
parent: resourceSymbolicName
name: 'string'
properties: {
codeUri: 'string'
description: 'string'
isAnonymous: bool
isArchived: bool
properties: {
{customized property}: 'string'
}
tags: {
{customized property}: 'string'
}
}
}
屬性值
Microsoft.MachineLearningServices/registries/code/versions
CodeVersionProperties
名字 |
描述 |
價值 |
codeUri 的 |
程序代碼所在的 URI |
字串 |
描述 |
資產描述文字。 |
字串 |
isAnonymous (匿名) |
如果名稱版本是系統產生的 (匿名註冊)。 |
布爾 (bool) |
isArchived 已存檔 |
資產是否已封存? |
布爾 (bool) |
性能 |
資產屬性字典。 |
ResourceBaseProperties |
標籤 |
標記字典。 標記可以新增、移除和更新。 |
ResourceBaseTags |
ResourceBaseProperties
ARM 樣本資源定義
登錄/程式代碼/版本資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.MachineLearningServices/registries/code/versions 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.MachineLearningServices/registries/codes/versions",
"apiVersion": "2023-10-01",
"name": "string",
"properties": {
"codeUri": "string",
"description": "string",
"isAnonymous": "bool",
"isArchived": "bool",
"properties": {
"{customized property}": "string"
},
"tags": {
"{customized property}": "string"
}
}
}
屬性值
Microsoft.MachineLearningServices/registries/code/versions
名字 |
描述 |
價值 |
apiVersion |
API 版本 |
'2023-10-01' |
名字 |
資源名稱 |
字串 (必要) |
性能 |
[必要]實體的其他屬性。 |
CodeVersionProperties (必要) |
型別 |
資源類型 |
'Microsoft.MachineLearningServices/registries/code/versions' |
CodeVersionProperties
名字 |
描述 |
價值 |
codeUri 的 |
程序代碼所在的 URI |
字串 |
描述 |
資產描述文字。 |
字串 |
isAnonymous (匿名) |
如果名稱版本是系統產生的 (匿名註冊)。 |
布爾 (bool) |
isArchived 已存檔 |
資產是否已封存? |
布爾 (bool) |
性能 |
資產屬性字典。 |
ResourceBaseProperties |
標籤 |
標記字典。 標記可以新增、移除和更新。 |
ResourceBaseTags |
ResourceBaseProperties
使用範例
登錄/程式代碼/版本資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.MachineLearningServices/registries/code/versions 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.MachineLearningServices/registries/codes/versions@2023-10-01"
name = "string"
parent_id = "string"
body = {
properties = {
codeUri = "string"
description = "string"
isAnonymous = bool
isArchived = bool
properties = {
{customized property} = "string"
}
tags = {
{customized property} = "string"
}
}
}
}
屬性值
Microsoft.MachineLearningServices/registries/code/versions
名字 |
描述 |
價值 |
名字 |
資源名稱 |
字串 (必要) |
父項識別碼 |
此資源為父系之資源的標識碼。 |
類型資源的識別碼:登錄/程序代碼 |
性能 |
[必要]實體的其他屬性。 |
CodeVersionProperties (必要) |
型別 |
資源類型 |
“Microsoft.MachineLearningServices/registries/code/versions@2023-10-01” |
CodeVersionProperties
名字 |
描述 |
價值 |
codeUri 的 |
程序代碼所在的 URI |
字串 |
描述 |
資產描述文字。 |
字串 |
isAnonymous (匿名) |
如果名稱版本是系統產生的 (匿名註冊)。 |
布爾 (bool) |
isArchived 已存檔 |
資產是否已封存? |
布爾 (bool) |
性能 |
資產屬性字典。 |
ResourceBaseProperties |
標籤 |
標記字典。 標記可以新增、移除和更新。 |
ResourceBaseTags |
ResourceBaseProperties