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

Microsoft。MachineLearningServices workspaces/serverlessEndpoints 2026-07-01

Bicep 资源定义

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

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

资源格式

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

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/serverlessEndpoints@2026-07-01' = {
  parent: resourceSymbolicName
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  kind: 'string'
  location: 'string'
  name: 'string'
  properties: {
    authMode: 'string'
    contentSafety: {
      contentSafetyStatus: 'string'
    }
    modelSettings: {
      modelId: 'string'
    }
  }
  sku: {
    capacity: int
    family: 'string'
    name: 'string'
    size: 'string'
    tier: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

属性值

Microsoft.MachineLearningServices/workspaces/serverlessEndpoints

名称 Description 价值
标识 托管服务标识(系统分配和/或用户分配的标识) ManagedServiceIdentity
类 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。 字符串
位置 资源所在的地理位置 string (必需)
名字 资源名称 string (必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称:工作区
属性 [必需]实体的其他属性。 ServerlessEndpointProperties(必需)
SKU 用于自动缩放的 ARM 协定所需的 SKU 详细信息。 Sku
标记 资源标记 标记名称和值的字典。 请参见模板中的标签

内容安全

名称 Description 价值
contentSafetyStatus (内容安全状态) [必需]指定内容安全的状态。 “Disabled”
“Enabled”(必需)

ManagedServiceIdentity

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

模型设置

名称 Description 价值
modelId 此 ServerlessEndpoint 应预配的唯一模型标识符。 字符串

ServerlessEndpointProperties

名称 Description 价值
authMode [必需]指定无服务器终结点的身份验证模式。 “AAD”
'Key'
“KeyAndAAD”(必需)
contentSafety (内容安全) 指定内容安全选项。 如果省略,则会配置默认内容安全设置 内容安全
modelSettings 在 ServerlessEndpoint 上提供服务的模型的模型设置(模型 ID)。 ModelSettings 模型设置

Sku

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

TrackedResourceTags

名称 Description 价值

UserAssignedIdentities

名称 Description 价值

UserAssignedIdentity

名称 Description 价值

ARM 模板资源定义

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

用法示例

资源格式

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

{
  "type": "Microsoft.MachineLearningServices/workspaces/serverlessEndpoints",
  "apiVersion": "2026-07-01",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "kind": "string",
  "location": "string",
  "properties": {
    "authMode": "string",
    "contentSafety": {
      "contentSafetyStatus": "string"
    },
    "modelSettings": {
      "modelId": "string"
    }
  },
  "sku": {
    "capacity": "int",
    "family": "string",
    "name": "string",
    "size": "string",
    "tier": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

属性值

Microsoft.MachineLearningServices/workspaces/serverlessEndpoints

名称 Description 价值
apiVersion API 版本 '2026-07-01'
标识 托管服务标识(系统分配和/或用户分配的标识) ManagedServiceIdentity
类 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。 字符串
位置 资源所在的地理位置 string (必需)
名字 资源名称 string (必需)
属性 [必需]实体的其他属性。 ServerlessEndpointProperties(必需)
SKU 用于自动缩放的 ARM 协定所需的 SKU 详细信息。 Sku
标记 资源标记 标记名称和值的字典。 请参见模板中的标签
类型 资源类型 “Microsoft.MachineLearningServices/workspaces/serverlessEndpoints”

内容安全

名称 Description 价值
contentSafetyStatus (内容安全状态) [必需]指定内容安全的状态。 “Disabled”
“Enabled”(必需)

ManagedServiceIdentity

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

模型设置

名称 Description 价值
modelId 此 ServerlessEndpoint 应预配的唯一模型标识符。 字符串

ServerlessEndpointProperties

名称 Description 价值
authMode [必需]指定无服务器终结点的身份验证模式。 “AAD”
'Key'
“KeyAndAAD”(必需)
contentSafety (内容安全) 指定内容安全选项。 如果省略,则会配置默认内容安全设置 内容安全
modelSettings 在 ServerlessEndpoint 上提供服务的模型的模型设置(模型 ID)。 ModelSettings 模型设置

Sku

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

TrackedResourceTags

名称 Description 价值

UserAssignedIdentities

名称 Description 价值

UserAssignedIdentity

名称 Description 价值

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

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

  • 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。

资源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.MachineLearningServices/workspaces/serverlessEndpoints@2026-07-01"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    kind = "string"
    properties = {
      authMode = "string"
      contentSafety = {
        contentSafetyStatus = "string"
      }
      modelSettings = {
        modelId = "string"
      }
    }
    sku = {
      capacity = int
      family = "string"
      name = "string"
      size = "string"
      tier = "string"
    }
  }
}

属性值

Microsoft.MachineLearningServices/workspaces/serverlessEndpoints

名称 Description 价值
标识 托管服务标识(系统分配和/或用户分配的标识) ManagedServiceIdentity
类 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。 字符串
位置 资源所在的地理位置 string (必需)
名字 资源名称 string (必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:工作区
属性 [必需]实体的其他属性。 ServerlessEndpointProperties(必需)
SKU 用于自动缩放的 ARM 协定所需的 SKU 详细信息。 Sku
标记 资源标记 标记名称和值的字典。
类型 资源类型 “Microsoft。机器学习服务/工作空间/serverlessEndpoints@2026-07-01”

内容安全

名称 Description 价值
contentSafetyStatus (内容安全状态) [必需]指定内容安全的状态。 “Disabled”
“Enabled”(必需)

ManagedServiceIdentity

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

模型设置

名称 Description 价值
modelId 此 ServerlessEndpoint 应预配的唯一模型标识符。 字符串

ServerlessEndpointProperties

名称 Description 价值
authMode [必需]指定无服务器终结点的身份验证模式。 “AAD”
'Key'
“KeyAndAAD”(必需)
contentSafety (内容安全) 指定内容安全选项。 如果省略,则会配置默认内容安全设置 内容安全
modelSettings 在 ServerlessEndpoint 上提供服务的模型的模型设置(模型 ID)。 ModelSettings 模型设置

Sku

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

TrackedResourceTags

名称 Description 价值

UserAssignedIdentities

名称 Description 价值

UserAssignedIdentity

名称 Description 价值