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

Microsoft.MachineLearningServices workspaces/batchEndpoints 2021-03-01-preview

Bicep 资源定义

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

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

资源格式

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

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/batchEndpoints@2021-03-01-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  kind: 'string'
  parent: resourceSymbolicName
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {
        clientId: 'string'
        principalId: 'string'
      }
    }
  }
  properties: {
    authMode: 'string'
    description: 'string'
    keys: {
      primaryKey: 'string'
      secondaryKey: 'string'
      primaryKey: 'string'
      secondaryKey: 'string'
      primaryKey: 'string'
      secondaryKey: 'string'
    }
    properties: {
      {customized property}: 'string'
    }
    traffic: {
      {customized property}: int
    }
  }
}

属性值

workspaces/batchEndpoints

名称 说明
name 资源名称

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

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

ResourceIdentity

名称 说明 Value
type 定义 ResourceIdentity 类型的值。 “None”
“SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned”
userAssignedIdentities 用户分配的标识字典,密钥是 UAI 的 ARM 资源 ID。 ResourceIdentityUserAssignedIdentities

ResourceIdentityUserAssignedIdentities

名称 说明
{customized property} UserAssignedIdentityMeta

UserAssignedIdentityMeta

名称 说明
clientId Aka 应用程序 ID,由 Azure AD 生成的唯一标识符,在初始预配期间绑定到应用程序和服务主体。 string
principalId 托管标识的服务主体对象的对象 ID,用于授予对 Azure 资源的基于角色的访问权限。 string

BatchEndpoint

名称 说明
authMode [必需]推理终结点身份验证模式类型 “AADToken”
“AMLToken”
“密钥”
description 推理终结点的说明。 字符串
密钥 EndpointAuthKeys 最初在终结点上设置。
此属性将始终返回为 null。 必须使用 ListKeys API 检索 AuthKey 值。
EndpointAuthKeys
properties 属性字典。 可以添加属性,但不能删除或更改属性。 BatchEndpointProperties
traffic 有关如何跨部署路由流量的流量规则。 BatchEndpointTraffic

EndpointAuthKeys

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

BatchEndpointProperties

名称 说明
{customized property} 字符串

BatchEndpointTraffic

名称 说明
{customized property} int

ARM 模板资源定义

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

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

资源格式

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

{
  "type": "Microsoft.MachineLearningServices/workspaces/batchEndpoints",
  "apiVersion": "2021-03-01-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "kind": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
        "clientId": "string",
        "principalId": "string"
      }
    }
  },
  "properties": {
    "authMode": "string",
    "description": "string",
    "keys": {
      "primaryKey": "string",
      "secondaryKey": "string",
      "primaryKey": "string",
      "secondaryKey": "string",
      "primaryKey": "string",
      "secondaryKey": "string"
    },
    "properties": {
      "{customized property}": "string"
    },
    "traffic": {
      "{customized property}": "int"
    }
  }
}

属性值

workspaces/batchEndpoints

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

了解如何在 JSON ARM 模板中为子资源设置名称和类型。
字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
kind 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。 字符串
标识 与资源关联的服务标识。 ResourceIdentity
properties [必需]实体的其他属性。 需要 BatchEndpoint ()

ResourceIdentity

名称 说明 Value
type 定义 ResourceIdentity 类型的值。 “None”
“SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned”
userAssignedIdentities 用户分配的标识字典,密钥是 UAI 的 ARM 资源 ID。 ResourceIdentityUserAssignedIdentities

ResourceIdentityUserAssignedIdentities

名称 说明
{customized property} UserAssignedIdentityMeta

UserAssignedIdentityMeta

名称 说明
clientId Aka 应用程序 ID,由 Azure AD 生成的唯一标识符,在初始预配期间绑定到应用程序和服务主体。 string
principalId 托管标识的服务主体对象的对象 ID,用于授予对 Azure 资源的基于角色的访问权限。 string

BatchEndpoint

名称 说明
authMode [必需]推理终结点身份验证模式类型 “AADToken”
“AMLToken”
“密钥”
description 推理终结点的说明。 字符串
密钥 EndpointAuthKeys 最初在终结点上设置。
此属性将始终返回为 null。 必须使用 ListKeys API 检索 AuthKey 值。
EndpointAuthKeys
properties 属性字典。 可以添加属性,但不能删除或更改属性。 BatchEndpointProperties
traffic 有关如何跨部署路由流量的流量规则。 BatchEndpointTraffic

EndpointAuthKeys

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

BatchEndpointProperties

名称 说明
{customized property} 字符串

BatchEndpointTraffic

名称 说明
{customized property} int

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

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

  • 资源组

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

资源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.MachineLearningServices/workspaces/batchEndpoints@2021-03-01-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type = "string"
    identity_ids = []
  }
  body = jsonencode({
    properties = {
      authMode = "string"
      description = "string"
      keys = {
        primaryKey = "string"
        secondaryKey = "string"
        primaryKey = "string"
        secondaryKey = "string"
        primaryKey = "string"
        secondaryKey = "string"
      }
      properties = {
        {customized property} = "string"
      }
      traffic = {
        {customized property} = int
      }
    }
    kind = "string"
  })
}

属性值

workspaces/batchEndpoints

名称 说明 Value
type 资源类型 “Microsoft.MachineLearningServices/workspaces/batchEndpoints@2021-03-01-preview”
name 资源名称 字符串 (必需)
location 资源所在的地理位置 字符串 (必需)
parent_id 此资源的父资源 ID。 类型为“工作区”的资源的 ID
标记 资源标记。 标记名称和值的字典。
kind 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。 字符串
标识 与资源关联的服务标识。 ResourceIdentity
properties [必需]实体的其他属性。 需要 BatchEndpoint ()

ResourceIdentity

名称 说明 Value
type 定义 ResourceIdentity 类型的值。 “SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned”
identity_ids 用户分配标识的字典,密钥是 UAI 的 ARM 资源 ID。 用户标识 ID 的数组。

ResourceIdentityUserAssignedIdentities

名称 说明
{customized property} UserAssignedIdentityMeta

UserAssignedIdentityMeta

名称 说明
clientId Aka 应用程序 ID,由 Azure AD 生成的唯一标识符,在初始预配期间绑定到应用程序和服务主体。 string
principalId 托管标识的服务主体对象的对象 ID,用于授予对 Azure 资源的基于角色的访问权限。 字符串

BatchEndpoint

名称 说明
authMode [必需]推理终结点身份验证模式类型 “AADToken”
“AMLToken”
“Key”
description 推理终结点的说明。 字符串
密钥 最初在终结点上设置的 EndpointAuthKeys。
此属性将始终作为 null 返回。 必须使用 ListKeys API 检索 AuthKey 值。
EndpointAuthKeys
properties 属性字典。 可以添加属性,但不能删除或更改。 BatchEndpointProperties
traffic 有关如何在部署之间路由流量的流量规则。 BatchEndpointTraffic

EndpointAuthKeys

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

BatchEndpointProperties

名称 说明
{customized property} 字符串

BatchEndpointTraffic

名称 说明
{customized property} int