Microsoft。MachineLearningServices workspaces/onlineEndpoints/deployments 2025-10-01-preview

Bicep リソース定義

workspaces/onlineEndpoints/deployments リソースの種類は、次を対象とする操作でデプロイできます。

  • リソース グループの - リソース グループのデプロイ コマンド 参照

各 API バージョンで変更されたプロパティの一覧については、「変更ログ」を参照してください。

リソース形式

Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments リソースを作成するには、次の Bicep をテンプレートに追加します。

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments@2025-10-01-preview' = {
  parent: resourceSymbolicName
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  kind: 'string'
  location: 'string'
  name: 'string'
  properties: {
    appInsightsEnabled: bool
    codeConfiguration: {
      codeId: 'string'
      scoringScript: 'string'
    }
    dataCollector: {
      collections: {
        {customized property}: {
          clientId: 'string'
          dataCollectionMode: 'string'
          dataId: 'string'
          samplingRate: int
        }
      }
      requestLogging: {
        captureHeaders: [
          'string'
        ]
      }
      rollingRate: 'string'
    }
    description: 'string'
    egressPublicNetworkAccess: 'string'
    environmentId: 'string'
    environmentVariables: {
      {customized property}: 'string'
    }
    instanceType: 'string'
    livenessProbe: {
      failureThreshold: int
      initialDelay: 'string'
      period: 'string'
      successThreshold: int
      timeout: 'string'
    }
    model: 'string'
    modelMountPath: 'string'
    properties: {
      {customized property}: 'string'
    }
    readinessProbe: {
      failureThreshold: int
      initialDelay: 'string'
      period: 'string'
      successThreshold: int
      timeout: 'string'
    }
    requestSettings: {
      maxConcurrentRequestsPerInstance: int
      maxQueueWait: 'string'
      requestTimeout: 'string'
    }
    scaleSettings: {
      scaleType: 'string'
      // For remaining properties, see OnlineScaleSettings objects
    }
    startupProbe: {
      failureThreshold: int
      initialDelay: 'string'
      period: 'string'
      successThreshold: int
      timeout: 'string'
    }
    endpointComputeType: 'string'
    // For remaining properties, see OnlineDeploymentProperties objects
  }
  sku: {
    capacity: int
    family: 'string'
    name: 'string'
    size: 'string'
    tier: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

OnlineDeploymentProperties オブジェクト

endpointComputeType プロパティを設定して、オブジェクトのタイプを指定します。

Kubernetesの場合は、以下を使用します。

{
  containerResourceRequirements: {
    containerResourceLimits: {
      cpu: 'string'
      gpu: 'string'
      memory: 'string'
    }
    containerResourceRequests: {
      cpu: 'string'
      gpu: 'string'
      memory: 'string'
    }
  }
  endpointComputeType: 'Kubernetes'
}

[ 管理対象] の場合は、次を使用します。

{
  endpointComputeType: 'Managed'
}

OnlineScaleSettings オブジェクト

scaleType プロパティを設定して、オブジェクトのタイプを指定します。

既定 の場合は、次の値を使用します。

{
  scaleType: 'Default'
}

TargetUtilization には、次を使用します。

{
  maxInstances: int
  minInstances: int
  pollingInterval: 'string'
  scaleType: 'TargetUtilization'
  targetUtilizationPercentage: int
}

プロパティ値

Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments

名前 Description 価値
ID マネージド サービス ID (システム割り当て ID またはユーザー割り当て ID) ManagedServiceIdentity
kind 同じ種類のリソースに対して異なる UX エクスペリエンスをレンダリングするためにポータルやツールなどで使用されるメタデータ。 文字列
位置 リソースが存在する地理的な場所 string (必須)
名前 リソース名 string (必須)
親 Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、「親リソースの外部 子リソース」を参照してください。
タイプのリソースのシンボリック名: workspaces/onlineEndpoints
プロパティ [必須]エンティティの追加の属性。 OnlineDeploymentProperties (必須)
sku 自動スケールの ARM コントラクトに必要な SKU の詳細。 Sku
tags リソース タグ タグ名と値のディクショナリ。 「テンプレート内のタグ」を参照してください

CodeConfiguration

名前 Description 価値
codeId コード資産の ARM リソース ID。 文字列
scoringScript [必須]起動時に実行するスクリプト。 eg. "score.py" string

Constraints:
最小長 = 1
パターン = [a-zA-Z0-9_] (必須)

徴収

名前 Description 価値
clientId BLOB ストレージへのログ記録の収集に使用される msi クライアント ID。 null の場合、バックエンドは認証する登録済みのエンドポイント ID を選択します。 文字列
dataCollectionMode データ収集を有効または無効にします。 'Disabled'
'Enabled'
dataId データ資産の arm リソース ID。クライアント側では、データ資産が BLOB ストレージを指していることを確認し、バックエンドは BLOB ストレージにデータを収集します。 文字列
samplingRate コレクションのサンプリング レート。 サンプリング レート 1.0 は、既定で 100% のデータを収集します。 整数 (int)

ContainerResourceRequirements

名前 Description 価値
containerResourceLimits コンテナー リソースの制限情報: ContainerResourceSettings
containerResourceRequests コンテナー リソース要求情報: ContainerResourceSettings

ContainerResourceSettings

名前 Description 価値
cpu コンテナーの vCPU 要求/制限の数。 詳細情報:
https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
文字列
GPU コンテナーの Nvidia GPU カード要求/制限の数。 詳細情報:
https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
文字列
メモリ コンテナーのメモリ サイズ要求/制限。 詳細情報:
https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
文字列

データコレクタ

名前 Description 価値
collections [必須]コレクションの構成。 各コレクションには、モデル データを収集するための独自の構成があり、コレクションの名前は任意の文字列にすることができます。
モデル データ コレクターは、ペイロード ログ記録またはカスタム ログ記録、またはその両方に使用できます。 コレクションの要求と応答はペイロード ログ用に予約され、他の要求はカスタム ログ用です。
DataCollectorCollections (必須)
requestLogging mdc の要求ログ構成には、すべてのコレクションの詳細なログ設定が含まれています。 これは省略可能です。 RequestLogging
rollingRate モデル データが BLOB ストレージに収集される場合は、データをすべて 1 つの BLOB ファイルに記録しないように、データを別のパスにロールする必要があります。
ローリング レートが時間の場合、すべてのデータが BLOB パス /yyyy/MM/dd/HH/ に収集されます。
1 日の場合、すべてのデータが BLOB パス /yyyy/MM/dd/ に収集されます。
ローリング パスのもう 1 つの利点は、モデル監視 UI でデータの時間範囲を非常に迅速に選択できることです。
'Day'
'Hour'
'Minute'
'Month'
'Year'

DataCollectorCollections

名前 Description 価値

DefaultScaleSettings

名前 Description 価値
scaleType [必須]デプロイ スケーリング アルゴリズムの種類 'Default' (必須)

EndpointDeploymentPropertiesBaseEnvironmentVariables

名前 Description 価値

EndpointDeploymentPropertiesBaseProperties

名前 Description 価値

KubernetesOnlineDeployment

名前 Description 価値
containerResourceRequirements コンテナーのリソース要件 (cpu とメモリ)。 ContainerResourceRequirements
endpointComputeType [必須]エンドポイントのコンピューティングの種類。 'Kubernetes' (必須)

ManagedOnlineDeployment

名前 Description 価値
endpointComputeType [必須]エンドポイントのコンピューティングの種類。 「管理対象」(必須)

ManagedServiceIdentity

名前 Description 価値
型 マネージド サービス ID の種類 (SystemAssigned 型と UserAssigned 型の両方が許可されます)。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned' (必須)
userAssignedIdentities リソースに関連付けられているユーザー割り当て ID のセット。 userAssignedIdentities ディクショナリ キーは、'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} という形式の ARM リソース ID になります。 ディクショナリ値は、要求内の空のオブジェクト ({}) にすることができます。 UserAssignedIdentities

OnlineDeploymentProperties

名前 Description 価値
appInsightsEnabled true の場合は、Application Insights のログ記録を有効にします。 ブール (bool)
codeConfiguration エンドポイントデプロイのコード構成。 CodeConfiguration
dataCollector mdc 構成では、mdc が null の場合は無効になります。 DataCollector
説明 エンドポイントのデプロイの説明。 文字列
egressPublicNetworkAccess デプロイのエグレスに対して PublicNetworkAccess が有効か無効かを判断する列挙型。 'Disabled'
'Enabled'
endpointComputeType KubernetesOnlineDeployment 型を 'Kubernetes' に設定します。 ManagedOnlineDeployment 型を 'Managed' に設定します。 'Kubernetes'
「管理対象」(必須)
environmentId エンドポイントデプロイの環境仕様の ARM リソース ID または AssetId。 文字列
environmentVariables デプロイの環境変数の構成。 EndpointDeploymentPropertiesBaseEnvironmentVariables
instanceType コンピューティング インスタンスの種類。 既定値: Standard_F4s_v2。 文字列
livenessProbe Liveness プローブは、コンテナーの正常性を定期的に監視します。 ProbeSettings
モデル モデルへの URI パス。 文字列
modelMountPath カスタム コンテナーにモデルをマウントするパス。 文字列
プロパティ プロパティ ディクショナリ。 プロパティは追加できますが、削除または変更することはできません。 EndpointDeploymentPropertiesBaseProperties
readinessProbe 準備プローブは、コンテナーがトラフィックを処理する準備ができているかどうかを検証します。 プロパティと既定値は、liveness プローブと同じです。 ProbeSettings
requestSettings デプロイの要求設定。 OnlineRequestSettings
scaleSettings デプロイのスケール設定。
null または指定されていない場合は、次の手順を行います。
既定では、KubernetesOnlineDeployment の TargetUtilizationScaleSettings に設定されます
ManagedOnlineDeployment の DefaultScaleSettings にアクセスします。
OnlineScaleSettings
startupProbe スタートアップ プローブは、コンテナー内のアプリケーションが正常に開始されたかどうかを確認します。 ProbeSettings

OnlineRequestSettings

名前 Description 価値
maxConcurrentRequestsPerInstance デプロイごとに許可されるノードあたりの最大同時要求数。 デフォルト値は 1 です。 整数 (int)
maxQueueWait (Managed Online エンドポイントでは非推奨)要求が ISO 8601 形式のキューに保持される最大時間。
既定値は 500 ミリ秒です。
(ネットワーク/キューの遅延を考慮して request_timeout_ms を増やします)
文字列
リクエストタイムアウト ISO 8601 形式のスコアリング タイムアウト。
既定値は 5,000 ミリ秒です。
文字列

OnlineScaleSettings

名前 Description 価値
scaleType タイプ DefaultScaleSettings を 'Default' に設定します。 タイプ TargetUtilizationScaleSettings の 'TargetUtilization' に設定します。 デフォルト
'TargetUtilization' (必須)

ProbeSettings

名前 Description 価値
failureThreshold 異常な状態を返す前に許可するエラーの数。 整数 (int)
initialDelay ISO 8601 形式の最初のプローブの前の遅延。 文字列
ピリオド ISO 8601 形式のプローブ間の時間の長さ。 文字列
successThreshold 正常な状態を返す前の成功したプローブの数。 整数 (int)
timeout ISO 8601 形式のプローブ タイムアウト。 文字列

RequestLogging

名前 Description 価値
captureHeaders ペイロード ログの場合、既定ではペイロードのみが収集されます。 指定したヘッダーも収集する必要がある場合は、バックエンドがペイロードと共にこれらのヘッダーを収集するように captureHeaders で設定できます。 string[]

Sku

名前 Description 価値
キャパシティ SKU でスケールアウト/インがサポートされている場合は、容量の整数を含める必要があります。 リソースに対してスケールアウト/インができない場合は、これを省略できます。 整数 (int)
family 同じ SKU に対して、サービスの世代が異なるハードウェアがある場合は、ここでキャプチャできます。 文字列
名前 SKU の名前。 例 - P3。 通常は文字 + 数字のコードです string (必須)
size SKU サイズ。 名前フィールドが層と他の値の組み合わせである場合、これはスタンドアロン コードになります。 文字列
レベル このフィールドは、サービスに複数のレベルがあるが PUT では必要ない場合に、リソース プロバイダーによって実装される必要があります。 'Basic'
'Free'
'Premium'
'Standard'

TargetUtilizationScaleSettings

名前 Description 価値
maxInstances デプロイがスケーリングできるインスタンスの最大数。 クォータはmax_instances用に予約されます。 整数 (int)
minInstances 常に存在するインスタンスの最小数。 整数 (int)
pollingInterval ISO 8691 形式のポーリング間隔。 秒という低い精度の期間のみをサポートします。 文字列
scaleType [必須]デプロイ スケーリング アルゴリズムの種類 'TargetUtilization' (必須)
targetUtilizationPercentage 自動スケーラーのターゲット CPU 使用率。 整数 (int)

TrackedResourceTags

名前 Description 価値

UserAssignedIdentities

名前 Description 価値

UserAssignedIdentity

名前 Description 価値

ARM テンプレート リソース定義

workspaces/onlineEndpoints/deployments リソースの種類は、次を対象とする操作でデプロイできます。

使用例

リソース形式

Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments リソースを作成するには、次の JSON をテンプレートに追加します。

{
  "type": "Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments",
  "apiVersion": "2025-10-01-preview",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "kind": "string",
  "location": "string",
  "properties": {
    "appInsightsEnabled": "bool",
    "codeConfiguration": {
      "codeId": "string",
      "scoringScript": "string"
    },
    "dataCollector": {
      "collections": {
        "{customized property}": {
          "clientId": "string",
          "dataCollectionMode": "string",
          "dataId": "string",
          "samplingRate": "int"
        }
      },
      "requestLogging": {
        "captureHeaders": [ "string" ]
      },
      "rollingRate": "string"
    },
    "description": "string",
    "egressPublicNetworkAccess": "string",
    "environmentId": "string",
    "environmentVariables": {
      "{customized property}": "string"
    },
    "instanceType": "string",
    "livenessProbe": {
      "failureThreshold": "int",
      "initialDelay": "string",
      "period": "string",
      "successThreshold": "int",
      "timeout": "string"
    },
    "model": "string",
    "modelMountPath": "string",
    "properties": {
      "{customized property}": "string"
    },
    "readinessProbe": {
      "failureThreshold": "int",
      "initialDelay": "string",
      "period": "string",
      "successThreshold": "int",
      "timeout": "string"
    },
    "requestSettings": {
      "maxConcurrentRequestsPerInstance": "int",
      "maxQueueWait": "string",
      "requestTimeout": "string"
    },
    "scaleSettings": {
      "scaleType": "string"
      // For remaining properties, see OnlineScaleSettings objects
    },
    "startupProbe": {
      "failureThreshold": "int",
      "initialDelay": "string",
      "period": "string",
      "successThreshold": "int",
      "timeout": "string"
    },
    "endpointComputeType": "string"
    // For remaining properties, see OnlineDeploymentProperties objects
  },
  "sku": {
    "capacity": "int",
    "family": "string",
    "name": "string",
    "size": "string",
    "tier": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

OnlineDeploymentProperties オブジェクト

endpointComputeType プロパティを設定して、オブジェクトのタイプを指定します。

Kubernetesの場合は、以下を使用します。

{
  "containerResourceRequirements": {
    "containerResourceLimits": {
      "cpu": "string",
      "gpu": "string",
      "memory": "string"
    },
    "containerResourceRequests": {
      "cpu": "string",
      "gpu": "string",
      "memory": "string"
    }
  },
  "endpointComputeType": "Kubernetes"
}

[ 管理対象] の場合は、次を使用します。

{
  "endpointComputeType": "Managed"
}

OnlineScaleSettings オブジェクト

scaleType プロパティを設定して、オブジェクトのタイプを指定します。

既定 の場合は、次の値を使用します。

{
  "scaleType": "Default"
}

TargetUtilization には、次を使用します。

{
  "maxInstances": "int",
  "minInstances": "int",
  "pollingInterval": "string",
  "scaleType": "TargetUtilization",
  "targetUtilizationPercentage": "int"
}

プロパティ値

Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments

名前 Description 価値
apiVersion API のバージョン '2025-10-01-プレビュー'
ID マネージド サービス ID (システム割り当て ID またはユーザー割り当て ID) ManagedServiceIdentity
kind 同じ種類のリソースに対して異なる UX エクスペリエンスをレンダリングするためにポータルやツールなどで使用されるメタデータ。 文字列
位置 リソースが存在する地理的な場所 string (必須)
名前 リソース名 string (必須)
プロパティ [必須]エンティティの追加の属性。 OnlineDeploymentProperties (必須)
sku 自動スケールの ARM コントラクトに必要な SKU の詳細。 Sku
tags リソース タグ タグ名と値のディクショナリ。 「テンプレート内のタグ」を参照してください
型 リソースの種類 'Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments'

CodeConfiguration

名前 Description 価値
codeId コード資産の ARM リソース ID。 文字列
scoringScript [必須]起動時に実行するスクリプト。 eg. "score.py" string

Constraints:
最小長 = 1
パターン = [a-zA-Z0-9_] (必須)

徴収

名前 Description 価値
clientId BLOB ストレージへのログ記録の収集に使用される msi クライアント ID。 null の場合、バックエンドは認証する登録済みのエンドポイント ID を選択します。 文字列
dataCollectionMode データ収集を有効または無効にします。 'Disabled'
'Enabled'
dataId データ資産の arm リソース ID。クライアント側では、データ資産が BLOB ストレージを指していることを確認し、バックエンドは BLOB ストレージにデータを収集します。 文字列
samplingRate コレクションのサンプリング レート。 サンプリング レート 1.0 は、既定で 100% のデータを収集します。 整数 (int)

ContainerResourceRequirements

名前 Description 価値
containerResourceLimits コンテナー リソースの制限情報: ContainerResourceSettings
containerResourceRequests コンテナー リソース要求情報: ContainerResourceSettings

ContainerResourceSettings

名前 Description 価値
cpu コンテナーの vCPU 要求/制限の数。 詳細情報:
https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
文字列
GPU コンテナーの Nvidia GPU カード要求/制限の数。 詳細情報:
https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
文字列
メモリ コンテナーのメモリ サイズ要求/制限。 詳細情報:
https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
文字列

データコレクタ

名前 Description 価値
collections [必須]コレクションの構成。 各コレクションには、モデル データを収集するための独自の構成があり、コレクションの名前は任意の文字列にすることができます。
モデル データ コレクターは、ペイロード ログ記録またはカスタム ログ記録、またはその両方に使用できます。 コレクションの要求と応答はペイロード ログ用に予約され、他の要求はカスタム ログ用です。
DataCollectorCollections (必須)
requestLogging mdc の要求ログ構成には、すべてのコレクションの詳細なログ設定が含まれています。 これは省略可能です。 RequestLogging
rollingRate モデル データが BLOB ストレージに収集される場合は、データをすべて 1 つの BLOB ファイルに記録しないように、データを別のパスにロールする必要があります。
ローリング レートが時間の場合、すべてのデータが BLOB パス /yyyy/MM/dd/HH/ に収集されます。
1 日の場合、すべてのデータが BLOB パス /yyyy/MM/dd/ に収集されます。
ローリング パスのもう 1 つの利点は、モデル監視 UI でデータの時間範囲を非常に迅速に選択できることです。
'Day'
'Hour'
'Minute'
'Month'
'Year'

DataCollectorCollections

名前 Description 価値

DefaultScaleSettings

名前 Description 価値
scaleType [必須]デプロイ スケーリング アルゴリズムの種類 'Default' (必須)

EndpointDeploymentPropertiesBaseEnvironmentVariables

名前 Description 価値

EndpointDeploymentPropertiesBaseProperties

名前 Description 価値

KubernetesOnlineDeployment

名前 Description 価値
containerResourceRequirements コンテナーのリソース要件 (cpu とメモリ)。 ContainerResourceRequirements
endpointComputeType [必須]エンドポイントのコンピューティングの種類。 'Kubernetes' (必須)

ManagedOnlineDeployment

名前 Description 価値
endpointComputeType [必須]エンドポイントのコンピューティングの種類。 「管理対象」(必須)

ManagedServiceIdentity

名前 Description 価値
型 マネージド サービス ID の種類 (SystemAssigned 型と UserAssigned 型の両方が許可されます)。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned' (必須)
userAssignedIdentities リソースに関連付けられているユーザー割り当て ID のセット。 userAssignedIdentities ディクショナリ キーは、'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} という形式の ARM リソース ID になります。 ディクショナリ値は、要求内の空のオブジェクト ({}) にすることができます。 UserAssignedIdentities

OnlineDeploymentProperties

名前 Description 価値
appInsightsEnabled true の場合は、Application Insights のログ記録を有効にします。 ブール (bool)
codeConfiguration エンドポイントデプロイのコード構成。 CodeConfiguration
dataCollector mdc 構成では、mdc が null の場合は無効になります。 DataCollector
説明 エンドポイントのデプロイの説明。 文字列
egressPublicNetworkAccess デプロイのエグレスに対して PublicNetworkAccess が有効か無効かを判断する列挙型。 'Disabled'
'Enabled'
endpointComputeType KubernetesOnlineDeployment 型を 'Kubernetes' に設定します。 ManagedOnlineDeployment 型を 'Managed' に設定します。 'Kubernetes'
「管理対象」(必須)
environmentId エンドポイントデプロイの環境仕様の ARM リソース ID または AssetId。 文字列
environmentVariables デプロイの環境変数の構成。 EndpointDeploymentPropertiesBaseEnvironmentVariables
instanceType コンピューティング インスタンスの種類。 既定値: Standard_F4s_v2。 文字列
livenessProbe Liveness プローブは、コンテナーの正常性を定期的に監視します。 ProbeSettings
モデル モデルへの URI パス。 文字列
modelMountPath カスタム コンテナーにモデルをマウントするパス。 文字列
プロパティ プロパティ ディクショナリ。 プロパティは追加できますが、削除または変更することはできません。 EndpointDeploymentPropertiesBaseProperties
readinessProbe 準備プローブは、コンテナーがトラフィックを処理する準備ができているかどうかを検証します。 プロパティと既定値は、liveness プローブと同じです。 ProbeSettings
requestSettings デプロイの要求設定。 OnlineRequestSettings
scaleSettings デプロイのスケール設定。
null または指定されていない場合は、次の手順を行います。
既定では、KubernetesOnlineDeployment の TargetUtilizationScaleSettings に設定されます
ManagedOnlineDeployment の DefaultScaleSettings にアクセスします。
OnlineScaleSettings
startupProbe スタートアップ プローブは、コンテナー内のアプリケーションが正常に開始されたかどうかを確認します。 ProbeSettings

OnlineRequestSettings

名前 Description 価値
maxConcurrentRequestsPerInstance デプロイごとに許可されるノードあたりの最大同時要求数。 デフォルト値は 1 です。 整数 (int)
maxQueueWait (Managed Online エンドポイントでは非推奨)要求が ISO 8601 形式のキューに保持される最大時間。
既定値は 500 ミリ秒です。
(ネットワーク/キューの遅延を考慮して request_timeout_ms を増やします)
文字列
リクエストタイムアウト ISO 8601 形式のスコアリング タイムアウト。
既定値は 5,000 ミリ秒です。
文字列

OnlineScaleSettings

名前 Description 価値
scaleType タイプ DefaultScaleSettings を 'Default' に設定します。 タイプ TargetUtilizationScaleSettings の 'TargetUtilization' に設定します。 デフォルト
'TargetUtilization' (必須)

ProbeSettings

名前 Description 価値
failureThreshold 異常な状態を返す前に許可するエラーの数。 整数 (int)
initialDelay ISO 8601 形式の最初のプローブの前の遅延。 文字列
ピリオド ISO 8601 形式のプローブ間の時間の長さ。 文字列
successThreshold 正常な状態を返す前の成功したプローブの数。 整数 (int)
timeout ISO 8601 形式のプローブ タイムアウト。 文字列

RequestLogging

名前 Description 価値
captureHeaders ペイロード ログの場合、既定ではペイロードのみが収集されます。 指定したヘッダーも収集する必要がある場合は、バックエンドがペイロードと共にこれらのヘッダーを収集するように captureHeaders で設定できます。 string[]

Sku

名前 Description 価値
キャパシティ SKU でスケールアウト/インがサポートされている場合は、容量の整数を含める必要があります。 リソースに対してスケールアウト/インができない場合は、これを省略できます。 整数 (int)
family 同じ SKU に対して、サービスの世代が異なるハードウェアがある場合は、ここでキャプチャできます。 文字列
名前 SKU の名前。 例 - P3。 通常は文字 + 数字のコードです string (必須)
size SKU サイズ。 名前フィールドが層と他の値の組み合わせである場合、これはスタンドアロン コードになります。 文字列
レベル このフィールドは、サービスに複数のレベルがあるが PUT では必要ない場合に、リソース プロバイダーによって実装される必要があります。 'Basic'
'Free'
'Premium'
'Standard'

TargetUtilizationScaleSettings

名前 Description 価値
maxInstances デプロイがスケーリングできるインスタンスの最大数。 クォータはmax_instances用に予約されます。 整数 (int)
minInstances 常に存在するインスタンスの最小数。 整数 (int)
pollingInterval ISO 8691 形式のポーリング間隔。 秒という低い精度の期間のみをサポートします。 文字列
scaleType [必須]デプロイ スケーリング アルゴリズムの種類 'TargetUtilization' (必須)
targetUtilizationPercentage 自動スケーラーのターゲット CPU 使用率。 整数 (int)

TrackedResourceTags

名前 Description 価値

UserAssignedIdentities

名前 Description 価値

UserAssignedIdentity

名前 Description 価値

Terraform (AzAPI プロバイダー) リソース定義

workspaces/onlineEndpoints/deployments リソースの種類は、次を対象とする操作でデプロイできます。

  • リソースグループ 各APIバージョンの変更プロパティ一覧については、 変更ログをご覧ください。

リソース形式

Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments リソースを作成するには、次の Terraform をテンプレートに追加します。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments@2025-10-01-preview"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    kind = "string"
    properties = {
      appInsightsEnabled = bool
      codeConfiguration = {
        codeId = "string"
        scoringScript = "string"
      }
      dataCollector = {
        collections = {
          {customized property} = {
            clientId = "string"
            dataCollectionMode = "string"
            dataId = "string"
            samplingRate = int
          }
        }
        requestLogging = {
          captureHeaders = [
            "string"
          ]
        }
        rollingRate = "string"
      }
      description = "string"
      egressPublicNetworkAccess = "string"
      environmentId = "string"
      environmentVariables = {
        {customized property} = "string"
      }
      instanceType = "string"
      livenessProbe = {
        failureThreshold = int
        initialDelay = "string"
        period = "string"
        successThreshold = int
        timeout = "string"
      }
      model = "string"
      modelMountPath = "string"
      properties = {
        {customized property} = "string"
      }
      readinessProbe = {
        failureThreshold = int
        initialDelay = "string"
        period = "string"
        successThreshold = int
        timeout = "string"
      }
      requestSettings = {
        maxConcurrentRequestsPerInstance = int
        maxQueueWait = "string"
        requestTimeout = "string"
      }
      scaleSettings = {
        scaleType = "string"
        // For remaining properties, see OnlineScaleSettings objects
      }
      startupProbe = {
        failureThreshold = int
        initialDelay = "string"
        period = "string"
        successThreshold = int
        timeout = "string"
      }
      endpointComputeType = "string"
      // For remaining properties, see OnlineDeploymentProperties objects
    }
    sku = {
      capacity = int
      family = "string"
      name = "string"
      size = "string"
      tier = "string"
    }
  }
}

OnlineDeploymentProperties オブジェクト

endpointComputeType プロパティを設定して、オブジェクトのタイプを指定します。

Kubernetesの場合は、以下を使用します。

{
  containerResourceRequirements = {
    containerResourceLimits = {
      cpu = "string"
      gpu = "string"
      memory = "string"
    }
    containerResourceRequests = {
      cpu = "string"
      gpu = "string"
      memory = "string"
    }
  }
  endpointComputeType = "Kubernetes"
}

[ 管理対象] の場合は、次を使用します。

{
  endpointComputeType = "Managed"
}

OnlineScaleSettings オブジェクト

scaleType プロパティを設定して、オブジェクトのタイプを指定します。

既定 の場合は、次の値を使用します。

{
  scaleType = "Default"
}

TargetUtilization には、次を使用します。

{
  maxInstances = int
  minInstances = int
  pollingInterval = "string"
  scaleType = "TargetUtilization"
  targetUtilizationPercentage = int
}

プロパティ値

Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments

名前 Description 価値
ID マネージド サービス ID (システム割り当て ID またはユーザー割り当て ID) ManagedServiceIdentity
kind 同じ種類のリソースに対して異なる UX エクスペリエンスをレンダリングするためにポータルやツールなどで使用されるメタデータ。 文字列
位置 リソースが存在する地理的な場所 string (必須)
名前 リソース名 string (必須)
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: workspaces/onlineEndpoints
プロパティ [必須]エンティティの追加の属性。 OnlineDeploymentProperties (必須)
sku 自動スケールの ARM コントラクトに必要な SKU の詳細。 Sku
tags リソース タグ タグ名と値のディクショナリ。
型 リソースの種類 "Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments@2025-10-01-preview"

CodeConfiguration

名前 Description 価値
codeId コード資産の ARM リソース ID。 文字列
scoringScript [必須]起動時に実行するスクリプト。 eg. "score.py" string

Constraints:
最小長 = 1
パターン = [a-zA-Z0-9_] (必須)

徴収

名前 Description 価値
clientId BLOB ストレージへのログ記録の収集に使用される msi クライアント ID。 null の場合、バックエンドは認証する登録済みのエンドポイント ID を選択します。 文字列
dataCollectionMode データ収集を有効または無効にします。 'Disabled'
'Enabled'
dataId データ資産の arm リソース ID。クライアント側では、データ資産が BLOB ストレージを指していることを確認し、バックエンドは BLOB ストレージにデータを収集します。 文字列
samplingRate コレクションのサンプリング レート。 サンプリング レート 1.0 は、既定で 100% のデータを収集します。 整数 (int)

ContainerResourceRequirements

名前 Description 価値
containerResourceLimits コンテナー リソースの制限情報: ContainerResourceSettings
containerResourceRequests コンテナー リソース要求情報: ContainerResourceSettings

ContainerResourceSettings

名前 Description 価値
cpu コンテナーの vCPU 要求/制限の数。 詳細情報:
https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
文字列
GPU コンテナーの Nvidia GPU カード要求/制限の数。 詳細情報:
https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
文字列
メモリ コンテナーのメモリ サイズ要求/制限。 詳細情報:
https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
文字列

データコレクタ

名前 Description 価値
collections [必須]コレクションの構成。 各コレクションには、モデル データを収集するための独自の構成があり、コレクションの名前は任意の文字列にすることができます。
モデル データ コレクターは、ペイロード ログ記録またはカスタム ログ記録、またはその両方に使用できます。 コレクションの要求と応答はペイロード ログ用に予約され、他の要求はカスタム ログ用です。
DataCollectorCollections (必須)
requestLogging mdc の要求ログ構成には、すべてのコレクションの詳細なログ設定が含まれています。 これは省略可能です。 RequestLogging
rollingRate モデル データが BLOB ストレージに収集される場合は、データをすべて 1 つの BLOB ファイルに記録しないように、データを別のパスにロールする必要があります。
ローリング レートが時間の場合、すべてのデータが BLOB パス /yyyy/MM/dd/HH/ に収集されます。
1 日の場合、すべてのデータが BLOB パス /yyyy/MM/dd/ に収集されます。
ローリング パスのもう 1 つの利点は、モデル監視 UI でデータの時間範囲を非常に迅速に選択できることです。
'Day'
'Hour'
'Minute'
'Month'
'Year'

DataCollectorCollections

名前 Description 価値

DefaultScaleSettings

名前 Description 価値
scaleType [必須]デプロイ スケーリング アルゴリズムの種類 'Default' (必須)

EndpointDeploymentPropertiesBaseEnvironmentVariables

名前 Description 価値

EndpointDeploymentPropertiesBaseProperties

名前 Description 価値

KubernetesOnlineDeployment

名前 Description 価値
containerResourceRequirements コンテナーのリソース要件 (cpu とメモリ)。 ContainerResourceRequirements
endpointComputeType [必須]エンドポイントのコンピューティングの種類。 'Kubernetes' (必須)

ManagedOnlineDeployment

名前 Description 価値
endpointComputeType [必須]エンドポイントのコンピューティングの種類。 「管理対象」(必須)

ManagedServiceIdentity

名前 Description 価値
型 マネージド サービス ID の種類 (SystemAssigned 型と UserAssigned 型の両方が許可されます)。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned' (必須)
userAssignedIdentities リソースに関連付けられているユーザー割り当て ID のセット。 userAssignedIdentities ディクショナリ キーは、'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} という形式の ARM リソース ID になります。 ディクショナリ値は、要求内の空のオブジェクト ({}) にすることができます。 UserAssignedIdentities

OnlineDeploymentProperties

名前 Description 価値
appInsightsEnabled true の場合は、Application Insights のログ記録を有効にします。 ブール (bool)
codeConfiguration エンドポイントデプロイのコード構成。 CodeConfiguration
dataCollector mdc 構成では、mdc が null の場合は無効になります。 DataCollector
説明 エンドポイントのデプロイの説明。 文字列
egressPublicNetworkAccess デプロイのエグレスに対して PublicNetworkAccess が有効か無効かを判断する列挙型。 'Disabled'
'Enabled'
endpointComputeType KubernetesOnlineDeployment 型を 'Kubernetes' に設定します。 ManagedOnlineDeployment 型を 'Managed' に設定します。 'Kubernetes'
「管理対象」(必須)
environmentId エンドポイントデプロイの環境仕様の ARM リソース ID または AssetId。 文字列
environmentVariables デプロイの環境変数の構成。 EndpointDeploymentPropertiesBaseEnvironmentVariables
instanceType コンピューティング インスタンスの種類。 既定値: Standard_F4s_v2。 文字列
livenessProbe Liveness プローブは、コンテナーの正常性を定期的に監視します。 ProbeSettings
モデル モデルへの URI パス。 文字列
modelMountPath カスタム コンテナーにモデルをマウントするパス。 文字列
プロパティ プロパティ ディクショナリ。 プロパティは追加できますが、削除または変更することはできません。 EndpointDeploymentPropertiesBaseProperties
readinessProbe 準備プローブは、コンテナーがトラフィックを処理する準備ができているかどうかを検証します。 プロパティと既定値は、liveness プローブと同じです。 ProbeSettings
requestSettings デプロイの要求設定。 OnlineRequestSettings
scaleSettings デプロイのスケール設定。
null または指定されていない場合は、次の手順を行います。
既定では、KubernetesOnlineDeployment の TargetUtilizationScaleSettings に設定されます
ManagedOnlineDeployment の DefaultScaleSettings にアクセスします。
OnlineScaleSettings
startupProbe スタートアップ プローブは、コンテナー内のアプリケーションが正常に開始されたかどうかを確認します。 ProbeSettings

OnlineRequestSettings

名前 Description 価値
maxConcurrentRequestsPerInstance デプロイごとに許可されるノードあたりの最大同時要求数。 デフォルト値は 1 です。 整数 (int)
maxQueueWait (Managed Online エンドポイントでは非推奨)要求が ISO 8601 形式のキューに保持される最大時間。
既定値は 500 ミリ秒です。
(ネットワーク/キューの遅延を考慮して request_timeout_ms を増やします)
文字列
リクエストタイムアウト ISO 8601 形式のスコアリング タイムアウト。
既定値は 5,000 ミリ秒です。
文字列

OnlineScaleSettings

名前 Description 価値
scaleType タイプ DefaultScaleSettings を 'Default' に設定します。 タイプ TargetUtilizationScaleSettings の 'TargetUtilization' に設定します。 デフォルト
'TargetUtilization' (必須)

ProbeSettings

名前 Description 価値
failureThreshold 異常な状態を返す前に許可するエラーの数。 整数 (int)
initialDelay ISO 8601 形式の最初のプローブの前の遅延。 文字列
ピリオド ISO 8601 形式のプローブ間の時間の長さ。 文字列
successThreshold 正常な状態を返す前の成功したプローブの数。 整数 (int)
timeout ISO 8601 形式のプローブ タイムアウト。 文字列

RequestLogging

名前 Description 価値
captureHeaders ペイロード ログの場合、既定ではペイロードのみが収集されます。 指定したヘッダーも収集する必要がある場合は、バックエンドがペイロードと共にこれらのヘッダーを収集するように captureHeaders で設定できます。 string[]

Sku

名前 Description 価値
キャパシティ SKU でスケールアウト/インがサポートされている場合は、容量の整数を含める必要があります。 リソースに対してスケールアウト/インができない場合は、これを省略できます。 整数 (int)
family 同じ SKU に対して、サービスの世代が異なるハードウェアがある場合は、ここでキャプチャできます。 文字列
名前 SKU の名前。 例 - P3。 通常は文字 + 数字のコードです string (必須)
size SKU サイズ。 名前フィールドが層と他の値の組み合わせである場合、これはスタンドアロン コードになります。 文字列
レベル このフィールドは、サービスに複数のレベルがあるが PUT では必要ない場合に、リソース プロバイダーによって実装される必要があります。 'Basic'
'Free'
'Premium'
'Standard'

TargetUtilizationScaleSettings

名前 Description 価値
maxInstances デプロイがスケーリングできるインスタンスの最大数。 クォータはmax_instances用に予約されます。 整数 (int)
minInstances 常に存在するインスタンスの最小数。 整数 (int)
pollingInterval ISO 8691 形式のポーリング間隔。 秒という低い精度の期間のみをサポートします。 文字列
scaleType [必須]デプロイ スケーリング アルゴリズムの種類 'TargetUtilization' (必須)
targetUtilizationPercentage 自動スケーラーのターゲット CPU 使用率。 整数 (int)

TrackedResourceTags

名前 Description 価値

UserAssignedIdentities

名前 Description 価値

UserAssignedIdentity

名前 Description 価値