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

Microsoft.MachineLearningServices 工作区/终结点 2025-01-01-preview

Bicep 资源定义

可以使用目标操作部署工作区/终结点资源类型:

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

资源格式

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

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/endpoints@2025-01-01-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    associatedResourceId: 'string'
    deployments: [
      {
        properties: {
          failureReason: 'string'
          type: 'string'
          // For remaining properties, see EndpointDeploymentResourceProperties objects
        }
      }
    ]
    endpointUri: 'string'
    failureReason: 'string'
    location: 'string'
    name: 'string'
    shouldCreateAiServicesEndpoint: bool
    endpointType: 'string'
    // For remaining properties, see EndpointResourceProperties objects
  }
}

EndpointResourceProperties 对象

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

对于 Azure.ContentSafety,请使用:

{
  endpointType: 'Azure.ContentSafety'
}

对于 Azure.OpenAI,请使用:

{
  endpointType: 'Azure.OpenAI'
}

若要 Azure.Speech,请使用:

{
  endpointType: 'Azure.Speech'
}

对于 managedOnlineEndpoint,请使用:

{
  authMode: 'string'
  compute: 'string'
  description: 'string'
  endpointType: 'managedOnlineEndpoint'
  mirrorTraffic: {
    {customized property}: int
  }
  scoringUri: 'string'
  traffic: {
    {customized property}: int
  }
}

对于 serverlessEndpoint,请使用:

{
  authMode: 'string'
  capacityReservation: {
    capacityReservationGroupId: 'string'
    endpointReservedCapacity: int
  }
  contentSafety: {
    contentSafetyStatus: 'string'
  }
  endpointState: 'string'
  endpointType: 'serverlessEndpoint'
  inferenceEndpoint: {}
  marketplaceSubscriptionId: 'string'
  metadata: any(...)
  modelSettings: {
    modelId: 'string'
  }
  offer: {
    offerName: 'string'
    publisher: 'string'
  }
}

EndpointDeploymentResourceProperties 对象

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

对于 Azure.ContentSafety,请使用:

{
  model: {
    format: 'string'
    name: 'string'
    source: 'string'
    version: 'string'
  }
  raiPolicyName: 'string'
  sku: {
    capacity: int
    family: 'string'
    name: 'string'
    size: 'string'
    tier: 'string'
  }
  type: 'Azure.ContentSafety'
  versionUpgradeOption: 'string'
}

对于 Azure.OpenAI,请使用:

{
  model: {
    format: 'string'
    name: 'string'
    source: 'string'
    version: 'string'
  }
  raiPolicyName: 'string'
  sku: {
    capacity: int
    family: 'string'
    name: 'string'
    size: 'string'
    tier: 'string'
  }
  type: 'Azure.OpenAI'
  versionUpgradeOption: 'string'
}

若要 Azure.Speech,请使用:

{
  model: {
    format: 'string'
    name: 'string'
    source: 'string'
    version: 'string'
  }
  raiPolicyName: 'string'
  sku: {
    capacity: int
    family: 'string'
    name: 'string'
    size: 'string'
    tier: 'string'
  }
  type: 'Azure.Speech'
  versionUpgradeOption: 'string'
}

对于 managedOnlineEndpoint,请使用:

{
  endpointComputeType: 'string'
  model: 'string'
  type: 'managedOnlineEndpoint'
}

属性值

Microsoft.MachineLearningServices/workspaces/endpoints

名字 说明 价值
姓名 资源名称 字符串

约束:
模式 = ^[a-zA-Z0-9][a-zA-Z0-9_.-]{2,32}$ (必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源
类型资源的符号名称:工作区
属性 EndpointResourceProperties(必需)

CognitiveServicesSku

名字 说明 价值
产能 整数 (int)
家庭 字符串
姓名 字符串
大小 字符串
分层 字符串

ContentSafetyEndpointDeploymentResourceProperties

名字 说明 价值
模型 用于终结点部署的模型。 EndpointDeploymentModel(必需)
raiPolicy名称 RAI 策略的名称。 字符串
SKU CognitiveServicesSku
类型 部署类型。 “Azure.ContentSafety”(必需)
versionUpgradeOption 版本 部署模型版本升级选项。 “NoAutoUpgrade”
“OnceCurrentVersionExpired”
“OnceNewDefaultVersionAvailable”

ContentSafetyEndpointResourceProperties

名字 说明 价值
endpoint类型 终结点的类型。 “Azure.ContentSafety”(必需)

端点部署模型

名字 说明 价值
格式 模型格式 字符串
姓名 模型名称。 字符串
可选。 部署模型源 ARM 资源 ID。 字符串
版本 模型版本。 字符串

EndpointDeploymentResourceProperties

名字 说明 价值
failureReason (失败原因) 创建失败时失败的原因。 字符串
类型 对于 type ContentSafetyEndpointDeploymentResourceProperties,设置为“Azure.ContentSafety”。 对于 OpenAIEndpointDeploymentResourceProperties,请设置为“Azure.OpenAI”。 对于 SpeechEndpointDeploymentResourceProperties,请设置为“Azure.Speech”。 对于 type ManagedOnlineEndpointDeploymentResourceProperties,设置为“managedOnlineEndpoint”。 “Azure.ContentSafety”
“Azure.OpenAI”
“Azure.Speech”
“managedOnlineEndpoint”(必需)

EndpointDeploymentResourcePropertiesBasicResource

名字 说明 价值
属性 EndpointDeploymentResourceProperties (必需)

EndpointResourceProperties

名字 说明 价值
关联资源 ID 用于创建内置模型服务终结点的 Byo 资源 ID。 字符串
部署 部署信息。 EndpointDeploymentResourcePropertiesBasicResource[]
endpoint类型 对于 type ContentSafetyEndpointResourceProperties,设置为“Azure.ContentSafety”。 对于 openAIEndpointResourceProperties类型,请设置为“Azure.OpenAI”。 对于 SpeechEndpointResourceProperties类型,设置为“Azure.Speech”。 对于 type ManagedOnlineEndpointResourceProperties,设置为“managedOnlineEndpoint”。 对于 ServerlessEndpointResourceProperties,请设置为“serverlessEndpoint”。 “Azure.ContentSafety”
“Azure.OpenAI”
“Azure.Speech”
“managedOnlineEndpoint”
“serverlessEndpoint”(必需)
endpointUri 的 终结点的 URI。 字符串
failureReason (失败原因) 创建失败时失败的原因。 字符串
位置 终结点的位置。
由于输入 dto,在分析终结点资源时共享同一协定
此位置字段只是用于分析终结点资源信息
我们不会让客户指定终结点资源位置,因为我们将创建与工作区相同的位置
字符串
姓名 终结点的名称。 字符串
shouldCreateAiServicesEndpoint 代理(非 byo)终结点是常规终结点还是 OneKeyV2 AI 服务帐户终结点。 布尔

ManagedOnlineEndpointDeploymentResourceProperties

名字 说明 价值
endpointComputeType 用于确定终结点计算类型的枚举。 “AzureMLCompute”
“Kubernetes”
“Managed”
模型 字符串
类型 部署类型。 “managedOnlineEndpoint”(必需)

ManagedOnlineEndpointResourceProperties

名字 说明 价值
authMode 用于确定终结点身份验证模式的枚举。 “AADToken”
“AMLToken”
“Key”
计算 字符串
描述 字符串
endpoint类型 终结点的类型。 “managedOnlineEndpoint”(必需)
镜像流量 <整数> 字典 ManagedOnlineEndpointResourcePropertiesMirrorTraffic
scoringUri 字符串
交通 <整数> 字典 ManagedOnlineEndpointResourceProperties流量

ManagedOnlineEndpointResourcePropertiesMirrorTraffic

名字 说明 价值

ManagedOnlineEndpointResourceProperties流量

名字 说明 价值

OpenAIEndpointDeploymentResourceProperties

名字 说明 价值
模型 用于终结点部署的模型。 EndpointDeploymentModel(必需)
raiPolicy名称 RAI 策略的名称。 字符串
SKU CognitiveServicesSku
类型 部署类型。 “Azure.OpenAI”(必需)
versionUpgradeOption 版本 部署模型版本升级选项。 “NoAutoUpgrade”
“OnceCurrentVersionExpired”
“OnceNewDefaultVersionAvailable”

OpenAIEndpointResourceProperties

名字 说明 价值
endpoint类型 终结点的类型。 “Azure.OpenAI”(必需)

ServerlessEndpointCapacityReservation

名字 说明 价值
capacityReservationGroupId (容量预留组 ID) 字符串

约束:
最小长度 = 1
模式 = [a-zA-Z0-9_] (必需)
endpointReservedCapacity 整数 (int)

ServerlessEndpointContentSafety

名字 说明 价值
contentSafetyStatus (内容安全状态) 指定内容安全的状态。 “Disabled”
“Enabled”(必需)

ServerlessEndpointInferenceEndpoint

名字 说明 价值

ServerlessEndpointModelSettings

名字 说明 价值
模型 ID 字符串

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

ServerlessEndpointResourceProperties

名字 说明 价值
authMode “AAD”
“Key”
“KeyAndAAD”
capacityReservation (容量预留) ServerlessEndpointCapacityReservation
contentSafety (内容安全) ServerlessEndpointContentSafety
端点状态 无服务器终结点的状态。 “创建”
“CreationFailed”
“删除”
“DeletionFailed”
“Online”
“恢复”
“Suspended”
“挂起”
“未知”
endpoint类型 终结点的类型。 “serverlessEndpoint”(必需)
inferenceEndpoint ServerlessEndpointInferenceEndpoint
marketplaceSubscriptionId 字符串
元数据 任意 任何
modelSettings ServerlessEndpointModelSettings
优惠 无服务器优惠

无服务器优惠

名字 说明 价值
offer名称 字符串

约束:
最小长度 = 1
模式 = [a-zA-Z0-9_] (必需)
发布服务器 字符串

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

SpeechEndpointDeploymentResourceProperties

名字 说明 价值
模型 用于终结点部署的模型。 EndpointDeploymentModel(必需)
raiPolicy名称 RAI 策略的名称。 字符串
SKU CognitiveServicesSku
类型 部署类型。 “Azure.Speech”(必需)
versionUpgradeOption 版本 部署模型版本升级选项。 “NoAutoUpgrade”
“OnceCurrentVersionExpired”
“OnceNewDefaultVersionAvailable”

SpeechEndpointResourceProperties

名字 说明 价值
endpoint类型 终结点的类型。 “Azure.Speech”(必需)

ARM 模板资源定义

可以使用目标操作部署工作区/终结点资源类型:

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

资源格式

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

{
  "type": "Microsoft.MachineLearningServices/workspaces/endpoints",
  "apiVersion": "2025-01-01-preview",
  "name": "string",
  "properties": {
    "associatedResourceId": "string",
    "deployments": [
      {
        "properties": {
          "failureReason": "string",
          "type": "string"
          // For remaining properties, see EndpointDeploymentResourceProperties objects
        }
      }
    ],
    "endpointUri": "string",
    "failureReason": "string",
    "location": "string",
    "name": "string",
    "shouldCreateAiServicesEndpoint": "bool",
    "endpointType": "string"
    // For remaining properties, see EndpointResourceProperties objects
  }
}

EndpointResourceProperties 对象

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

对于 Azure.ContentSafety,请使用:

{
  "endpointType": "Azure.ContentSafety"
}

对于 Azure.OpenAI,请使用:

{
  "endpointType": "Azure.OpenAI"
}

若要 Azure.Speech,请使用:

{
  "endpointType": "Azure.Speech"
}

对于 managedOnlineEndpoint,请使用:

{
  "authMode": "string",
  "compute": "string",
  "description": "string",
  "endpointType": "managedOnlineEndpoint",
  "mirrorTraffic": {
    "{customized property}": "int"
  },
  "scoringUri": "string",
  "traffic": {
    "{customized property}": "int"
  }
}

对于 serverlessEndpoint,请使用:

{
  "authMode": "string",
  "capacityReservation": {
    "capacityReservationGroupId": "string",
    "endpointReservedCapacity": "int"
  },
  "contentSafety": {
    "contentSafetyStatus": "string"
  },
  "endpointState": "string",
  "endpointType": "serverlessEndpoint",
  "inferenceEndpoint": {
  },
  "marketplaceSubscriptionId": "string",
  "metadata": {},
  "modelSettings": {
    "modelId": "string"
  },
  "offer": {
    "offerName": "string",
    "publisher": "string"
  }
}

EndpointDeploymentResourceProperties 对象

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

对于 Azure.ContentSafety,请使用:

{
  "model": {
    "format": "string",
    "name": "string",
    "source": "string",
    "version": "string"
  },
  "raiPolicyName": "string",
  "sku": {
    "capacity": "int",
    "family": "string",
    "name": "string",
    "size": "string",
    "tier": "string"
  },
  "type": "Azure.ContentSafety",
  "versionUpgradeOption": "string"
}

对于 Azure.OpenAI,请使用:

{
  "model": {
    "format": "string",
    "name": "string",
    "source": "string",
    "version": "string"
  },
  "raiPolicyName": "string",
  "sku": {
    "capacity": "int",
    "family": "string",
    "name": "string",
    "size": "string",
    "tier": "string"
  },
  "type": "Azure.OpenAI",
  "versionUpgradeOption": "string"
}

若要 Azure.Speech,请使用:

{
  "model": {
    "format": "string",
    "name": "string",
    "source": "string",
    "version": "string"
  },
  "raiPolicyName": "string",
  "sku": {
    "capacity": "int",
    "family": "string",
    "name": "string",
    "size": "string",
    "tier": "string"
  },
  "type": "Azure.Speech",
  "versionUpgradeOption": "string"
}

对于 managedOnlineEndpoint,请使用:

{
  "endpointComputeType": "string",
  "model": "string",
  "type": "managedOnlineEndpoint"
}

属性值

Microsoft.MachineLearningServices/workspaces/endpoints

名字 说明 价值
apiVersion API 版本 “2025-01-01-预览”
姓名 资源名称 字符串

约束:
模式 = ^[a-zA-Z0-9][a-zA-Z0-9_.-]{2,32}$ (必需)
属性 EndpointResourceProperties(必需)
类型 资源类型 “Microsoft.MachineLearningServices/workspaces/endpoints”

CognitiveServicesSku

名字 说明 价值
产能 整数 (int)
家庭 字符串
姓名 字符串
大小 字符串
分层 字符串

ContentSafetyEndpointDeploymentResourceProperties

名字 说明 价值
模型 用于终结点部署的模型。 EndpointDeploymentModel(必需)
raiPolicy名称 RAI 策略的名称。 字符串
SKU CognitiveServicesSku
类型 部署类型。 “Azure.ContentSafety”(必需)
versionUpgradeOption 版本 部署模型版本升级选项。 “NoAutoUpgrade”
“OnceCurrentVersionExpired”
“OnceNewDefaultVersionAvailable”

ContentSafetyEndpointResourceProperties

名字 说明 价值
endpoint类型 终结点的类型。 “Azure.ContentSafety”(必需)

端点部署模型

名字 说明 价值
格式 模型格式 字符串
姓名 模型名称。 字符串
可选。 部署模型源 ARM 资源 ID。 字符串
版本 模型版本。 字符串

EndpointDeploymentResourceProperties

名字 说明 价值
failureReason (失败原因) 创建失败时失败的原因。 字符串
类型 对于 type ContentSafetyEndpointDeploymentResourceProperties,设置为“Azure.ContentSafety”。 对于 OpenAIEndpointDeploymentResourceProperties,请设置为“Azure.OpenAI”。 对于 SpeechEndpointDeploymentResourceProperties,请设置为“Azure.Speech”。 对于 type ManagedOnlineEndpointDeploymentResourceProperties,设置为“managedOnlineEndpoint”。 “Azure.ContentSafety”
“Azure.OpenAI”
“Azure.Speech”
“managedOnlineEndpoint”(必需)

EndpointDeploymentResourcePropertiesBasicResource

名字 说明 价值
属性 EndpointDeploymentResourceProperties (必需)

EndpointResourceProperties

名字 说明 价值
关联资源 ID 用于创建内置模型服务终结点的 Byo 资源 ID。 字符串
部署 部署信息。 EndpointDeploymentResourcePropertiesBasicResource[]
endpoint类型 对于 type ContentSafetyEndpointResourceProperties,设置为“Azure.ContentSafety”。 对于 openAIEndpointResourceProperties类型,请设置为“Azure.OpenAI”。 对于 SpeechEndpointResourceProperties类型,设置为“Azure.Speech”。 对于 type ManagedOnlineEndpointResourceProperties,设置为“managedOnlineEndpoint”。 对于 ServerlessEndpointResourceProperties,请设置为“serverlessEndpoint”。 “Azure.ContentSafety”
“Azure.OpenAI”
“Azure.Speech”
“managedOnlineEndpoint”
“serverlessEndpoint”(必需)
endpointUri 的 终结点的 URI。 字符串
failureReason (失败原因) 创建失败时失败的原因。 字符串
位置 终结点的位置。
由于输入 dto,在分析终结点资源时共享同一协定
此位置字段只是用于分析终结点资源信息
我们不会让客户指定终结点资源位置,因为我们将创建与工作区相同的位置
字符串
姓名 终结点的名称。 字符串
shouldCreateAiServicesEndpoint 代理(非 byo)终结点是常规终结点还是 OneKeyV2 AI 服务帐户终结点。 布尔

ManagedOnlineEndpointDeploymentResourceProperties

名字 说明 价值
endpointComputeType 用于确定终结点计算类型的枚举。 “AzureMLCompute”
“Kubernetes”
“Managed”
模型 字符串
类型 部署类型。 “managedOnlineEndpoint”(必需)

ManagedOnlineEndpointResourceProperties

名字 说明 价值
authMode 用于确定终结点身份验证模式的枚举。 “AADToken”
“AMLToken”
“Key”
计算 字符串
描述 字符串
endpoint类型 终结点的类型。 “managedOnlineEndpoint”(必需)
镜像流量 <整数> 字典 ManagedOnlineEndpointResourcePropertiesMirrorTraffic
scoringUri 字符串
交通 <整数> 字典 ManagedOnlineEndpointResourceProperties流量

ManagedOnlineEndpointResourcePropertiesMirrorTraffic

名字 说明 价值

ManagedOnlineEndpointResourceProperties流量

名字 说明 价值

OpenAIEndpointDeploymentResourceProperties

名字 说明 价值
模型 用于终结点部署的模型。 EndpointDeploymentModel(必需)
raiPolicy名称 RAI 策略的名称。 字符串
SKU CognitiveServicesSku
类型 部署类型。 “Azure.OpenAI”(必需)
versionUpgradeOption 版本 部署模型版本升级选项。 “NoAutoUpgrade”
“OnceCurrentVersionExpired”
“OnceNewDefaultVersionAvailable”

OpenAIEndpointResourceProperties

名字 说明 价值
endpoint类型 终结点的类型。 “Azure.OpenAI”(必需)

ServerlessEndpointCapacityReservation

名字 说明 价值
capacityReservationGroupId (容量预留组 ID) 字符串

约束:
最小长度 = 1
模式 = [a-zA-Z0-9_] (必需)
endpointReservedCapacity 整数 (int)

ServerlessEndpointContentSafety

名字 说明 价值
contentSafetyStatus (内容安全状态) 指定内容安全的状态。 “Disabled”
“Enabled”(必需)

ServerlessEndpointInferenceEndpoint

名字 说明 价值

ServerlessEndpointModelSettings

名字 说明 价值
模型 ID 字符串

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

ServerlessEndpointResourceProperties

名字 说明 价值
authMode “AAD”
“Key”
“KeyAndAAD”
capacityReservation (容量预留) ServerlessEndpointCapacityReservation
contentSafety (内容安全) ServerlessEndpointContentSafety
端点状态 无服务器终结点的状态。 “创建”
“CreationFailed”
“删除”
“DeletionFailed”
“Online”
“恢复”
“Suspended”
“挂起”
“未知”
endpoint类型 终结点的类型。 “serverlessEndpoint”(必需)
inferenceEndpoint ServerlessEndpointInferenceEndpoint
marketplaceSubscriptionId 字符串
元数据 任意 任何
modelSettings ServerlessEndpointModelSettings
优惠 无服务器优惠

无服务器优惠

名字 说明 价值
offer名称 字符串

约束:
最小长度 = 1
模式 = [a-zA-Z0-9_] (必需)
发布服务器 字符串

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

SpeechEndpointDeploymentResourceProperties

名字 说明 价值
模型 用于终结点部署的模型。 EndpointDeploymentModel(必需)
raiPolicy名称 RAI 策略的名称。 字符串
SKU CognitiveServicesSku
类型 部署类型。 “Azure.Speech”(必需)
versionUpgradeOption 版本 部署模型版本升级选项。 “NoAutoUpgrade”
“OnceCurrentVersionExpired”
“OnceNewDefaultVersionAvailable”

SpeechEndpointResourceProperties

名字 说明 价值
endpoint类型 终结点的类型。 “Azure.Speech”(必需)

用法示例

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

可以使用目标操作部署工作区/终结点资源类型:

  • 资源组

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

资源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.MachineLearningServices/workspaces/endpoints@2025-01-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      associatedResourceId = "string"
      deployments = [
        {
          properties = {
            failureReason = "string"
            type = "string"
            // For remaining properties, see EndpointDeploymentResourceProperties objects
          }
        }
      ]
      endpointUri = "string"
      failureReason = "string"
      location = "string"
      name = "string"
      shouldCreateAiServicesEndpoint = bool
      endpointType = "string"
      // For remaining properties, see EndpointResourceProperties objects
    }
  }
}

EndpointResourceProperties 对象

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

对于 Azure.ContentSafety,请使用:

{
  endpointType = "Azure.ContentSafety"
}

对于 Azure.OpenAI,请使用:

{
  endpointType = "Azure.OpenAI"
}

若要 Azure.Speech,请使用:

{
  endpointType = "Azure.Speech"
}

对于 managedOnlineEndpoint,请使用:

{
  authMode = "string"
  compute = "string"
  description = "string"
  endpointType = "managedOnlineEndpoint"
  mirrorTraffic = {
    {customized property} = int
  }
  scoringUri = "string"
  traffic = {
    {customized property} = int
  }
}

对于 serverlessEndpoint,请使用:

{
  authMode = "string"
  capacityReservation = {
    capacityReservationGroupId = "string"
    endpointReservedCapacity = int
  }
  contentSafety = {
    contentSafetyStatus = "string"
  }
  endpointState = "string"
  endpointType = "serverlessEndpoint"
  inferenceEndpoint = {
  }
  marketplaceSubscriptionId = "string"
  metadata = ?
  modelSettings = {
    modelId = "string"
  }
  offer = {
    offerName = "string"
    publisher = "string"
  }
}

EndpointDeploymentResourceProperties 对象

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

对于 Azure.ContentSafety,请使用:

{
  model = {
    format = "string"
    name = "string"
    source = "string"
    version = "string"
  }
  raiPolicyName = "string"
  sku = {
    capacity = int
    family = "string"
    name = "string"
    size = "string"
    tier = "string"
  }
  type = "Azure.ContentSafety"
  versionUpgradeOption = "string"
}

对于 Azure.OpenAI,请使用:

{
  model = {
    format = "string"
    name = "string"
    source = "string"
    version = "string"
  }
  raiPolicyName = "string"
  sku = {
    capacity = int
    family = "string"
    name = "string"
    size = "string"
    tier = "string"
  }
  type = "Azure.OpenAI"
  versionUpgradeOption = "string"
}

若要 Azure.Speech,请使用:

{
  model = {
    format = "string"
    name = "string"
    source = "string"
    version = "string"
  }
  raiPolicyName = "string"
  sku = {
    capacity = int
    family = "string"
    name = "string"
    size = "string"
    tier = "string"
  }
  type = "Azure.Speech"
  versionUpgradeOption = "string"
}

对于 managedOnlineEndpoint,请使用:

{
  endpointComputeType = "string"
  model = "string"
  type = "managedOnlineEndpoint"
}

属性值

Microsoft.MachineLearningServices/workspaces/endpoints

名字 说明 价值
姓名 资源名称 字符串

约束:
模式 = ^[a-zA-Z0-9][a-zA-Z0-9_.-]{2,32}$ (必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:工作区
属性 EndpointResourceProperties(必需)
类型 资源类型 “Microsoft.MachineLearningServices/workspaces/endpoints@2025-01-01-preview”

CognitiveServicesSku

名字 说明 价值
产能 整数 (int)
家庭 字符串
姓名 字符串
大小 字符串
分层 字符串

ContentSafetyEndpointDeploymentResourceProperties

名字 说明 价值
模型 用于终结点部署的模型。 EndpointDeploymentModel(必需)
raiPolicy名称 RAI 策略的名称。 字符串
SKU CognitiveServicesSku
类型 部署类型。 “Azure.ContentSafety”(必需)
versionUpgradeOption 版本 部署模型版本升级选项。 “NoAutoUpgrade”
“OnceCurrentVersionExpired”
“OnceNewDefaultVersionAvailable”

ContentSafetyEndpointResourceProperties

名字 说明 价值
endpoint类型 终结点的类型。 “Azure.ContentSafety”(必需)

端点部署模型

名字 说明 价值
格式 模型格式 字符串
姓名 模型名称。 字符串
可选。 部署模型源 ARM 资源 ID。 字符串
版本 模型版本。 字符串

EndpointDeploymentResourceProperties

名字 说明 价值
failureReason (失败原因) 创建失败时失败的原因。 字符串
类型 对于 type ContentSafetyEndpointDeploymentResourceProperties,设置为“Azure.ContentSafety”。 对于 OpenAIEndpointDeploymentResourceProperties,请设置为“Azure.OpenAI”。 对于 SpeechEndpointDeploymentResourceProperties,请设置为“Azure.Speech”。 对于 type ManagedOnlineEndpointDeploymentResourceProperties,设置为“managedOnlineEndpoint”。 “Azure.ContentSafety”
“Azure.OpenAI”
“Azure.Speech”
“managedOnlineEndpoint”(必需)

EndpointDeploymentResourcePropertiesBasicResource

名字 说明 价值
属性 EndpointDeploymentResourceProperties (必需)

EndpointResourceProperties

名字 说明 价值
关联资源 ID 用于创建内置模型服务终结点的 Byo 资源 ID。 字符串
部署 部署信息。 EndpointDeploymentResourcePropertiesBasicResource[]
endpoint类型 对于 type ContentSafetyEndpointResourceProperties,设置为“Azure.ContentSafety”。 对于 openAIEndpointResourceProperties类型,请设置为“Azure.OpenAI”。 对于 SpeechEndpointResourceProperties类型,设置为“Azure.Speech”。 对于 type ManagedOnlineEndpointResourceProperties,设置为“managedOnlineEndpoint”。 对于 ServerlessEndpointResourceProperties,请设置为“serverlessEndpoint”。 “Azure.ContentSafety”
“Azure.OpenAI”
“Azure.Speech”
“managedOnlineEndpoint”
“serverlessEndpoint”(必需)
endpointUri 的 终结点的 URI。 字符串
failureReason (失败原因) 创建失败时失败的原因。 字符串
位置 终结点的位置。
由于输入 dto,在分析终结点资源时共享同一协定
此位置字段只是用于分析终结点资源信息
我们不会让客户指定终结点资源位置,因为我们将创建与工作区相同的位置
字符串
姓名 终结点的名称。 字符串
shouldCreateAiServicesEndpoint 代理(非 byo)终结点是常规终结点还是 OneKeyV2 AI 服务帐户终结点。 布尔

ManagedOnlineEndpointDeploymentResourceProperties

名字 说明 价值
endpointComputeType 用于确定终结点计算类型的枚举。 “AzureMLCompute”
“Kubernetes”
“Managed”
模型 字符串
类型 部署类型。 “managedOnlineEndpoint”(必需)

ManagedOnlineEndpointResourceProperties

名字 说明 价值
authMode 用于确定终结点身份验证模式的枚举。 “AADToken”
“AMLToken”
“Key”
计算 字符串
描述 字符串
endpoint类型 终结点的类型。 “managedOnlineEndpoint”(必需)
镜像流量 <整数> 字典 ManagedOnlineEndpointResourcePropertiesMirrorTraffic
scoringUri 字符串
交通 <整数> 字典 ManagedOnlineEndpointResourceProperties流量

ManagedOnlineEndpointResourcePropertiesMirrorTraffic

名字 说明 价值

ManagedOnlineEndpointResourceProperties流量

名字 说明 价值

OpenAIEndpointDeploymentResourceProperties

名字 说明 价值
模型 用于终结点部署的模型。 EndpointDeploymentModel(必需)
raiPolicy名称 RAI 策略的名称。 字符串
SKU CognitiveServicesSku
类型 部署类型。 “Azure.OpenAI”(必需)
versionUpgradeOption 版本 部署模型版本升级选项。 “NoAutoUpgrade”
“OnceCurrentVersionExpired”
“OnceNewDefaultVersionAvailable”

OpenAIEndpointResourceProperties

名字 说明 价值
endpoint类型 终结点的类型。 “Azure.OpenAI”(必需)

ServerlessEndpointCapacityReservation

名字 说明 价值
capacityReservationGroupId (容量预留组 ID) 字符串

约束:
最小长度 = 1
模式 = [a-zA-Z0-9_] (必需)
endpointReservedCapacity 整数 (int)

ServerlessEndpointContentSafety

名字 说明 价值
contentSafetyStatus (内容安全状态) 指定内容安全的状态。 “Disabled”
“Enabled”(必需)

ServerlessEndpointInferenceEndpoint

名字 说明 价值

ServerlessEndpointModelSettings

名字 说明 价值
模型 ID 字符串

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

ServerlessEndpointResourceProperties

名字 说明 价值
authMode “AAD”
“Key”
“KeyAndAAD”
capacityReservation (容量预留) ServerlessEndpointCapacityReservation
contentSafety (内容安全) ServerlessEndpointContentSafety
端点状态 无服务器终结点的状态。 “创建”
“CreationFailed”
“删除”
“DeletionFailed”
“Online”
“恢复”
“Suspended”
“挂起”
“未知”
endpoint类型 终结点的类型。 “serverlessEndpoint”(必需)
inferenceEndpoint ServerlessEndpointInferenceEndpoint
marketplaceSubscriptionId 字符串
元数据 任意 任何
modelSettings ServerlessEndpointModelSettings
优惠 无服务器优惠

无服务器优惠

名字 说明 价值
offer名称 字符串

约束:
最小长度 = 1
模式 = [a-zA-Z0-9_] (必需)
发布服务器 字符串

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

SpeechEndpointDeploymentResourceProperties

名字 说明 价值
模型 用于终结点部署的模型。 EndpointDeploymentModel(必需)
raiPolicy名称 RAI 策略的名称。 字符串
SKU CognitiveServicesSku
类型 部署类型。 “Azure.Speech”(必需)
versionUpgradeOption 版本 部署模型版本升级选项。 “NoAutoUpgrade”
“OnceCurrentVersionExpired”
“OnceNewDefaultVersionAvailable”

SpeechEndpointResourceProperties

名字 说明 价值
endpoint类型 终结点的类型。 “Azure.Speech”(必需)