- 最新
- 2026-09-01
- 2026-07-15-預覽
- 2026-07-01
- 2026-05-15-預覽
- 2026-05-01
- 2026-03-15-預覽
- 2026-03-01
- 2026-01-15-預覽
- 2025-12-01
- 2025-10-01-預覽
- 2025-09-01
- 2025-07-01-預覽版
- 2025-06-01
- 2025-04-01
- 2025-04-01-預覽版
- 2025-01-01-預覽版
- 2024-10-01
- 2024-10-01-預覽版
- 2024-07-01-預覽版
- 2024-04-01
- 2024-04-01-預覽版
- 2024-01-01-預覽版
- 2023-10-01
- 2023-08-01-預覽版
- 2023-06-01-預覽版
- 2023-04-01
- 2023-04-01-預覽版
- 2023-02-01-預覽版
- 2022-12-01-預覽版
- 2022-10-01
- 2022-10-01-預覽版
- 2022-06-01-預覽版
- 2022-05-01
- 2022-02-01-預覽版
- 2021-03-01-預覽版
Bicep 資源定義
工作區/資料/版本資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
使用範例
Azure 快速入門範例
以下的 Azure 快速啟動範本包含部署此資源類型的Bicep範例。
| Bicep檔案 | 描述 |
|---|---|
| 這個範本會從 Azure Machine Learning 工作空間中的 URI 檔案建立資料資產/容器。 | |
| 此範本會從 Azure Machine Learning 工作空間中的 URI 檔案建立新的資料版本。 |
資源格式
創造一個 Microsoft。MachineLearningServices/workspaces/data/versions resource 裡,請把以下 Bicep 加入你的範本。
resource symbolicname 'Microsoft.MachineLearningServices/workspaces/data/versions@2023-04-01-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
autoDeleteSetting: {
condition: 'string'
value: 'string'
}
dataUri: 'string'
description: 'string'
intellectualProperty: {
protectionLevel: 'string'
publisher: 'string'
}
isAnonymous: bool
isArchived: bool
properties: {
{customized property}: 'string'
}
stage: 'string'
tags: {
{customized property}: 'string'
}
dataType: 'string'
// For remaining properties, see DataVersionBaseProperties objects
}
}
DataVersionBaseProperties 物件
設定 dataType 屬性,以指定物件的類型。
針對 mltable,請使用:
{
dataType: 'mltable'
referencedUris: [
'string'
]
}
針對 uri_file,請使用:
{
dataType: 'uri_file'
}
針對 uri_folder,請使用:
{
dataType: 'uri_folder'
}
屬性值
Microsoft。MachineLearningServices/workspaces/data/versions
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 資源名稱 | 字串 (必要) |
| 父代 | 在 Bicep 中,你可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型的資源符號名稱:工作區/數據 |
| 性能 | [必要]實體的其他屬性。 | DataVersionBaseProperties (必要) |
自動刪除設置
| 名字 | 描述 | 價值 |
|---|---|---|
| 條件 | 何時檢查資產是否已過期 | 'CreatedGreaterThan' 'LastAccessedGreaterThan' |
| 價值 | 到期條件值。 | 字串 |
DataVersionBaseProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| autoDelete設置 | 指定受控數據資產的生命周期設定。 | 自動刪除設置 |
| 數據類型 | 針對 mlTableData 類型設定為 'mltable',。 針對 uriFileDataVersion 類型設定為 'uri_file',。 針對 uriFolderDataVersion 類型設定為 'uri_folder',。 | 'mltable' “uri_file” 'uri_folder' (必要) |
| dataUri | [必要]數據的 URI。 範例: https://go.microsoft.com/fwlink/?linkid=2202330 | 字串 約束: 最小長度 = 1 模式 = [a-zA-Z0-9_] (必要) |
| 描述 | 資產描述文字。 | 字串 |
| 智慧財產權 | 智慧財產權詳細數據。 如果資料是智慧財產權,則使用 。 | 智慧財產權 |
| isAnonymous (匿名) | 如果名稱版本是系統產生的 (匿名註冊)。 針對定義 Stage 的類型,當提供 Stage 時,它會用來填入 IsAnonymous | 布爾 (bool) |
| isArchived 已存檔 | 資產是否已封存? 對於定義 Stage 的類型,當提供 Stage 時,它會用來填入 IsArchived | 布爾 (bool) |
| 性能 | 資產屬性字典。 | ResourceBaseProperties |
| 暫存 | 指派給此數據資產的數據生命周期階段 | 字串 |
| 標籤 | 標記字典。 標記可以新增、移除和更新。 | ResourceBaseTags |
智慧財產權
| 名字 | 描述 | 價值 |
|---|---|---|
| protectionLevel 保護級別 | 智慧財產權的保護層級。 | '全部' “無” |
| 發行者 | [必備]Publisher of the Intellectual Property。 必須與登錄發行者名稱相同。 | 字串 約束: 最小長度 = 1 模式 = [a-zA-Z0-9_] (必要) |
MLTableData
| 名字 | 描述 | 價值 |
|---|---|---|
| 數據類型 | [必要]指定數據類型。 | 'mltable' (必要) |
| referencedUri | MLTable 定義中所參考的 URI (譜系所需) | 字串[] |
ResourceBaseProperties
| 名字 | 描述 | 價值 |
|---|
ResourceBaseTags
| 名字 | 描述 | 價值 |
|---|
UriFileDataVersion
| 名字 | 描述 | 價值 |
|---|---|---|
| 數據類型 | [必要]指定數據類型。 | 'uri_file' (必要) |
UriFolderDataVersion
| 名字 | 描述 | 價值 |
|---|---|---|
| 數據類型 | [必要]指定數據類型。 | 'uri_folder' (必要) |
ARM 樣本資源定義
工作區/資料/版本資源類型可以使用目標作業來部署:
使用範例
Azure Quickstart templates
以下的 Azure 快速起始範本部署此資源類型。
| 範本 | 描述 |
|---|---|
| 這個範本會從 Azure Machine Learning 工作空間中的 URI 檔案建立資料資產/容器。 | |
| 此範本會從 Azure Machine Learning 工作空間中的 URI 檔案建立新的資料版本。 |
資源格式
創造一個 Microsoft。MachineLearningServices/workspaces/data/versions resource 中,請將以下 JSON 加入你的範本。
{
"type": "Microsoft.MachineLearningServices/workspaces/data/versions",
"apiVersion": "2023-04-01-preview",
"name": "string",
"properties": {
"autoDeleteSetting": {
"condition": "string",
"value": "string"
},
"dataUri": "string",
"description": "string",
"intellectualProperty": {
"protectionLevel": "string",
"publisher": "string"
},
"isAnonymous": "bool",
"isArchived": "bool",
"properties": {
"{customized property}": "string"
},
"stage": "string",
"tags": {
"{customized property}": "string"
},
"dataType": "string"
// For remaining properties, see DataVersionBaseProperties objects
}
}
DataVersionBaseProperties 物件
設定 dataType 屬性,以指定物件的類型。
針對 mltable,請使用:
{
"dataType": "mltable",
"referencedUris": [ "string" ]
}
針對 uri_file,請使用:
{
"dataType": "uri_file"
}
針對 uri_folder,請使用:
{
"dataType": "uri_folder"
}
屬性值
Microsoft。MachineLearningServices/workspaces/data/versions
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | '2023-04-01-預覽' |
| 名字 | 資源名稱 | 字串 (必要) |
| 性能 | [必要]實體的其他屬性。 | DataVersionBaseProperties (必要) |
| 型別 | 資源類型 | 「Microsoft。MachineLearningServices/workspaces/data/versions' |
自動刪除設置
| 名字 | 描述 | 價值 |
|---|---|---|
| 條件 | 何時檢查資產是否已過期 | 'CreatedGreaterThan' 'LastAccessedGreaterThan' |
| 價值 | 到期條件值。 | 字串 |
DataVersionBaseProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| autoDelete設置 | 指定受控數據資產的生命周期設定。 | 自動刪除設置 |
| 數據類型 | 針對 mlTableData 類型設定為 'mltable',。 針對 uriFileDataVersion 類型設定為 'uri_file',。 針對 uriFolderDataVersion 類型設定為 'uri_folder',。 | 'mltable' “uri_file” 'uri_folder' (必要) |
| dataUri | [必要]數據的 URI。 範例: https://go.microsoft.com/fwlink/?linkid=2202330 | 字串 約束: 最小長度 = 1 模式 = [a-zA-Z0-9_] (必要) |
| 描述 | 資產描述文字。 | 字串 |
| 智慧財產權 | 智慧財產權詳細數據。 如果資料是智慧財產權,則使用 。 | 智慧財產權 |
| isAnonymous (匿名) | 如果名稱版本是系統產生的 (匿名註冊)。 針對定義 Stage 的類型,當提供 Stage 時,它會用來填入 IsAnonymous | 布爾 (bool) |
| isArchived 已存檔 | 資產是否已封存? 對於定義 Stage 的類型,當提供 Stage 時,它會用來填入 IsArchived | 布爾 (bool) |
| 性能 | 資產屬性字典。 | ResourceBaseProperties |
| 暫存 | 指派給此數據資產的數據生命周期階段 | 字串 |
| 標籤 | 標記字典。 標記可以新增、移除和更新。 | ResourceBaseTags |
智慧財產權
| 名字 | 描述 | 價值 |
|---|---|---|
| protectionLevel 保護級別 | 智慧財產權的保護層級。 | '全部' “無” |
| 發行者 | [必備]Publisher of the Intellectual Property。 必須與登錄發行者名稱相同。 | 字串 約束: 最小長度 = 1 模式 = [a-zA-Z0-9_] (必要) |
MLTableData
| 名字 | 描述 | 價值 |
|---|---|---|
| 數據類型 | [必要]指定數據類型。 | 'mltable' (必要) |
| referencedUri | MLTable 定義中所參考的 URI (譜系所需) | 字串[] |
ResourceBaseProperties
| 名字 | 描述 | 價值 |
|---|
ResourceBaseTags
| 名字 | 描述 | 價值 |
|---|
UriFileDataVersion
| 名字 | 描述 | 價值 |
|---|---|---|
| 數據類型 | [必要]指定數據類型。 | 'uri_file' (必要) |
UriFolderDataVersion
| 名字 | 描述 | 價值 |
|---|---|---|
| 數據類型 | [必要]指定數據類型。 | 'uri_folder' (必要) |
Terraform (AzAPI 提供者) 資源定義
工作區/資料/版本資源類型可以使用目標作業來部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
資源格式
創造一個 Microsoft。MachineLearningServices/workspaces/data/versions resource 中,請將以下 Terraform 加入你的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.MachineLearningServices/workspaces/data/versions@2023-04-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
autoDeleteSetting = {
condition = "string"
value = "string"
}
dataUri = "string"
description = "string"
intellectualProperty = {
protectionLevel = "string"
publisher = "string"
}
isAnonymous = bool
isArchived = bool
properties = {
{customized property} = "string"
}
stage = "string"
tags = {
{customized property} = "string"
}
dataType = "string"
// For remaining properties, see DataVersionBaseProperties objects
}
}
}
DataVersionBaseProperties 物件
設定 dataType 屬性,以指定物件的類型。
針對 mltable,請使用:
{
dataType = "mltable"
referencedUris = [
"string"
]
}
針對 uri_file,請使用:
{
dataType = "uri_file"
}
針對 uri_folder,請使用:
{
dataType = "uri_folder"
}
屬性值
Microsoft。MachineLearningServices/workspaces/data/versions
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 資源名稱 | 字串 (必要) |
| 父項識別碼 | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:工作區/數據 |
| 性能 | [必要]實體的其他屬性。 | DataVersionBaseProperties (必要) |
| 型別 | 資源類型 | 「Microsoft。MachineLearningServices/workspaces/data/versions@2023-04-01-preview” |
自動刪除設置
| 名字 | 描述 | 價值 |
|---|---|---|
| 條件 | 何時檢查資產是否已過期 | 'CreatedGreaterThan' 'LastAccessedGreaterThan' |
| 價值 | 到期條件值。 | 字串 |
DataVersionBaseProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| autoDelete設置 | 指定受控數據資產的生命周期設定。 | 自動刪除設置 |
| 數據類型 | 針對 mlTableData 類型設定為 'mltable',。 針對 uriFileDataVersion 類型設定為 'uri_file',。 針對 uriFolderDataVersion 類型設定為 'uri_folder',。 | 'mltable' “uri_file” 'uri_folder' (必要) |
| dataUri | [必要]數據的 URI。 範例: https://go.microsoft.com/fwlink/?linkid=2202330 | 字串 約束: 最小長度 = 1 模式 = [a-zA-Z0-9_] (必要) |
| 描述 | 資產描述文字。 | 字串 |
| 智慧財產權 | 智慧財產權詳細數據。 如果資料是智慧財產權,則使用 。 | 智慧財產權 |
| isAnonymous (匿名) | 如果名稱版本是系統產生的 (匿名註冊)。 針對定義 Stage 的類型,當提供 Stage 時,它會用來填入 IsAnonymous | 布爾 (bool) |
| isArchived 已存檔 | 資產是否已封存? 對於定義 Stage 的類型,當提供 Stage 時,它會用來填入 IsArchived | 布爾 (bool) |
| 性能 | 資產屬性字典。 | ResourceBaseProperties |
| 暫存 | 指派給此數據資產的數據生命周期階段 | 字串 |
| 標籤 | 標記字典。 標記可以新增、移除和更新。 | ResourceBaseTags |
智慧財產權
| 名字 | 描述 | 價值 |
|---|---|---|
| protectionLevel 保護級別 | 智慧財產權的保護層級。 | '全部' “無” |
| 發行者 | [必備]Publisher of the Intellectual Property。 必須與登錄發行者名稱相同。 | 字串 約束: 最小長度 = 1 模式 = [a-zA-Z0-9_] (必要) |
MLTableData
| 名字 | 描述 | 價值 |
|---|---|---|
| 數據類型 | [必要]指定數據類型。 | 'mltable' (必要) |
| referencedUri | MLTable 定義中所參考的 URI (譜系所需) | 字串[] |
ResourceBaseProperties
| 名字 | 描述 | 價值 |
|---|
ResourceBaseTags
| 名字 | 描述 | 價值 |
|---|
UriFileDataVersion
| 名字 | 描述 | 價值 |
|---|---|---|
| 數據類型 | [必要]指定數據類型。 | 'uri_file' (必要) |
UriFolderDataVersion
| 名字 | 描述 | 價值 |
|---|---|---|
| 數據類型 | [必要]指定數據類型。 | 'uri_folder' (必要) |