你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.MachineLearningServices workspaces/labelingJobs 2023-06-01-preview

Bicep 资源定义

workspaces/labelingJobs 资源类型可以通过针对以下操作进行部署:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.MachineLearningServices/workspaces/labelingJobs 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/labelingJobs@2023-06-01-preview' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    componentId: 'string'
    computeId: 'string'
    dataConfiguration: {
      dataId: 'string'
      incrementalDataRefresh: 'string'
    }
    description: 'string'
    displayName: 'string'
    experimentName: 'string'
    identity: {
      identityType: 'string'
      // For remaining properties, see IdentityConfiguration objects
    }
    isArchived: bool
    jobInstructions: {
      uri: 'string'
    }
    jobType: 'string'
    labelCategories: {
      {customized property}: {
        classes: {
          {customized property}: {
            displayName: 'string'
            subclasses: {
              {customized property}: {}
          }
        }
        displayName: 'string'
        multiSelect: 'string'
      }
      {customized property}: {
        classes: {
          {customized property}: {
            displayName: 'string'
            subclasses: {
              {customized property}: {}
          }
        }
        displayName: 'string'
        multiSelect: 'string'
      }
    }
    labelingJobMediaProperties: {
      mediaType: 'string'
      // For remaining properties, see LabelingJobMediaProperties objects
    }
    mlAssistConfiguration: {
      mlAssist: 'string'
      // For remaining properties, see MLAssistConfiguration objects
    }
    notificationSetting: {
      emailOn: [
        'string'
      ]
      emails: [
        'string'
      ]
      webhooks: {
        {customized property}: {
          eventType: 'string'
          webhookType: 'string'
          // For remaining properties, see Webhook objects
        }
      }
    }
    properties: {
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
    }
    secretsConfiguration: {
      {customized property}: {
        uri: 'string'
        workspaceSecretName: 'string'
      }
      {customized property}: {
        uri: 'string'
        workspaceSecretName: 'string'
      }
    }
    services: {
      {customized property}: {
        endpoint: 'string'
        jobServiceType: 'string'
        nodes: {
          nodesValueType: 'string'
          // For remaining properties, see Nodes objects
        }
        port: int
        properties: {
          {customized property}: 'string'
        }
      }
      {customized property}: {
        endpoint: 'string'
        jobServiceType: 'string'
        nodes: {
          nodesValueType: 'string'
          // For remaining properties, see Nodes objects
        }
        port: int
        properties: {
          {customized property}: 'string'
        }
      }
    }
    tags: {
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
      {customized property}: 'string'
    }
  }
}

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'

Webhook 对象

设置 webhookType 属性以指定对象的类型。

对于 AzureDevOps,请使用:

  webhookType: 'AzureDevOps'

Nodes 对象

设置 nodesValueType 属性以指定对象的类型。

对于 “全部”,请使用:

  nodesValueType: 'All'

属性值

workspaces/labelingJobs

名称 说明
name 资源名称

了解如何在 Bicep 中为子资源设置名称和类型。
字符串 (必需)
父级 (parent) 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源之外的子资源
类型为资源的符号名称: 工作区
properties [必需]实体的其他属性。 需要标记JobProperties ()

LabelingJobProperties

名称 说明
componentId 组件资源的 ARM 资源 ID。 字符串
computeId 计算资源的 ARM 资源 ID。 字符串
dataConfiguration 配置作业中使用的数据。 LabelingDataConfiguration
description 资产说明文本。 字符串
displayName 作业的显示名称。 字符串
experimentName 作业所属的试验的名称。 如果未设置,作业将置于“默认”试验中。 字符串
标识 标识配置。 如果已设置,应为 AmlToken、ManagedIdentity、UserIdentity 或 null 之一。
如果为 null,则默认为 AmlToken。
IdentityConfiguration
isArchived 资产是否已存档? bool
jobInstructions 作业的标记说明。 LabelingJobInstructions
jobType [必需]指定作业的类型。 “AutoML”
“Command”
“标记”
“Pipeline”
“Spark”
需要“扫描” ()
labelCategories 作业的标签类别。 LabelingJobLabelCategories
labelingJobMediaProperties 作业中的媒体类型特定属性。 LabelingJobMediaProperties
mlAssistConfiguration 在作业中配置 MLAssist 功能。 MLAssistConfiguration
notificationSetting 作业的通知设置 NotificationSetting
properties 资产属性字典。 ResourceBaseProperties
secretsConfiguration 用于在运行时提供机密的配置。 JobBaseSecretsConfiguration
services JobEndpoints 列表。
对于本地作业,作业终结点的终结点值为 FileStreamObject。
JobBaseServices
标记 标记字典。 可以添加、删除和更新标记。 对象 (object)

LabelingDataConfiguration

名称 说明
dataId 要执行标记的数据资产的资源 ID。 string
incrementalDataRefresh 指示是否启用增量数据刷新。 “Disabled”
“已启用”

IdentityConfiguration

名称 说明
IdentityType 设置对象类型 AMLToken
托管
需要 UserIdentity ()

AmlToken

名称 说明
IdentityType [必需]指定标识框架的类型。 “AMLToken” (必需)

ManagedIdentity

名称 说明
IdentityType [必需]指定标识框架的类型。 “托管” (必需)
clientId 按客户端 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 字符串

约束:
最小长度 = 36
最大长度 = 36
Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
objectId 按对象 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 字符串

约束:
最小长度 = 36
最大长度 = 36
Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
ResourceId 按 ARM 资源 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 字符串

UserIdentity

名称 说明
IdentityType [必需]指定标识框架的类型。 “UserIdentity” (必需的)

LabelingJobInstructions

名称 说明
uri 指向包含标签器详细标记说明的页面的链接。 字符串

LabelingJobLabelCategories

名称 说明
{customized property} LabelCategory
{customized property} LabelCategory

LabelCategory

名称 说明
此类别中的标签类字典。 LabelCategoryClasses
displayName 标签类别的显示名称。 字符串
multiSelect 指示是否允许在此类别中选择多个类。 “Disabled”
“已启用”

LabelCategoryClasses

名称 说明
{customized property} LabelClass

LabelClass

名称 说明
displayName 标签类的显示名称。 字符串
标签类的子类字典。 LabelClassSubclasses

LabelClassSubclasses

名称 说明
{customized property} LabelClass

LabelingJobMediaProperties

名称 说明
mediaType 设置对象类型 图像
需要文本 ()

LabelingJobImageProperties

名称 说明
mediaType [必需]作业的媒体类型。 “Image” (必需)
annotationType 图像标记作业的注释类型。 “BoundingBox”
“分类”
“InstanceSegmentation”

LabelingJobTextProperties

名称 说明
mediaType [必需]作业的媒体类型。 “Text” (必需)
annotationType 文本标记作业的注释类型。 “分类”
“NamedEntityRecognition”

MLAssistConfiguration

名称 说明
mlAssist 设置对象类型 已禁用
已启用 (必需)

MLAssistConfigurationDisabled

名称 说明
mlAssist [必需]指示是否启用 MLAssist 功能。 “Disabled” (必需)

MLAssistConfigurationEnabled

名称 说明
mlAssist [必需]指示是否启用 MLAssist 功能。 “已启用” (必需)
inferencingComputeBinding [必需]用于推理的 AML 计算绑定。 字符串 (必需)

约束:
最小长度 = 1
Pattern = [a-zA-Z0-9_]
trainingComputeBinding [必需]训练中使用的 AML 计算绑定。 字符串 (必需)

约束:
最小长度 = 1
模式 = [a-zA-Z0-9_]

NotificationSetting

名称 说明
emailOn 根据指定的通知类型向用户发送电子邮件通知 包含任何一项的字符串数组:
“JobCancelled”
“JobCompleted”
'JobFailed'
emails 这是电子邮件收件人列表,其总字符数限制为 499 个字符,逗号分隔符 string[]
webhooks 将 Webhook 回调发送到服务。 密钥是用户为 Webhook 提供的名称。 NotificationSettingWebhooks

NotificationSettingWebhooks

名称 说明
{customized property} Webhook

Webhook

名称 说明
eventType 对指定的通知事件发送回调 string
webhookType 设置对象类型 需要 AzureDevOps ()

AzureDevOpsWebhook

名称 说明
webhookType [必需]指定要发送回调的服务的类型 “AzureDevOps” (必需的)

ResourceBaseProperties

名称 说明
{customized property} 字符串
{customized property} 字符串
{customized property} string
{customized property} string
{customized property} string
{customized property} string
{customized property} string
{customized property} string
{customized property} string
{customized property} 字符串
{customized property} 字符串
{customized property} 字符串
{customized property} 字符串
{customized property} 字符串
{customized property} string
{customized property} string
{customized property} 字符串
{customized property} string
{customized property} string
{customized property} string

JobBaseSecretsConfiguration

名称 说明
{customized property} SecretConfiguration
{customized property} SecretConfiguration

SecretConfiguration

名称 说明
uri 机密 URI。
示例 URI : https://myvault.vault.azure.net/secrets/mysecretname/secretversion
string
workspaceSecretName 工作区密钥保管库中的机密名称。 string

JobBaseServices

名称 说明
{customized property} JobService
{customized property} JobService

JobService

名称 说明
endpoint 终结点的 URL。 字符串
jobServiceType 终结点类型。 字符串
nodes 用户想要启动服务的节点。
如果未将 Nodes 设置为 null,则仅在领导节点上启动该服务。
Nodes
port 用户设置的终结点的端口。 int
properties 要对终结点设置的其他属性。 JobServiceProperties

Nodes

名称 说明
nodesValueType 设置对象类型 所有 (必需)

AllNodes

名称 说明
nodesValueType [必需]Nodes 值的类型 “All” (必需)

JobServiceProperties

名称 说明
{customized property} 字符串

ARM 模板资源定义

workspaces/labelingJobs 资源类型可以通过针对以下操作进行部署:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.MachineLearningServices/workspaces/labelingJobs 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.MachineLearningServices/workspaces/labelingJobs",
  "apiVersion": "2023-06-01-preview",
  "name": "string",
  "properties": {
    "componentId": "string",
    "computeId": "string",
    "dataConfiguration": {
      "dataId": "string",
      "incrementalDataRefresh": "string"
    },
    "description": "string",
    "displayName": "string",
    "experimentName": "string",
    "identity": {
      "identityType": "string"
      // For remaining properties, see IdentityConfiguration objects
    },
    "isArchived": "bool",
    "jobInstructions": {
      "uri": "string"
    },
    "jobType": "string",
    "labelCategories": {
      "{customized property}": {
        "classes": {
          "{customized property}": {
            "displayName": "string",
            "subclasses": {
              "{customized property}": {}
          }
        },
        "displayName": "string",
        "multiSelect": "string"
      },
      "{customized property}": {
        "classes": {
          "{customized property}": {
            "displayName": "string",
            "subclasses": {
              "{customized property}": {}
          }
        },
        "displayName": "string",
        "multiSelect": "string"
      }
    },
    "labelingJobMediaProperties": {
      "mediaType": "string"
      // For remaining properties, see LabelingJobMediaProperties objects
    },
    "mlAssistConfiguration": {
      "mlAssist": "string"
      // For remaining properties, see MLAssistConfiguration objects
    },
    "notificationSetting": {
      "emailOn": [ "string" ],
      "emails": [ "string" ],
      "webhooks": {
        "{customized property}": {
          "eventType": "string",
          "webhookType": "string"
          // For remaining properties, see Webhook objects
        }
      }
    },
    "properties": {
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string"
    },
    "secretsConfiguration": {
      "{customized property}": {
        "uri": "string",
        "workspaceSecretName": "string"
      },
      "{customized property}": {
        "uri": "string",
        "workspaceSecretName": "string"
      }
    },
    "services": {
      "{customized property}": {
        "endpoint": "string",
        "jobServiceType": "string",
        "nodes": {
          "nodesValueType": "string"
          // For remaining properties, see Nodes objects
        },
        "port": "int",
        "properties": {
          "{customized property}": "string"
        }
      },
      "{customized property}": {
        "endpoint": "string",
        "jobServiceType": "string",
        "nodes": {
          "nodesValueType": "string"
          // For remaining properties, see Nodes objects
        },
        "port": "int",
        "properties": {
          "{customized property}": "string"
        }
      }
    },
    "tags": {
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string",
      "{customized property}": "string"
    }
  }
}

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"

Webhook 对象

设置 webhookType 属性以指定对象的类型。

对于 AzureDevOps,请使用:

  "webhookType": "AzureDevOps"

Nodes 对象

设置 nodesValueType 属性以指定对象的类型。

对于 “全部”,请使用:

  "nodesValueType": "All"

属性值

workspaces/labelingJobs

名称 说明 Value
type 资源类型 “Microsoft.MachineLearningServices/workspaces/labelingJobs”
apiVersion 资源 API 版本 “2023-06-01-preview”
name 资源名称

了解如何在 JSON ARM 模板中为子资源设置名称和类型。
字符串 (必需)
properties [必需]实体的其他属性。 需要标记JobProperties ()

LabelingJobProperties

名称 说明
componentId 组件资源的 ARM 资源 ID。 字符串
computeId 计算资源的 ARM 资源 ID。 字符串
dataConfiguration 配置作业中使用的数据。 LabelingDataConfiguration
description 资产说明文本。 字符串
displayName 作业的显示名称。 string
experimentName 作业所属的试验的名称。 如果未设置,作业将置于“默认”试验中。 string
标识 标识配置。 如果已设置,应为 AmlToken、ManagedIdentity、UserIdentity 或 null 之一。
如果为 null,则默认为 AmlToken。
IdentityConfiguration
isArchived 资产是否已存档? bool
jobInstructions 标记作业的说明。 LabelingJobInstructions
jobType [必需]指定作业的类型。 “AutoML”
'Command'
“标记”
“Pipeline”
“Spark”
需要“扫描” ()
labelCategories 标记作业的类别。 LabelingJobLabelCategories
labelingJobMediaProperties 作业中的媒体类型特定属性。 LabelingJobMediaProperties
mlAssistConfiguration 作业中 MLAssist 功能的配置。 MLAssistConfiguration
notificationSetting 作业的通知设置 NotificationSetting
properties 资产属性字典。 ResourceBaseProperties
secretsConfiguration 配置在运行时可用的机密。 JobBaseSecretsConfiguration
services JobEndpoint 列表。
对于本地作业,作业终结点的终结点值为 FileStreamObject。
JobBaseServices
标记 标记字典。 可以添加、删除和更新标记。 对象 (object)

LabelingDataConfiguration

名称 说明
dataId 要执行标记的数据资产的资源 ID。 字符串
incrementalDataRefresh 指示是否启用增量数据刷新。 'Disabled'
'Enabled'

IdentityConfiguration

名称 说明
IdentityType 设置对象类型 AMLToken
托管
需要 UserIdentity ()

AmlToken

名称 说明
IdentityType [必需]指定标识框架的类型。 需要“AMLToken” ()

ManagedIdentity

名称 说明
IdentityType [必需]指定标识框架的类型。 需要“托管” ()
clientId 按客户端 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 string

约束:
最小长度 = 36
最大长度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
objectId 按对象 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 字符串

约束:
最小长度 = 36
最大长度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
ResourceId 按 ARM 资源 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 string

UserIdentity

名称 说明
IdentityType [必需]指定标识框架的类型。 需要“UserIdentity” ()

LabelingJobInstructions

名称 说明
uri 指向包含标记人员详细标记说明的页面的链接。 string

LabelingJobLabelCategories

名称 说明
{customized property} LabelCategory
{customized property} LabelCategory

LabelCategory

名称 说明
此类别中的标签类字典。 LabelCategoryClasses
displayName 标签类别的显示名称。 字符串
multiSelect 指示是否允许在此类别中选择多个类。 'Disabled'
'Enabled'

LabelCategoryClasses

名称 说明
{customized property} LabelClass

LabelClass

名称 说明
displayName 标签类的显示名称。 字符串
标签类的子类字典。 LabelClassSubclasses

LabelClassSubclasses

名称 说明
{customized property} LabelClass

LabelingJobMediaProperties

名称 说明
mediaType 设置对象类型 图像
需要文本 ()

LabelingJobImageProperties

名称 说明
mediaType [必需]作业的媒体类型。 “Image” (必需)
annotationType 图像标记作业的批注类型。 “BoundingBox”
“Classification”
“InstanceSegmentation”

LabelingJobTextProperties

名称 说明
mediaType [必需]作业的媒体类型。 “Text” (必需)
annotationType 文本标记作业的注释类型。 “分类”
“NamedEntityRecognition”

MLAssistConfiguration

名称 说明
mlAssist 设置对象类型 已禁用
已启用 (必需)

MLAssistConfigurationDisabled

名称 说明
mlAssist [必需]指示是否启用 MLAssist 功能。 “Disabled” (必需)

MLAssistConfigurationEnabled

名称 说明
mlAssist [必需]指示是否启用 MLAssist 功能。 “已启用” (必需)
inferencingComputeBinding [必需]用于推理的 AML 计算绑定。 字符串 (必需)

约束:
最小长度 = 1
Pattern = [a-zA-Z0-9_]
trainingComputeBinding [必需]训练中使用的 AML 计算绑定。 字符串 (必需)

约束:
最小长度 = 1
Pattern = [a-zA-Z0-9_]

NotificationSetting

名称 说明
emailOn 使用指定通知类型向用户发送电子邮件通知 包含任意项的字符串数组:
“JobCancelled”
“JobCompleted”
“JobFailed”
emails 这是电子邮件收件人列表,其总字符数限制为 499 个字符,带逗号分隔符 string[]
webhooks 将 Webhook 回调发送到服务。 密钥是用户为 Webhook 提供的名称。 NotificationSettingWebhooks

NotificationSettingWebhooks

名称 说明
{customized property} Webhook

Webhook

名称 说明
eventType 对指定的通知事件发送回调 string
webhookType 设置对象类型 AzureDevOps (必需)

AzureDevOpsWebhook

名称 说明
webhookType [必需]指定要发送回调的服务类型 “AzureDevOps” (必需的)

ResourceBaseProperties

名称 说明
{customized property} string
{customized property} string
{customized property} string
{customized property} 字符串
{customized property} string
{customized property} string
{customized property} string
{customized property} string
{customized property} 字符串
{customized property} 字符串
{customized property} 字符串
{customized property} string
{customized property} string
{customized property} string
{customized property} string
{customized property} 字符串
{customized property} 字符串
{customized property} string
{customized property} string
{customized property} string

JobBaseSecretsConfiguration

名称 说明
{customized property} SecretConfiguration
{customized property} SecretConfiguration

SecretConfiguration

名称 说明
uri 机密 URI。
示例 URI : https://myvault.vault.azure.net/secrets/mysecretname/secretversion
字符串
workspaceSecretName 工作区密钥保管库中的机密名称。 string

JobBaseServices

名称 说明
{customized property} JobService
{customized property} JobService

JobService

名称 说明
endpoint 终结点的 URL。 字符串
jobServiceType 终结点类型。 string
nodes 用户要启动服务的节点。
如果 Nodes 未设置为或设置为 null,则服务将仅在前导节点上启动。
Nodes
port 用户设置的终结点的端口。 int
properties 要对终结点设置的其他属性。 JobServiceProperties

Nodes

名称 说明
nodesValueType 设置对象类型 需要所有 ()

AllNodes

名称 说明
nodesValueType [必需]Nodes 值的类型 “全部” (必需)

JobServiceProperties

名称 说明
{customized property} 字符串

Terraform (AzAPI 提供程序) 资源定义

可以使用面向以下操作部署 workspaces/labelingJobs 资源类型:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.MachineLearningServices/workspaces/labelingJobs 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.MachineLearningServices/workspaces/labelingJobs@2023-06-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      componentId = "string"
      computeId = "string"
      dataConfiguration = {
        dataId = "string"
        incrementalDataRefresh = "string"
      }
      description = "string"
      displayName = "string"
      experimentName = "string"
      identity = {
        identityType = "string"
        // For remaining properties, see IdentityConfiguration objects
      }
      isArchived = bool
      jobInstructions = {
        uri = "string"
      }
      jobType = "string"
      labelCategories = {
        {customized property} = {
          classes = {
            {customized property} = {
              displayName = "string"
              subclasses = {
                {customized property} = {}
            }
          }
          displayName = "string"
          multiSelect = "string"
        }
        {customized property} = {
          classes = {
            {customized property} = {
              displayName = "string"
              subclasses = {
                {customized property} = {}
            }
          }
          displayName = "string"
          multiSelect = "string"
        }
      }
      labelingJobMediaProperties = {
        mediaType = "string"
        // For remaining properties, see LabelingJobMediaProperties objects
      }
      mlAssistConfiguration = {
        mlAssist = "string"
        // For remaining properties, see MLAssistConfiguration objects
      }
      notificationSetting = {
        emailOn = [
          "string"
        ]
        emails = [
          "string"
        ]
        webhooks = {
          {customized property} = {
            eventType = "string"
            webhookType = "string"
            // For remaining properties, see Webhook objects
          }
        }
      }
      properties = {
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
      }
      secretsConfiguration = {
        {customized property} = {
          uri = "string"
          workspaceSecretName = "string"
        }
        {customized property} = {
          uri = "string"
          workspaceSecretName = "string"
        }
      }
      services = {
        {customized property} = {
          endpoint = "string"
          jobServiceType = "string"
          nodes = {
            nodesValueType = "string"
            // For remaining properties, see Nodes objects
          }
          port = int
          properties = {
            {customized property} = "string"
          }
        }
        {customized property} = {
          endpoint = "string"
          jobServiceType = "string"
          nodes = {
            nodesValueType = "string"
            // For remaining properties, see Nodes objects
          }
          port = int
          properties = {
            {customized property} = "string"
          }
        }
      }
      tags = {
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
        {customized property} = "string"
      }
    }
  })
}

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"

Webhook 对象

设置 webhookType 属性以指定对象的类型。

对于 AzureDevOps,请使用:

  webhookType = "AzureDevOps"

Nodes 对象

设置 nodesValueType 属性以指定对象的类型。

对于 “全部”,请使用:

  nodesValueType = "All"

属性值

workspaces/labelingJobs

名称 说明 Value
type 资源类型 “Microsoft.MachineLearningServices/workspaces/labelingJobs@2023-06-01-preview”
name 资源名称 字符串 (必需)
parent_id 此资源的父资源的 ID。 类型为的资源的 ID: 工作区
properties [必需]实体的其他属性。 LabelingJobProperties (必需)

LabelingJobProperties

名称 说明
componentId 组件资源的 ARM 资源 ID。 字符串
computeId 计算资源的 ARM 资源 ID。 string
dataConfiguration 配置作业中使用的数据。 LabelingDataConfiguration
description 资产说明文本。 字符串
displayName 作业的显示名称。 字符串
experimentName 作业所属的试验的名称。 如果未设置,作业将置于“默认”试验中。 string
标识 标识配置。 如果已设置,应为 AmlToken、ManagedIdentity、UserIdentity 或 null 之一。
如果为 null,则默认为 AmlToken。
IdentityConfiguration
isArchived 资产是否已存档? bool
jobInstructions 标记作业的说明。 LabelingJobInstructions
jobType [必需]指定作业的类型。 “AutoML”
“Command”
“标记”
“Pipeline”
“Spark”
需要“扫描” ()
labelCategories 标记作业的类别。 LabelingJobLabelCategories
labelingJobMediaProperties 作业中的媒体类型特定属性。 LabelingJobMediaProperties
mlAssistConfiguration 作业中 MLAssist 功能的配置。 MLAssistConfiguration
notificationSetting 作业的通知设置 NotificationSetting
properties 资产属性字典。 ResourceBaseProperties
secretsConfiguration 配置在运行时可用的机密。 JobBaseSecretsConfiguration
services JobEndpoint 列表。
对于本地作业,作业终结点的终结点值为 FileStreamObject。
JobBaseServices
标记 标记字典。 可以添加、删除和更新标记。 对象 (object)

LabelingDataConfiguration

名称 说明
dataId 要执行标记的数据资产的资源 ID。 字符串
incrementalDataRefresh 指示是否启用增量数据刷新。 “Disabled”
“Enabled”

IdentityConfiguration

名称 说明
IdentityType 设置对象类型 AMLToken
托管
需要 UserIdentity ()

AmlToken

名称 说明
IdentityType [必需]指定标识框架的类型。 需要“AMLToken” ()

ManagedIdentity

名称 说明
IdentityType [必需]指定标识框架的类型。 需要“托管” ()
clientId 按客户端 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 字符串

约束:
最小长度 = 36
最大长度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
objectId 按对象 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 字符串

约束:
最小长度 = 36
最大长度 = 36
模式 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$
ResourceId 按 ARM 资源 ID 指定用户分配的标识。 对于系统分配的,请勿设置此字段。 字符串

UserIdentity

名称 说明
IdentityType [必需]指定标识框架的类型。 “UserIdentity” (必需)

LabelingJobInstructions

名称 说明
uri 指向包含标记人员详细标记说明的页面的链接。 string

LabelingJobLabelCategories

名称 说明
{customized property} LabelCategory
{customized property} LabelCategory

LabelCategory

名称 说明
此类别中的标签类字典。 LabelCategoryClasses
displayName 标签类别的显示名称。 字符串
multiSelect 指示是否允许在此类别中选择多个类。 “Disabled”
“Enabled”

LabelCategoryClasses

名称 说明
{customized property} LabelClass

LabelClass

名称 说明
displayName 标签类的显示名称。 string
标签类的子类字典。 LabelClassSubclasses

LabelClassSubclasses

名称 说明
{customized property} LabelClass

LabelingJobMediaProperties

名称 说明
mediaType 设置对象类型 图像
需要文本 ()

LabelingJobImageProperties

名称 说明
mediaType [必需]作业的媒体类型。 “Image” (必需)
annotationType 图像标记作业的注释类型。 “BoundingBox”
“分类”
“InstanceSegmentation”

LabelingJobTextProperties

名称 说明
mediaType [必需]作业的媒体类型。 “Text” (必需)
annotationType 文本标记作业的注释类型。 “分类”
“NamedEntityRecognition”

MLAssistConfiguration

名称 说明
mlAssist 设置对象类型 已禁用
已启用 (必需)

MLAssistConfigurationDisabled

名称 说明
mlAssist [必需]指示是否启用 MLAssist 功能。 “Disabled” (必需)

MLAssistConfigurationEnabled

名称 说明
mlAssist [必需]指示是否启用 MLAssist 功能。 “已启用” (必需)
inferencingComputeBinding [必需]用于推理的 AML 计算绑定。 字符串 (必需)

约束:
最小长度 = 1
Pattern = [a-zA-Z0-9_]
trainingComputeBinding [必需]训练中使用的 AML 计算绑定。 字符串 (必需)

约束:
最小长度 = 1
Pattern = [a-zA-Z0-9_]

NotificationSetting

名称 说明
emailOn 使用指定通知类型向用户发送电子邮件通知 包含任意项的字符串数组:
“JobCancelled”
“JobCompleted”
“JobFailed”
emails 这是电子邮件收件人列表,其总字符数限制为 499 个字符,带逗号分隔符 string[]
webhooks 将 Webhook 回调发送到服务。 密钥是用户为 Webhook 提供的名称。 NotificationSettingWebhooks

NotificationSettingWebhooks

名称 说明
{customized property} Webhook

Webhook

名称 说明
eventType 对指定的通知事件发送回调 字符串
webhookType 设置对象类型 需要 AzureDevOps ()

AzureDevOpsWebhook

名称 说明
webhookType [必需]指定要发送回调的服务的类型 “AzureDevOps” (必需)

ResourceBaseProperties

名称 说明
{customized property} 字符串
{customized property} 字符串
{customized property} 字符串
{customized property} 字符串
{customized property} 字符串
{customized property} string
{customized property} 字符串
{customized property} string
{customized property} string
{customized property} string
{customized property} string
{customized property} string
{customized property} 字符串
{customized property} 字符串
{customized property} 字符串
{customized property} string
{customized property} 字符串
{customized property} string
{customized property} string
{customized property} string

JobBaseSecretsConfiguration

名称 说明
{customized property} SecretConfiguration
{customized property} SecretConfiguration

SecretConfiguration

名称 说明
uri 机密 URI。
示例 URI : https://myvault.vault.azure.net/secrets/mysecretname/secretversion
string
workspaceSecretName 工作区密钥保管库中的机密名称。 字符串

JobBaseServices

名称 说明
{customized property} JobService
{customized property} JobService

JobService

名称 说明
endpoint 终结点的 URL。 string
jobServiceType 终结点类型。 字符串
nodes 用户想要启动服务的节点。
如果未将 Nodes 设置为 null,则仅在领导节点上启动该服务。
Nodes
port 用户设置的终结点的端口。 int
properties 要对终结点设置的其他属性。 JobServiceProperties

Nodes

名称 说明
nodesValueType 设置对象类型 所有 (必需)

AllNodes

名称 说明
nodesValueType [必需]Nodes 值的类型 “全部” (必需)

JobServiceProperties

名称 说明
{customized property} 字符串