你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
- Latest
- 2026-09-01
- 2026-07-15-预览
- 2026-07-01
- 2026-05-15-预览
- 2026-05-01
- 2026-03-15-预览
- 2026-03-01
- 2026-01-15-预览
- 2025-12-01
- 2025-10-01-预览
- 2025-09-01
- 2025-07-01-preview
- 2025-06-01
- 2025-04-01
- 2025-04-01-预览版
- 2025-01-01-preview
- 2024-10-01
- 2024-10-01-预览版
- 2024-07-01-预览版
- 2024-04-01
- 2024-04-01-预览版
- 2024-01-01-预览版
- 2023-10-01
- 2023-08-01-preview
- 2023-06-01-预览版
- 2023-04-01
- 2023-04-01-预览版
- 2023-02-01-预览版
- 2022-12-01-预览版
- 2022-10-01
- 2022-10-01-预览版
- 2022-06-01-preview
- 2022-05-01
- 2022-02-01-预览版
- 2021-03-01-预览版
Bicep 资源定义
可以使用目标操作部署 workspaces/onlineEndpoints 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.MachineLearningServices/workspaces/onlineEndpoints 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.MachineLearningServices/workspaces/onlineEndpoints@2026-05-15-preview' = {
parent: resourceSymbolicName
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
kind: 'string'
location: 'string'
name: 'string'
properties: {
authMode: 'string'
compute: 'string'
description: 'string'
keys: {
primaryKey: 'string'
secondaryKey: 'string'
}
mirrorTraffic: {
{customized property}: int
}
properties: {
{customized property}: 'string'
}
publicNetworkAccess: 'string'
traffic: {
{customized property}: int
}
}
sku: {
capacity: int
family: 'string'
name: 'string'
size: 'string'
tier: 'string'
}
tags: {
{customized property}: 'string'
}
}
属性值
Microsoft.MachineLearningServices/workspaces/onlineEndpoints
| 名称 | Description | Value |
|---|---|---|
| 标识 | 托管服务标识(系统分配和/或用户分配的标识) | ManagedServiceIdentity |
| 类 | 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。 | 字符串 |
| 位置 | 资源所在的地理位置 | string (必需) |
| 名字 | 资源名称 | string (必需) |
| 父级 | 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。 有关详细信息,请参阅 父资源外部的子资源。 |
类型资源的符号名称:工作区 |
| 属性 | [必需]实体的其他属性。 | OnlineEndpointProperties (必需) |
| SKU | 用于自动缩放的 ARM 协定所需的 SKU 详细信息。 | Sku |
| 标记 | 资源标记 | 标记名称和值的字典。 请参见模板中的标签 |
EndpointAuthKeys
| 名称 | Description | Value |
|---|---|---|
| primaryKey | 主键。 | string 约束: 敏感值。 以安全参数的形式传入。 |
| secondaryKey | 辅助密钥。 | string 约束: 敏感值。 以安全参数的形式传入。 |
EndpointPropertiesBaseProperties
| 名称 | Description | Value |
|---|
ManagedServiceIdentity
| 名称 | Description | Value |
|---|---|---|
| 类型 | 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 | “None” “SystemAssigned” “SystemAssigned,UserAssigned” “UserAssigned”(必需) |
| userAssignedIdentities | 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 | UserAssignedIdentities |
OnlineEndpointProperties
| 名称 | Description | Value |
|---|---|---|
| authMode | [必需]用于调用终结点的身份验证方法(数据平面操作)。 使用“密钥”进行基于密钥的身份验证。 使用“AMLToken”进行基于 Azure 机器学习令牌的身份验证。 使用“AADToken”进行基于 entra 令牌的身份验证Microsoft。 | “AADToken” 'AMLToken' “键”(必填) |
| 计算 | 计算的 ARM 资源 ID(如果存在)。 optional |
字符串 |
| description | 推理终结点的说明。 | 字符串 |
| keys | 最初在终结点上设置的 EndpointAuthKeys。 此属性将始终返回为 null。 必须使用 ListKeys API 检索 AuthKey 值。 |
EndpointAuthKeys |
| 镜像流量 | 要镜像到每个部署的流量百分比,而不使用返回的评分。 流量值需要求和到最大 50。 | OnlineEndpointPropertiesMirrorTraffic |
| 属性 | 属性字典。 可以添加属性,但不能删除或更改属性。 | EndpointPropertiesBaseProperties |
| publicNetworkAccess | 枚举以确定 PublicNetworkAccess 是已启用还是已禁用。 | “Disabled” “Enabled” |
| 交通 | 从终结点转移到每个部署的流量百分比。 流量值需要总和到 100。 | OnlineEndpointPropertiesTraffic |
OnlineEndpointPropertiesMirrorTraffic
| 名称 | Description | Value |
|---|
OnlineEndpointPropertiesTraffic
| 名称 | Description | Value |
|---|
Sku
| 名称 | Description | Value |
|---|---|---|
| 产能 | 如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩小,则可能会省略此范围。 | int |
| family | 如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。 | 字符串 |
| 名字 | SKU 的名称。 例 - P3。 它通常是字母+数字代码 | string (必需) |
| size | SKU 大小。 当名称字段是层和其他一些值的组合时,这将是独立的代码。 | 字符串 |
| 分层 | 如果服务具有多个层,但在 PUT 上不需要,则需要资源提供程序实现此字段。 | “Basic” 'Free' 'Premium' 'Standard' |
TrackedResourceTags
| 名称 | Description | Value |
|---|
UserAssignedIdentities
| 名称 | Description | Value |
|---|
UserAssignedIdentity
| 名称 | Description | Value |
|---|
ARM 模板资源定义
可以使用目标操作部署 workspaces/onlineEndpoints 资源类型:
用法示例
资源格式
若要创建 Microsoft.MachineLearningServices/workspaces/onlineEndpoints 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.MachineLearningServices/workspaces/onlineEndpoints",
"apiVersion": "2026-05-15-preview",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"kind": "string",
"location": "string",
"properties": {
"authMode": "string",
"compute": "string",
"description": "string",
"keys": {
"primaryKey": "string",
"secondaryKey": "string"
},
"mirrorTraffic": {
"{customized property}": "int"
},
"properties": {
"{customized property}": "string"
},
"publicNetworkAccess": "string",
"traffic": {
"{customized property}": "int"
}
},
"sku": {
"capacity": "int",
"family": "string",
"name": "string",
"size": "string",
"tier": "string"
},
"tags": {
"{customized property}": "string"
}
}
属性值
Microsoft.MachineLearningServices/workspaces/onlineEndpoints
| 名称 | Description | Value |
|---|---|---|
| apiVersion | API 版本 | '2026-05-15-预览' |
| 标识 | 托管服务标识(系统分配和/或用户分配的标识) | ManagedServiceIdentity |
| 类 | 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。 | 字符串 |
| 位置 | 资源所在的地理位置 | string (必需) |
| 名字 | 资源名称 | string (必需) |
| 属性 | [必需]实体的其他属性。 | OnlineEndpointProperties (必需) |
| SKU | 用于自动缩放的 ARM 协定所需的 SKU 详细信息。 | Sku |
| 标记 | 资源标记 | 标记名称和值的字典。 请参见模板中的标签 |
| 类型 | 资源类型 | “Microsoft.MachineLearningServices/workspaces/onlineEndpoints” |
EndpointAuthKeys
| 名称 | Description | Value |
|---|---|---|
| primaryKey | 主键。 | string 约束: 敏感值。 以安全参数的形式传入。 |
| secondaryKey | 辅助密钥。 | string 约束: 敏感值。 以安全参数的形式传入。 |
EndpointPropertiesBaseProperties
| 名称 | Description | Value |
|---|
ManagedServiceIdentity
| 名称 | Description | Value |
|---|---|---|
| 类型 | 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 | “None” “SystemAssigned” “SystemAssigned,UserAssigned” “UserAssigned”(必需) |
| userAssignedIdentities | 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 | UserAssignedIdentities |
OnlineEndpointProperties
| 名称 | Description | Value |
|---|---|---|
| authMode | [必需]用于调用终结点的身份验证方法(数据平面操作)。 使用“密钥”进行基于密钥的身份验证。 使用“AMLToken”进行基于 Azure 机器学习令牌的身份验证。 使用“AADToken”进行基于 entra 令牌的身份验证Microsoft。 | “AADToken” 'AMLToken' “键”(必填) |
| 计算 | 计算的 ARM 资源 ID(如果存在)。 optional |
字符串 |
| description | 推理终结点的说明。 | 字符串 |
| keys | 最初在终结点上设置的 EndpointAuthKeys。 此属性将始终返回为 null。 必须使用 ListKeys API 检索 AuthKey 值。 |
EndpointAuthKeys |
| 镜像流量 | 要镜像到每个部署的流量百分比,而不使用返回的评分。 流量值需要求和到最大 50。 | OnlineEndpointPropertiesMirrorTraffic |
| 属性 | 属性字典。 可以添加属性,但不能删除或更改属性。 | EndpointPropertiesBaseProperties |
| publicNetworkAccess | 枚举以确定 PublicNetworkAccess 是已启用还是已禁用。 | “Disabled” “Enabled” |
| 交通 | 从终结点转移到每个部署的流量百分比。 流量值需要总和到 100。 | OnlineEndpointPropertiesTraffic |
OnlineEndpointPropertiesMirrorTraffic
| 名称 | Description | Value |
|---|
OnlineEndpointPropertiesTraffic
| 名称 | Description | Value |
|---|
Sku
| 名称 | Description | Value |
|---|---|---|
| 产能 | 如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩小,则可能会省略此范围。 | int |
| family | 如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。 | 字符串 |
| 名字 | SKU 的名称。 例 - P3。 它通常是字母+数字代码 | string (必需) |
| size | SKU 大小。 当名称字段是层和其他一些值的组合时,这将是独立的代码。 | 字符串 |
| 分层 | 如果服务具有多个层,但在 PUT 上不需要,则需要资源提供程序实现此字段。 | “Basic” 'Free' 'Premium' 'Standard' |
TrackedResourceTags
| 名称 | Description | Value |
|---|
UserAssignedIdentities
| 名称 | Description | Value |
|---|
UserAssignedIdentity
| 名称 | Description | Value |
|---|
Terraform (AzAPI 提供程序)资源定义
可以使用目标操作部署 workspaces/onlineEndpoints 资源类型:
- 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。
资源格式
若要创建 Microsoft.MachineLearningServices/workspaces/onlineEndpoints 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.MachineLearningServices/workspaces/onlineEndpoints@2026-05-15-preview"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
kind = "string"
properties = {
authMode = "string"
compute = "string"
description = "string"
keys = {
primaryKey = "string"
secondaryKey = "string"
}
mirrorTraffic = {
{customized property} = int
}
properties = {
{customized property} = "string"
}
publicNetworkAccess = "string"
traffic = {
{customized property} = int
}
}
sku = {
capacity = int
family = "string"
name = "string"
size = "string"
tier = "string"
}
}
}
属性值
Microsoft.MachineLearningServices/workspaces/onlineEndpoints
| 名称 | Description | Value |
|---|---|---|
| 标识 | 托管服务标识(系统分配和/或用户分配的标识) | ManagedServiceIdentity |
| 类 | 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。 | 字符串 |
| 位置 | 资源所在的地理位置 | string (必需) |
| 名字 | 资源名称 | string (必需) |
| parent_id | 此资源的父资源的 ID。 | 类型资源的 ID:工作区 |
| 属性 | [必需]实体的其他属性。 | OnlineEndpointProperties (必需) |
| SKU | 用于自动缩放的 ARM 协定所需的 SKU 详细信息。 | Sku |
| 标记 | 资源标记 | 标记名称和值的字典。 |
| 类型 | 资源类型 | “Microsoft。机器学习服务/workspaces/onlineEndpoints@2026-05-15-预览” |
EndpointAuthKeys
| 名称 | Description | Value |
|---|---|---|
| primaryKey | 主键。 | string 约束: 敏感值。 以安全参数的形式传入。 |
| secondaryKey | 辅助密钥。 | string 约束: 敏感值。 以安全参数的形式传入。 |
EndpointPropertiesBaseProperties
| 名称 | Description | Value |
|---|
ManagedServiceIdentity
| 名称 | Description | Value |
|---|---|---|
| 类型 | 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 | “None” “SystemAssigned” “SystemAssigned,UserAssigned” “UserAssigned”(必需) |
| userAssignedIdentities | 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 | UserAssignedIdentities |
OnlineEndpointProperties
| 名称 | Description | Value |
|---|---|---|
| authMode | [必需]用于调用终结点的身份验证方法(数据平面操作)。 使用“密钥”进行基于密钥的身份验证。 使用“AMLToken”进行基于 Azure 机器学习令牌的身份验证。 使用“AADToken”进行基于 entra 令牌的身份验证Microsoft。 | “AADToken” 'AMLToken' “键”(必填) |
| 计算 | 计算的 ARM 资源 ID(如果存在)。 optional |
字符串 |
| description | 推理终结点的说明。 | 字符串 |
| keys | 最初在终结点上设置的 EndpointAuthKeys。 此属性将始终返回为 null。 必须使用 ListKeys API 检索 AuthKey 值。 |
EndpointAuthKeys |
| 镜像流量 | 要镜像到每个部署的流量百分比,而不使用返回的评分。 流量值需要求和到最大 50。 | OnlineEndpointPropertiesMirrorTraffic |
| 属性 | 属性字典。 可以添加属性,但不能删除或更改属性。 | EndpointPropertiesBaseProperties |
| publicNetworkAccess | 枚举以确定 PublicNetworkAccess 是已启用还是已禁用。 | “Disabled” “Enabled” |
| 交通 | 从终结点转移到每个部署的流量百分比。 流量值需要总和到 100。 | OnlineEndpointPropertiesTraffic |
OnlineEndpointPropertiesMirrorTraffic
| 名称 | Description | Value |
|---|
OnlineEndpointPropertiesTraffic
| 名称 | Description | Value |
|---|
Sku
| 名称 | Description | Value |
|---|---|---|
| 产能 | 如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩小,则可能会省略此范围。 | int |
| family | 如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。 | 字符串 |
| 名字 | SKU 的名称。 例 - P3。 它通常是字母+数字代码 | string (必需) |
| size | SKU 大小。 当名称字段是层和其他一些值的组合时,这将是独立的代码。 | 字符串 |
| 分层 | 如果服务具有多个层,但在 PUT 上不需要,则需要资源提供程序实现此字段。 | “Basic” 'Free' 'Premium' 'Standard' |
TrackedResourceTags
| 名称 | Description | Value |
|---|
UserAssignedIdentities
| 名称 | Description | Value |
|---|
UserAssignedIdentity
| 名称 | Description | Value |
|---|