你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Microsoft.MachineLearningServices workspaces/labelingJobs 2022-10-01-preview
Bicep 资源定义
workspaces/labelingJobs 资源类型可以部署到:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.MachineLearningServices/workspaces/labelingJobs 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.MachineLearningServices/workspaces/labelingJobs@2022-10-01-preview' = {
name: 'string'
parent: resourceSymbolicName
properties: {
componentId: 'string'
computeId: 'string'
dataConfiguration: {
dataId: 'string'
incrementalDataRefreshEnabled: bool
}
description: 'string'
displayName: 'string'
experimentName: 'string'
identity: {
identityType: 'string'
// For remaining properties, see IdentityConfiguration objects
}
isArchived: bool
jobInstructions: {
uri: 'string'
}
jobType: 'string'
labelCategories: {}
labelingJobMediaProperties: {
mediaType: 'string'
// For remaining properties, see LabelingJobMediaProperties objects
}
mlAssistConfiguration: {
mlAssist: 'string'
// For remaining properties, see MLAssistConfiguration objects
}
properties: {}
services: {}
tags: {}
}
}
IdentityConfiguration 对象
设置 identityType 属性以指定对象的类型。
对于 AMLToken,请使用:
identityType: 'AMLToken'
对于 “托管”,请使用:
identityType: 'Managed'
clientId: 'string'
objectId: 'string'
resourceId: 'string'
对于 UserIdentity,请使用:
identityType: 'UserIdentity'
LabelingJobMediaProperties 对象
设置 mediaType 属性以指定对象的类型。
对于 Image,请使用:
mediaType: 'Image'
annotationType: 'string'
对于 “文本”,请使用:
mediaType: 'Text'
annotationType: 'string'
MLAssistConfiguration 对象
设置 mlAssist 属性以指定对象的类型。
对于 Disabled,请使用:
mlAssist: 'Disabled'
对于 “已启用”,请使用:
mlAssist: 'Enabled'
inferencingComputeBinding: 'string'
trainingComputeBinding: 'string'
属性值
workspaces/labelingJobs
名称 | 说明 | 值 |
---|---|---|
name | 资源名称 了解如何在 Bicep 中为子资源设置名称和类型。 |
字符串 (必需) |
父级 (parent) | 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。 有关详细信息,请参阅 父资源之外的子资源。 |
类型为资源的符号名称: 工作区 |
properties | [必需]实体的其他属性。 | 需要标记JobProperties () |
LabelingJobProperties
名称 | 说明 | 值 |
---|---|---|
componentId | 组件资源的 ARM 资源 ID。 | string |
computeId | 计算资源的 ARM 资源 ID。 | string |
dataConfiguration | 配置作业中使用的数据。 | LabelingDataConfiguration |
description | 资产说明文本。 | string |
displayName | 作业的显示名称。 | string |
experimentName | 作业所属的试验的名称。 如果未设置,作业将置于“默认”试验中。 | string |
identity | 标识配置。 如果已设置,应为 AmlToken、ManagedIdentity、UserIdentity 或 null 之一。 如果为 null,则默认为 AmlToken。 |
IdentityConfiguration |
isArchived | 资产是否已存档? | bool |
jobInstructions | 作业的标记说明。 | LabelingJobInstructions |
jobType | [必需]指定作业的类型。 | “AutoML” “Command” “标记” “Pipeline” “Spark” 需要“扫描” () |
labelCategories | 作业的标签类别。 | object |
labelingJobMediaProperties | 作业中的媒体类型特定属性。 | LabelingJobMediaProperties |
mlAssistConfiguration | 在作业中配置 MLAssist 功能。 | MLAssistConfiguration |
properties | 资产属性字典。 | object |
services | JobEndpoints 列表。 对于本地作业,作业终结点的终结点值为 FileStreamObject。 |
object |
标记 | 标记字典。 可以添加、删除和更新标记。 | object |
LabelingDataConfiguration
名称 | 说明 | 值 |
---|---|---|
dataId | 要执行标记的数据资产的资源 ID。 | 字符串 |
incrementalDataRefreshEnabled | 指示是否启用增量数据刷新。 | bool |
IdentityConfiguration
名称 | 说明 | 值 |
---|---|---|
IdentityType | 设置对象类型 | AMLToken 托管 需要 UserIdentity () |
AmlToken
名称 | 说明 | 值 |
---|---|---|
IdentityType | [必需]指定标识框架的类型。 | “AMLToken” (必需) |
ManagedIdentity
名称 | 说明 | 值 |
---|---|---|
IdentityType | [必需]指定标识框架的类型。 | “托管” (必需) |
clientId | 按客户端 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 | string |
objectId | 按对象 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 | 字符串 |
ResourceId | 按 ARM 资源 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 | 字符串 |
UserIdentity
名称 | 说明 | 值 |
---|---|---|
IdentityType | [必需]指定标识框架的类型。 | “UserIdentity” (必需的) |
LabelingJobInstructions
名称 | 说明 | 值 |
---|---|---|
uri | 指向包含标签器详细标记说明的页面的链接。 | string |
LabelingJobMediaProperties
名称 | 说明 | 值 |
---|---|---|
mediaType | 设置对象类型 | 图像 所需的文本 () |
LabelingJobImageProperties
名称 | 说明 | 值 |
---|---|---|
mediaType | [必需]作业的媒体类型。 | “Image” (必需) |
annotationType | 图像标记作业的注释类型。 | “BoundingBox” “分类” “InstanceSegmentation” |
LabelingJobTextProperties
名称 | 说明 | 值 |
---|---|---|
mediaType | [必需]作业的媒体类型。 | “Text” (必需) |
annotationType | 文本标记作业的注释类型。 | “分类” “NamedEntityRecognition” |
MLAssistConfiguration
名称 | 说明 | 值 |
---|---|---|
mlAssist | 设置对象类型 | 已禁用 启用 (所需的) |
MLAssistConfigurationDisabled
名称 | 说明 | 值 |
---|---|---|
mlAssist | [必需]指示是否启用 MLAssist 功能。 | “Disabled” (必需) |
MLAssistConfigurationEnabled
名称 | 说明 | 值 |
---|---|---|
mlAssist | [必需]指示是否启用 MLAssist 功能。 | “Enabled” (必需) |
inferencingComputeBinding | [必需]用于推理的 AML 计算绑定。 | 字符串 (必需) |
trainingComputeBinding | [必需]训练中使用的 AML 计算绑定。 | 字符串 (必需) |
ARM 模板资源定义
workspaces/labelingJobs 资源类型可部署到:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.MachineLearningServices/workspaces/labelingJobs 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.MachineLearningServices/workspaces/labelingJobs",
"apiVersion": "2022-10-01-preview",
"name": "string",
"properties": {
"componentId": "string",
"computeId": "string",
"dataConfiguration": {
"dataId": "string",
"incrementalDataRefreshEnabled": "bool"
},
"description": "string",
"displayName": "string",
"experimentName": "string",
"identity": {
"identityType": "string"
// For remaining properties, see IdentityConfiguration objects
},
"isArchived": "bool",
"jobInstructions": {
"uri": "string"
},
"jobType": "string",
"labelCategories": {},
"labelingJobMediaProperties": {
"mediaType": "string"
// For remaining properties, see LabelingJobMediaProperties objects
},
"mlAssistConfiguration": {
"mlAssist": "string"
// For remaining properties, see MLAssistConfiguration objects
},
"properties": {},
"services": {},
"tags": {}
}
}
IdentityConfiguration 对象
设置 identityType 属性以指定对象的类型。
对于 AMLToken,请使用:
"identityType": "AMLToken"
对于 “托管”,请使用:
"identityType": "Managed",
"clientId": "string",
"objectId": "string",
"resourceId": "string"
对于 UserIdentity,请使用:
"identityType": "UserIdentity"
LabelingJobMediaProperties 对象
设置 mediaType 属性以指定对象的类型。
对于 Image,请使用:
"mediaType": "Image",
"annotationType": "string"
对于 “文本”,请使用:
"mediaType": "Text",
"annotationType": "string"
MLAssistConfiguration 对象
设置 mlAssist 属性以指定对象的类型。
对于 “已禁用”,请使用:
"mlAssist": "Disabled"
对于 “已启用”,请使用:
"mlAssist": "Enabled",
"inferencingComputeBinding": "string",
"trainingComputeBinding": "string"
属性值
workspaces/labelingJobs
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | “Microsoft.MachineLearningServices/workspaces/labelingJobs” |
apiVersion | 资源 API 版本 | '2022-10-01-preview' |
name | 资源名称 了解如何在 JSON ARM 模板中设置子资源的名称和类型。 |
字符串 (必需) |
properties | [必需]实体的其他属性。 | LabelingJobProperties (必需) |
LabelingJobProperties
名称 | 说明 | 值 |
---|---|---|
componentId | 组件资源的 ARM 资源 ID。 | string |
computeId | 计算资源的 ARM 资源 ID。 | string |
dataConfiguration | 配置作业中使用的数据。 | LabelingDataConfiguration |
description | 资产说明文本。 | string |
displayName | 作业的显示名称。 | string |
experimentName | 作业所属的试验的名称。 如果未设置,作业将置于“默认”试验中。 | string |
identity | 标识配置。 如果已设置,应为 AmlToken、ManagedIdentity、UserIdentity 或 null 之一。 如果为 null,则默认为 AmlToken。 |
IdentityConfiguration |
isArchived | 资产是否已存档? | bool |
jobInstructions | 标记作业的说明。 | LabelingJobInstructions |
jobType | [必需]指定作业的类型。 | “AutoML” 'Command' “标记” “Pipeline” “Spark” 需要“扫描” () |
labelCategories | 标记作业的类别。 | object |
labelingJobMediaProperties | 作业中的媒体类型特定属性。 | LabelingJobMediaProperties |
mlAssistConfiguration | 作业中 MLAssist 功能的配置。 | MLAssistConfiguration |
properties | 资产属性字典。 | object |
services | JobEndpoint 列表。 对于本地作业,作业终结点的终结点值为 FileStreamObject。 |
object |
标记 | 标记字典。 可以添加、删除和更新标记。 | object |
LabelingDataConfiguration
名称 | 说明 | 值 |
---|---|---|
dataId | 要执行标记的数据资产的资源 ID。 | string |
incrementalDataRefreshEnabled | 指示是否启用增量数据刷新。 | bool |
IdentityConfiguration
名称 | 说明 | 值 |
---|---|---|
IdentityType | 设置对象类型 | AMLToken 托管 需要 UserIdentity () |
AmlToken
名称 | 说明 | 值 |
---|---|---|
IdentityType | [必需]指定标识框架的类型。 | 需要“AMLToken” () |
ManagedIdentity
名称 | 说明 | 值 |
---|---|---|
IdentityType | [必需]指定标识框架的类型。 | 需要“托管” () |
clientId | 按客户端 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 | string |
objectId | 按对象 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 | string |
ResourceId | 按 ARM 资源 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 | string |
UserIdentity
名称 | 说明 | 值 |
---|---|---|
IdentityType | [必需]指定标识框架的类型。 | 需要“UserIdentity” () |
LabelingJobInstructions
名称 | 说明 | 值 |
---|---|---|
uri | 指向包含标记人员详细标记说明的页面的链接。 | string |
LabelingJobMediaProperties
名称 | 说明 | 值 |
---|---|---|
mediaType | 设置对象类型 | 图像 需要文本 () |
LabelingJobImageProperties
名称 | 说明 | 值 |
---|---|---|
mediaType | [必需]作业的媒体类型。 | “Image” (必需) |
annotationType | 图像标记作业的注释类型。 | “BoundingBox” “分类” “InstanceSegmentation” |
LabelingJobTextProperties
名称 | 说明 | 值 |
---|---|---|
mediaType | [必需]作业的媒体类型。 | “Text” (必需) |
annotationType | 文本标记作业的注释类型。 | “分类” “NamedEntityRecognition” |
MLAssistConfiguration
名称 | 说明 | 值 |
---|---|---|
mlAssist | 设置对象类型 | 已禁用 已启用 (必需) |
MLAssistConfigurationDisabled
名称 | 说明 | 值 |
---|---|---|
mlAssist | [必需]指示是否启用 MLAssist 功能。 | “Disabled” (必需) |
MLAssistConfigurationEnabled
名称 | 说明 | 值 |
---|---|---|
mlAssist | [必需]指示是否启用 MLAssist 功能。 | “已启用” (必需) |
inferencingComputeBinding | [必需]用于推理的 AML 计算绑定。 | 字符串 (必需) |
trainingComputeBinding | [必需]训练中使用的 AML 计算绑定。 | 字符串 (必需) |
Terraform (AzAPI 提供程序) 资源定义
workspaces/labelingJobs 资源类型可以部署到:
- 资源组
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.MachineLearningServices/workspaces/labelingJobs 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.MachineLearningServices/workspaces/labelingJobs@2022-10-01-preview"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
componentId = "string"
computeId = "string"
dataConfiguration = {
dataId = "string"
incrementalDataRefreshEnabled = bool
}
description = "string"
displayName = "string"
experimentName = "string"
identity = {
identityType = "string"
// For remaining properties, see IdentityConfiguration objects
}
isArchived = bool
jobInstructions = {
uri = "string"
}
jobType = "string"
labelCategories = {}
labelingJobMediaProperties = {
mediaType = "string"
// For remaining properties, see LabelingJobMediaProperties objects
}
mlAssistConfiguration = {
mlAssist = "string"
// For remaining properties, see MLAssistConfiguration objects
}
properties = {}
services = {}
tags = {}
}
})
}
IdentityConfiguration 对象
设置 identityType 属性以指定对象的类型。
对于 AMLToken,请使用:
identityType = "AMLToken"
对于 “托管”,请使用:
identityType = "Managed"
clientId = "string"
objectId = "string"
resourceId = "string"
对于 UserIdentity,请使用:
identityType = "UserIdentity"
LabelingJobMediaProperties 对象
设置 mediaType 属性以指定对象的类型。
对于 Image,请使用:
mediaType = "Image"
annotationType = "string"
对于 “文本”,请使用:
mediaType = "Text"
annotationType = "string"
MLAssistConfiguration 对象
设置 mlAssist 属性以指定对象的类型。
对于 Disabled,请使用:
mlAssist = "Disabled"
对于 “已启用”,请使用:
mlAssist = "Enabled"
inferencingComputeBinding = "string"
trainingComputeBinding = "string"
属性值
workspaces/labelingJobs
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | “Microsoft.MachineLearningServices/workspaces/labelingJobs@2022-10-01-preview” |
name | 资源名称 | 字符串 (必需) |
parent_id | 此资源的父资源 ID。 | 类型为“工作区”的资源的 ID |
properties | [必需]实体的其他属性。 | 需要标记JobProperties () |
LabelingJobProperties
名称 | 说明 | 值 |
---|---|---|
componentId | 组件资源的 ARM 资源 ID。 | 字符串 |
computeId | 计算资源的 ARM 资源 ID。 | 字符串 |
dataConfiguration | 配置作业中使用的数据。 | LabelingDataConfiguration |
description | 资产说明文本。 | 字符串 |
displayName | 作业的显示名称。 | 字符串 |
experimentName | 作业所属的试验的名称。 如果未设置,作业将置于“默认”试验中。 | 字符串 |
identity | 标识配置。 如果已设置,应为 AmlToken、ManagedIdentity、UserIdentity 或 null 之一。 如果为 null,则默认为 AmlToken。 |
IdentityConfiguration |
isArchived | 资产是否已存档? | bool |
jobInstructions | 标记作业的说明。 | LabelingJobInstructions |
jobType | [必需]指定作业的类型。 | “AutoML” “Command” “标记” “Pipeline” “Spark” 需要“扫描” () |
labelCategories | 标记作业的类别。 | object |
labelingJobMediaProperties | 作业中的媒体类型特定属性。 | LabelingJobMediaProperties |
mlAssistConfiguration | 作业中 MLAssist 功能的配置。 | MLAssistConfiguration |
properties | 资产属性字典。 | object |
services | JobEndpoint 列表。 对于本地作业,作业终结点的终结点值为 FileStreamObject。 |
object |
标记 | 标记字典。 可以添加、删除和更新标记。 | object |
LabelingDataConfiguration
名称 | 说明 | 值 |
---|---|---|
dataId | 要执行标记的数据资产的资源 ID。 | string |
incrementalDataRefreshEnabled | 指示是否启用增量数据刷新。 | bool |
IdentityConfiguration
名称 | 说明 | 值 |
---|---|---|
IdentityType | 设置对象类型 | AMLToken 托管 需要 UserIdentity () |
AmlToken
名称 | 说明 | 值 |
---|---|---|
IdentityType | [必需]指定标识框架的类型。 | 需要“AMLToken” () |
ManagedIdentity
名称 | 说明 | 值 |
---|---|---|
IdentityType | [必需]指定标识框架的类型。 | 需要“托管” () |
clientId | 按客户端 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 | 字符串 |
objectId | 按对象 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 | 字符串 |
ResourceId | 按 ARM 资源 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 | 字符串 |
UserIdentity
名称 | 说明 | 值 |
---|---|---|
IdentityType | [必需]指定标识框架的类型。 | “UserIdentity” (必需) |
LabelingJobInstructions
名称 | 说明 | 值 |
---|---|---|
uri | 指向包含标记人员详细标记说明的页面的链接。 | 字符串 |
LabelingJobMediaProperties
名称 | 说明 | 值 |
---|---|---|
mediaType | 设置对象类型 | 图像 需要文本 () |
LabelingJobImageProperties
名称 | 说明 | 值 |
---|---|---|
mediaType | [必需]作业的媒体类型。 | “Image” (必需) |
annotationType | 图像标记作业的批注类型。 | “BoundingBox” “Classification” “InstanceSegmentation” |
LabelingJobTextProperties
名称 | 说明 | 值 |
---|---|---|
mediaType | [必需]作业的媒体类型。 | “Text” (必需) |
annotationType | 文本标记作业的批注类型。 | “Classification” “NamedEntityRecognition” |
MLAssistConfiguration
名称 | 说明 | 值 |
---|---|---|
mlAssist | 设置对象类型 | 已禁用 启用 (所需的) |
MLAssistConfigurationDisabled
名称 | 说明 | 值 |
---|---|---|
mlAssist | [必需]指示是否启用 MLAssist 功能。 | “Disabled” (必需) |
MLAssistConfigurationEnabled
名称 | 说明 | 值 |
---|---|---|
mlAssist | [必需]指示是否启用 MLAssist 功能。 | “已启用” (必需) |
inferencingComputeBinding | [必需]用于推理的 AML 计算绑定。 | 字符串 (必需) |
trainingComputeBinding | [必需]训练中使用的 AML 计算绑定。 | 字符串 (必需) |