Microsoft.MachineLearningServices 工作區/onlineEndpoints 2024-07-01-preview

Bicep 資源定義

工作區/onlineEndpoints 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.MachineLearningServices/workspaces/onlineEndpoints 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/onlineEndpoints@2024-07-01-preview' = {
  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'
    compute: 'string'
    description: 'string'
    keys: {
      primaryKey: 'string'
      secondaryKey: 'string'
      primaryKey: 'string'
      secondaryKey: 'string'
      primaryKey: 'string'
      secondaryKey: 'string'
      primaryKey: 'string'
      secondaryKey: 'string'
    }
    mirrorTraffic: {
      {customized property}: int
    }
    properties: {
      {customized property}: 'string'
    }
    publicNetworkAccess: 'string'
    traffic: {
      {customized property}: int
    }
  }
}

屬性值

workspaces/onlineEndpoints

名字 描述 價值
名字 資源名稱

請參閱如何在 Bicep 中設定子資源的名稱和類型。
字串 (必要)
位置 資源所在的地理位置 字串 (必要)
標籤 資源標籤。 標記名稱和值的字典。 請參閱範本中的 標籤
sku 自動調整之 ARM 合約所需的 SKU 詳細數據。 Sku
入口網站/工具等用來轉譯相同類型資源的不同UX體驗的元數據。 字串
父母 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型的資源符號名稱:工作區
身份 受控服務識別(系統指派和/或使用者指派的身分識別) ManagedServiceIdentity
性能 [必要]實體的其他屬性。 OnlineEndpointProperties (必要)

ManagedServiceIdentity

名字 描述 價值
類型 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned' (必要)
userAssignedIdentities 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 UserAssignedIdentities

UserAssignedIdentities

名字 描述 價值
{自定義屬性} UserAssignedIdentity

UserAssignedIdentity

此物件不包含在部署期間設定的任何屬性。 所有屬性都是 ReadOnly。

OnlineEndpointProperties

名字 描述 價值
authMode [必要]使用 「金鑰」進行金鑰型驗證,並使用 『AMLToken』 進行 Azure Machine Learning 令牌型驗證。 'Key' 不會過期,但 'AMLToken' 會過期。 'AADToken'
'AMLToken'
'Key' (必要)
計算 如果計算存在,則為 ARM 資源識別碼。
自選
字串
描述 推斷端點的描述。 字串
鑰匙 EndpointAuthKeys 一開始在端點上設定。
這個屬性一律會以 Null 傳回。 必須使用 ListKeys API 擷取 AuthKey 值。
EndpointAuthKeys
mirrorTraffic 要鏡像到每個部署的流量百分比,而不需使用傳回的評分。 流量值必須加總到最大50。 OnlineEndpointMirrorTraffic
性能 屬性字典。 可以新增屬性,但無法移除或改變。 EndpointPropertiesBaseProperties
publicNetworkAccess 針對啟用 Private Link 時應允許公用存取的端點,設定為 [已啟用]。 'Disabled'
'Enabled'
交通 從端點轉移至每個部署的流量百分比。 流量值必須加總到 100。 OnlineEndpointTraffic

EndpointAuthKeys

名字 描述 價值
primaryKey 主鍵。 字串
secondaryKey 次要金鑰。 字串
primaryKey 主鍵。 字串
secondaryKey 次要金鑰。 字串
primaryKey 主鍵。 字串
secondaryKey 次要金鑰。 字串
primaryKey 主鍵。 字串
secondaryKey 次要金鑰。 字串

OnlineEndpointMirrorTraffic

名字 描述 價值
{自定義屬性} int

EndpointPropertiesBaseProperties

名字 描述 價值
{自定義屬性} 字串

OnlineEndpointTraffic

名字 描述 價值
{自定義屬性} int

Sku

名字 描述 價值
能力 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 int
家庭 如果服務有不同世代的硬體,針對相同的 SKU,則可以在這裡擷取。 字串
名字 SKU 的名稱。 例如 - P3。 通常是字母+數位碼 字串 (必要)
大小 SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程序代碼。 字串
如果服務有一個以上的層級,但 PUT 上不需要此欄位,則資源提供者必須實作此字段。 'Basic'
'Free'
'Premium'
'Standard'

ARM 樣本資源定義

工作區/onlineEndpoints 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.MachineLearningServices/workspaces/onlineEndpoints 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.MachineLearningServices/workspaces/onlineEndpoints",
  "apiVersion": "2024-07-01-preview",
  "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",
    "compute": "string",
    "description": "string",
    "keys": {
      "primaryKey": "string",
      "secondaryKey": "string",
      "primaryKey": "string",
      "secondaryKey": "string",
      "primaryKey": "string",
      "secondaryKey": "string",
      "primaryKey": "string",
      "secondaryKey": "string"
    },
    "mirrorTraffic": {
      "{customized property}": "int"
    },
    "properties": {
      "{customized property}": "string"
    },
    "publicNetworkAccess": "string",
    "traffic": {
      "{customized property}": "int"
    }
  }
}

屬性值

workspaces/onlineEndpoints

名字 描述 價值
類型 資源類型 'Microsoft.MachineLearningServices/workspaces/onlineEndpoints'
apiVersion 資源 API 版本 '2024-07-01-preview'
名字 資源名稱

請參閱如何在JSON ARM 範本中設定子資源的名稱和類型。
字串 (必要)
位置 資源所在的地理位置 字串 (必要)
標籤 資源標籤。 標記名稱和值的字典。 請參閱範本中的 標籤
sku 自動調整之 ARM 合約所需的 SKU 詳細數據。 Sku
入口網站/工具等用來轉譯相同類型資源的不同UX體驗的元數據。 字串
身份 受控服務識別(系統指派和/或使用者指派的身分識別) ManagedServiceIdentity
性能 [必要]實體的其他屬性。 OnlineEndpointProperties (必要)

ManagedServiceIdentity

名字 描述 價值
類型 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned' (必要)
userAssignedIdentities 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 UserAssignedIdentities

UserAssignedIdentities

名字 描述 價值
{自定義屬性} UserAssignedIdentity

UserAssignedIdentity

此物件不包含在部署期間設定的任何屬性。 所有屬性都是 ReadOnly。

OnlineEndpointProperties

名字 描述 價值
authMode [必要]使用 「金鑰」進行金鑰型驗證,並使用 『AMLToken』 進行 Azure Machine Learning 令牌型驗證。 'Key' 不會過期,但 'AMLToken' 會過期。 'AADToken'
'AMLToken'
'Key' (必要)
計算 如果計算存在,則為 ARM 資源識別碼。
自選
字串
描述 推斷端點的描述。 字串
鑰匙 EndpointAuthKeys 一開始在端點上設定。
這個屬性一律會以 Null 傳回。 必須使用 ListKeys API 擷取 AuthKey 值。
EndpointAuthKeys
mirrorTraffic 要鏡像到每個部署的流量百分比,而不需使用傳回的評分。 流量值必須加總到最大50。 OnlineEndpointMirrorTraffic
性能 屬性字典。 可以新增屬性,但無法移除或改變。 EndpointPropertiesBaseProperties
publicNetworkAccess 針對啟用 Private Link 時應允許公用存取的端點,設定為 [已啟用]。 'Disabled'
'Enabled'
交通 從端點轉移至每個部署的流量百分比。 流量值必須加總到 100。 OnlineEndpointTraffic

EndpointAuthKeys

名字 描述 價值
primaryKey 主鍵。 字串
secondaryKey 次要金鑰。 字串
primaryKey 主鍵。 字串
secondaryKey 次要金鑰。 字串
primaryKey 主鍵。 字串
secondaryKey 次要金鑰。 字串
primaryKey 主鍵。 字串
secondaryKey 次要金鑰。 字串

OnlineEndpointMirrorTraffic

名字 描述 價值
{自定義屬性} int

EndpointPropertiesBaseProperties

名字 描述 價值
{自定義屬性} 字串

OnlineEndpointTraffic

名字 描述 價值
{自定義屬性} int

Sku

名字 描述 價值
能力 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 int
家庭 如果服務有不同世代的硬體,針對相同的 SKU,則可以在這裡擷取。 字串
名字 SKU 的名稱。 例如 - P3。 通常是字母+數位碼 字串 (必要)
大小 SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程序代碼。 字串
如果服務有一個以上的層級,但 PUT 上不需要此欄位,則資源提供者必須實作此字段。 'Basic'
'Free'
'Premium'
'Standard'

Terraform (AzAPI 提供者) 資源定義

工作區/onlineEndpoints 資源類型可以使用目標作業來部署:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.MachineLearningServices/workspaces/onlineEndpoints 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.MachineLearningServices/workspaces/onlineEndpoints@2024-07-01-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type = "string"
    identity_ids = []
  }
  body = jsonencode({
    properties = {
      authMode = "string"
      compute = "string"
      description = "string"
      keys = {
        primaryKey = "string"
        secondaryKey = "string"
        primaryKey = "string"
        secondaryKey = "string"
        primaryKey = "string"
        secondaryKey = "string"
        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"
    }
    kind = "string"
  })
}

屬性值

workspaces/onlineEndpoints

名字 描述 價值
類型 資源類型 “Microsoft.MachineLearningServices/workspaces/onlineEndpoints@2024-07-01-preview”
名字 資源名稱 字串 (必要)
位置 資源所在的地理位置 字串 (必要)
parent_id 此資源為父系之資源的標識碼。 類型資源的標識碼:工作區
標籤 資源標籤。 標記名稱和值的字典。
sku 自動調整之 ARM 合約所需的 SKU 詳細數據。 Sku
入口網站/工具等用來轉譯相同類型資源的不同UX體驗的元數據。 字串
身份 受控服務識別(系統指派和/或使用者指派的身分識別) ManagedServiceIdentity
性能 [必要]實體的其他屬性。 OnlineEndpointProperties (必要)

ManagedServiceIdentity

名字 描述 價值
類型 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 “SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned” (必要)
identity_ids 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 使用者身分識別標識碼的陣列。

UserAssignedIdentities

名字 描述 價值
{自定義屬性} UserAssignedIdentity

UserAssignedIdentity

此物件不包含在部署期間設定的任何屬性。 所有屬性都是 ReadOnly。

OnlineEndpointProperties

名字 描述 價值
authMode [必要]使用 「金鑰」進行金鑰型驗證,並使用 『AMLToken』 進行 Azure Machine Learning 令牌型驗證。 'Key' 不會過期,但 'AMLToken' 會過期。 “AADToken”
“AMLToken”
“Key” (必要)
計算 如果計算存在,則為 ARM 資源識別碼。
自選
字串
描述 推斷端點的描述。 字串
鑰匙 EndpointAuthKeys 一開始在端點上設定。
這個屬性一律會以 Null 傳回。 必須使用 ListKeys API 擷取 AuthKey 值。
EndpointAuthKeys
mirrorTraffic 要鏡像到每個部署的流量百分比,而不需使用傳回的評分。 流量值必須加總到最大50。 OnlineEndpointMirrorTraffic
性能 屬性字典。 可以新增屬性,但無法移除或改變。 EndpointPropertiesBaseProperties
publicNetworkAccess 針對啟用 Private Link 時應允許公用存取的端點,設定為 [已啟用]。 “Disabled”
“Enabled”
交通 從端點轉移至每個部署的流量百分比。 流量值必須加總到 100。 OnlineEndpointTraffic

EndpointAuthKeys

名字 描述 價值
primaryKey 主鍵。 字串
secondaryKey 次要金鑰。 字串
primaryKey 主鍵。 字串
secondaryKey 次要金鑰。 字串
primaryKey 主鍵。 字串
secondaryKey 次要金鑰。 字串
primaryKey 主鍵。 字串
secondaryKey 次要金鑰。 字串

OnlineEndpointMirrorTraffic

名字 描述 價值
{自定義屬性} int

EndpointPropertiesBaseProperties

名字 描述 價值
{自定義屬性} 字串

OnlineEndpointTraffic

名字 描述 價值
{自定義屬性} int

Sku

名字 描述 價值
能力 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 int
家庭 如果服務有不同世代的硬體,針對相同的 SKU,則可以在這裡擷取。 字串
名字 SKU 的名稱。 例如 - P3。 通常是字母+數位碼 字串 (必要)
大小 SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程序代碼。 字串
如果服務有一個以上的層級,但 PUT 上不需要此欄位,則資源提供者必須實作此字段。 “Basic”
“Free”
“Premium”
“Standard”