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

Microsoft.MachineLearningServices workspaces/batchEndpoints

Bicep 资源定义

workspaces/batchEndpoints 资源类型可以使用面向以下对象的操作进行部署:

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

资源格式

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

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/batchEndpoints@2023-10-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  sku: {
    capacity: int
    family: 'string'
    name: 'string'
    size: 'string'
    tier: 'string'
  }
  kind: 'string'
  parent: resourceSymbolicName
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  properties: {
    authMode: 'string'
    defaults: {
      deploymentName: 'string'
    }
    description: 'string'
    keys: {
      primaryKey: 'string'
      secondaryKey: 'string'
      primaryKey: 'string'
      secondaryKey: 'string'
      primaryKey: 'string'
      secondaryKey: 'string'
    }
    properties: {
      {customized property}: 'string'
      {customized property}: 'string'
    }
  }
}

属性值

workspaces/batchEndpoints

名称 说明
name 资源名称

了解如何在 Bicep 中为子资源设置名称和类型。
字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
sku 自动缩放的 ARM 协定所需的 SKU 详细信息。 Sku
kind 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。 string
父级 (parent) 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源之外的子资源
类型为资源的符号名称: 工作区
标识 托管服务标识 (系统分配的标识和/或用户分配的标识) ManagedServiceIdentity
properties [必需]实体的其他属性。 BatchEndpointProperties (必需的)

ManagedServiceIdentity

名称 说明 Value
type 托管服务标识的类型 (其中允许 systemAssigned 和 UserAssigned 类型) 。 “None”
“SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned” (必需)
userAssignedIdentities 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将是采用以下格式的 ARM 资源 ID:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是请求中 ({}) 的空对象。 UserAssignedIdentities

UserAssignedIdentities

名称 说明
{customized property} UserAssignedIdentity

UserAssignedIdentity

此对象不包含在部署期间要设置的任何属性。 所有属性均为 ReadOnly。

BatchEndpointProperties

名称 说明
authMode [必需]使用“密钥”进行基于密钥的身份验证,使用“AMLToken”进行基于 Azure 机器学习令牌的身份验证。 “密钥”不会过期,但“AMLToken”会过期。 “AADToken”
“AMLToken”
“密钥” (必需)
默认值 Batch 终结点的默认值 BatchEndpointDefaults
description 推理终结点的说明。 string
密钥 EndpointAuthKeys 最初在终结点上设置。
此属性将始终返回为 null。 必须使用 ListKeys API 检索 AuthKey 值。
EndpointAuthKeys
properties 属性字典。 可以添加属性,但不能删除或更改属性。 EndpointPropertiesBaseProperties

BatchEndpointDefaults

名称 说明
deploymentName 将默认为终结点的部署的名称。
调用终结点评分 URL 时,此部署最终将得到 100% 的流量。
string

EndpointAuthKeys

名称 说明
primaryKey 主键。 string
secondaryKey 辅助密钥。 string
primaryKey 主键。 string
secondaryKey 辅助密钥。 字符串
primaryKey 主键。 字符串
secondaryKey 辅助密钥。 字符串

EndpointPropertiesBaseProperties

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

SKU

名称 说明
容量 如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩减,则可能会省略这一点。 int
family 如果服务具有不同代系的硬件(对于同一 SKU),则可以在此处进行捕获。 字符串
name SKU 的名称。 例如 - P3。 它通常是字母+数字代码 字符串 (必需)
大小 SKU 大小。 当名称字段是层和其他某个值的组合时,这将是独立代码。 字符串
如果服务具有多个层,但 PUT 上不需要此字段,则资源提供程序必须实现此字段。 “Basic”
“免费”
“Premium”
“Standard”

ARM 模板资源定义

workspaces/batchEndpoints 资源类型可以使用面向以下对象的操作进行部署:

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

资源格式

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

{
  "type": "Microsoft.MachineLearningServices/workspaces/batchEndpoints",
  "apiVersion": "2023-10-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "sku": {
    "capacity": "int",
    "family": "string",
    "name": "string",
    "size": "string",
    "tier": "string"
  },
  "kind": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {}
    }
  },
  "properties": {
    "authMode": "string",
    "defaults": {
      "deploymentName": "string"
    },
    "description": "string",
    "keys": {
      "primaryKey": "string",
      "secondaryKey": "string",
      "primaryKey": "string",
      "secondaryKey": "string",
      "primaryKey": "string",
      "secondaryKey": "string"
    },
    "properties": {
      "{customized property}": "string",
      "{customized property}": "string"
    }
  }
}

属性值

workspaces/batchEndpoints

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

了解如何在 JSON ARM 模板中为子资源设置名称和类型。
字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
sku 自动缩放的 ARM 协定所需的 SKU 详细信息。 Sku
kind 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。 字符串
标识 托管服务标识 (系统分配的标识和/或用户分配的标识) ManagedServiceIdentity
properties [必需]实体的其他属性。 BatchEndpointProperties (必需的)

ManagedServiceIdentity

名称 说明 Value
type 托管服务标识的类型 (其中允许 systemAssigned 和 UserAssigned 类型) 。 “None”
“SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned” (必需)
userAssignedIdentities 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将是采用以下格式的 ARM 资源 ID:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是请求中 ({}) 的空对象。 UserAssignedIdentities

UserAssignedIdentities

名称 说明
{customized property} UserAssignedIdentity

UserAssignedIdentity

此对象不包含在部署期间要设置的任何属性。 所有属性均为 ReadOnly。

BatchEndpointProperties

名称 说明
authMode [必需]使用“密钥”进行基于密钥的身份验证,使用“AMLToken”进行基于 Azure 机器学习令牌的身份验证。 “密钥”不会过期,但“AMLToken”会过期。 “AADToken”
“AMLToken”
“密钥” (必需)
默认值 Batch 终结点的默认值 BatchEndpointDefaults
description 推理终结点的说明。 string
密钥 EndpointAuthKeys 最初在终结点上设置。
此属性将始终返回为 null。 必须使用 ListKeys API 检索 AuthKey 值。
EndpointAuthKeys
properties 属性字典。 可以添加属性,但不能删除或更改属性。 EndpointPropertiesBaseProperties

BatchEndpointDefaults

名称 说明
deploymentName 将默认为终结点的部署的名称。
调用终结点评分 URL 时,此部署最终将得到 100% 的流量。
string

EndpointAuthKeys

名称 说明
primaryKey 主键。 string
secondaryKey 辅助密钥。 字符串
primaryKey 主键。 string
secondaryKey 辅助密钥。 字符串
primaryKey 主键。 string
secondaryKey 辅助密钥。 字符串

EndpointPropertiesBaseProperties

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

SKU

名称 说明
容量 如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果无法对资源进行横向扩展/缩减,则可能会省略此项。 int
family 如果服务针对同一 SKU 具有不同代系的硬件,则可以在此处捕获。 字符串
name SKU 的名称。 例如 - P3。 它通常是字母+数字代码 字符串 (必需)
大小 SKU 大小。 当名称字段是层和一些其他值的组合时,这将是独立代码。 字符串
如果服务具有多个层,但 PUT 上不需要此字段,则资源提供程序需要实现此字段。 'Basic'
“免费”
“Premium”
'Standard'

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

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

  • 资源组

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

资源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.MachineLearningServices/workspaces/batchEndpoints@2023-10-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type = "string"
    identity_ids = []
  }
  body = jsonencode({
    properties = {
      authMode = "string"
      defaults = {
        deploymentName = "string"
      }
      description = "string"
      keys = {
        primaryKey = "string"
        secondaryKey = "string"
        primaryKey = "string"
        secondaryKey = "string"
        primaryKey = "string"
        secondaryKey = "string"
      }
      properties = {
        {customized property} = "string"
        {customized property} = "string"
      }
    }
    sku = {
      capacity = int
      family = "string"
      name = "string"
      size = "string"
      tier = "string"
    }
    kind = "string"
  })
}

属性值

workspaces/batchEndpoints

名称 说明 Value
type 资源类型 “Microsoft.MachineLearningServices/workspaces/batchEndpoints@2023-10-01”
name 资源名称 字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
parent_id 此资源的父资源的 ID。 类型为的资源的 ID: 工作区
标记 资源标记。 标记名称和值的字典。
sku 自动缩放的 ARM 协定所需的 SKU 详细信息。 Sku
kind 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。 字符串
标识 托管服务标识 (系统分配的标识和/或用户分配的标识) ManagedServiceIdentity
properties [必需]实体的其他属性。 BatchEndpointProperties (所需的)

ManagedServiceIdentity

名称 说明 Value
type ) 允许 SystemAssigned 和 UserAssigned 类型的托管服务标识 (的类型。 “SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned” (必需)
identity_ids 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将是采用以下格式的 ARM 资源 ID:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是请求中) ({} 空对象。 用户标识 ID 的数组。

UserAssignedIdentities

名称 说明
{customized property} UserAssignedIdentity

UserAssignedIdentity

此对象不包含部署期间要设置的任何属性。 所有属性均为 ReadOnly。

BatchEndpointProperties

名称 说明
authMode [必需]将“密钥”用于基于密钥的身份验证,将“AMLToken”用于 Azure 机器学习基于令牌的身份验证。 “密钥”不会过期,但“AMLToken”不会过期。 “AADToken”
“AMLToken”
“密钥” (必需)
默认值 Batch 终结点的默认值 BatchEndpointDefaults
description 推理终结点的说明。 string
密钥 EndpointAuthKeys 最初在终结点上设置。
此属性将始终返回为 null。 必须使用 ListKeys API 检索 AuthKey 值。
EndpointAuthKeys
properties 属性字典。 可以添加属性,但不能删除或更改属性。 EndpointPropertiesBaseProperties

BatchEndpointDefaults

名称 说明
deploymentName 将默认为终结点的部署的名称。
调用终结点评分 URL 时,此部署最终将得到 100% 的流量。
字符串

EndpointAuthKeys

名称 说明
primaryKey 主键。 string
secondaryKey 辅助密钥。 字符串
primaryKey 主键。 字符串
secondaryKey 辅助密钥。 字符串
primaryKey 主键。 字符串
secondaryKey 辅助密钥。 字符串

EndpointPropertiesBaseProperties

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

SKU

名称 说明
容量 如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩减,则可能会省略这一点。 int
family 如果服务具有不同代系的硬件(对于同一 SKU),则可以在此处进行捕获。 字符串
name SKU 的名称。 例如 - P3。 它通常是字母+数字代码 字符串 (必需)
大小 SKU 大小。 当名称字段是层和其他某个值的组合时,这将是独立代码。 字符串
如果服务具有多个层,但 PUT 上不需要此字段,则资源提供程序必须实现此字段。 "Basic"
"Free"
“Premium”
“Standard”