Microsoft.MachineLearningServices ワークスペース/環境/バージョン 2022-12-01-preview

Bicep リソース定義

ワークスペース/環境/バージョンのリソースの種類は、次を対象とする操作でデプロイできます。

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

リソース形式

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

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/environments/versions@2022-12-01-preview' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    autoRebuild: 'string'
    build: {
      contextUri: 'string'
      dockerfilePath: 'string'
    }
    condaFile: 'string'
    description: 'string'
    image: 'string'
    inferenceConfig: {
      livenessRoute: {
        path: 'string'
        port: int
      }
      readinessRoute: {
        path: 'string'
        port: int
      }
      scoringRoute: {
        path: 'string'
        port: int
      }
    }
    isAnonymous: bool
    isArchived: bool
    osType: 'string'
    properties: {}
    tags: {}
  }
}

プロパティ値

workspaces/environments/versions

名前 説明
name リソース名

Bicep で子リソースの名前と型を設定する方法を参照してください。
string (必須)
parent Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、「 親リソースの外部の子リソース」を参照してください。
種類のリソースのシンボル名: 環境
properties [必須]エンティティの追加の属性。 EnvironmentVersionProperties (必須)

EnvironmentVersionProperties

名前 説明
autoRebuild 基本イメージの変更に基づいてイメージを再構築する必要があるかどうかを定義します。 'Disabled'
'OnBaseImageUpdate'
build Docker ビルド コンテキストの構成設定。 BuildContext
condaFile Conda で使用される標準構成ファイルを使用すると、Python、R、C/C++ パッケージなど、あらゆる種類のパッケージをインストールできます。
{href="https://repo2docker.readthedocs.io/en/latest/config_files.html#environment-yml-install-a-conda-environment"を参照してください。/}
string
description 資産の説明テキスト。 string
image 環境に使用されるイメージの名前。
{seealso href="https://docs.microsoft.com/azure/machine-learning/how-to-deploy-custom-docker-image#use-a-custom-base-image"/}
string
inferenceConfig 推論に固有の構成を定義します。 InferenceContainerProperties
isAnonymous 名前のバージョンがシステム生成 (匿名登録) の場合。 [bool]
isArchived 資産はアーカイブされていますか? [bool]
osType 環境の OS の種類。 'Linux'
'Windows'
properties 資産プロパティディクショナリ。 object
tags タグ辞書。 タグは追加、削除、更新できます。 object

BuildContext

名前 説明
contextUri [必須]イメージのビルドに使用される Docker ビルド コンテキストの URI。 環境の作成時に BLOB URI をサポートし、BLOB または Git URI を返す場合があります。
{seealso href="https://docs.docker.com/engine/reference/commandline/build/#extended-description"/}
string (必須)

制約:
Pattern = [a-zA-Z0-9_]
dockerfilePath ビルド コンテキスト内の Dockerfile へのパス。
{seealso href="https://docs.docker.com/engine/reference/builder/"/}
string

InferenceContainerProperties

名前 説明
livenessRoute 推論サーバー コンテナーの有効期間をチェックするルート。 Route
readinessRoute 推論サーバー コンテナーの準備をチェックするルート。 Route
scoringRoute 推論サーバー コンテナー内でスコアリング要求を送信するポート。 Route

ルート

名前 説明
path [必須]ルートのパス。 string (必須)

制約:
Pattern = [a-zA-Z0-9_]
port [必須]ルートのポート。 int (必須)

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

ワークスペース/環境/バージョンのリソースの種類は、次を対象とする操作でデプロイできます。

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

リソース形式

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

{
  "type": "Microsoft.MachineLearningServices/workspaces/environments/versions",
  "apiVersion": "2022-12-01-preview",
  "name": "string",
  "properties": {
    "autoRebuild": "string",
    "build": {
      "contextUri": "string",
      "dockerfilePath": "string"
    },
    "condaFile": "string",
    "description": "string",
    "image": "string",
    "inferenceConfig": {
      "livenessRoute": {
        "path": "string",
        "port": "int"
      },
      "readinessRoute": {
        "path": "string",
        "port": "int"
      },
      "scoringRoute": {
        "path": "string",
        "port": "int"
      }
    },
    "isAnonymous": "bool",
    "isArchived": "bool",
    "osType": "string",
    "properties": {},
    "tags": {}
  }
}

プロパティ値

workspaces/environments/versions

名前 説明
type リソースの種類 'Microsoft.MachineLearningServices/workspaces/environments/versions'
apiVersion リソース API のバージョン '2022-12-01-preview'
name リソース名

JSON ARM テンプレートで子リソースの名前と型を設定する方法を参照してください。
string (必須)
properties [必須]エンティティの追加の属性。 EnvironmentVersionProperties (必須)

EnvironmentVersionProperties

名前 説明
autoRebuild 基本イメージの変更に基づいてイメージを再構築する必要があるかどうかを定義します。 'Disabled'
'OnBaseImageUpdate'
build Docker ビルド コンテキストの構成設定。 BuildContext
condaFile Python、R、C/C++ パッケージなど、あらゆる種類のパッケージをインストールできる Conda によって使用される標準構成ファイル。
{see href="https://repo2docker.readthedocs.io/en/latest/config_files.html#environment-yml-install-a-conda-environment"/}
string
description 資産の説明テキスト。 string
image 環境に使用されるイメージの名前。
{seealso href="https://docs.microsoft.com/azure/machine-learning/how-to-deploy-custom-docker-image#use-a-custom-base-image"/}
string
inferenceConfig 推論に固有の構成を定義します。 InferenceContainerProperties
isAnonymous 名前のバージョンがシステム生成 (匿名登録) の場合。 [bool]
isArchived 資産はアーカイブされていますか? [bool]
osType 環境の OS の種類。 'Linux'
'Windows'
properties 資産プロパティ ディクショナリ。 object
tags タグ辞書。 タグは追加、削除、更新できます。 object

BuildContext

名前 説明
contextUri [必須]イメージのビルドに使用される Docker ビルド コンテキストの URI。 環境の作成で BLOB URI をサポートし、BLOB または Git URI を返す場合があります。
{seealso href="https://docs.docker.com/engine/reference/commandline/build/#extended-description"/}
string (必須)

制約:
Pattern = [a-zA-Z0-9_]
dockerfilePath ビルド コンテキストでの Dockerfile へのパス。
{seealso href="https://docs.docker.com/engine/reference/builder/"/}
string

InferenceContainerProperties

名前 説明
livenessRoute 推論サーバー コンテナーの有効期間をチェックするルート。 Route
readinessRoute 推論サーバー コンテナーの準備をチェックするルート。 Route
scoringRoute 推論サーバー コンテナー内でスコアリング要求を送信するポート。 Route

ルート

名前 説明
path [必須]ルートのパス。 string (必須)

制約:
Pattern = [a-zA-Z0-9_]
port [必須]ルートのポート。 int (必須)

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

ワークスペース/環境/バージョンのリソースの種類は、次を対象とする操作でデプロイできます。

  • リソース グループ

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

リソース形式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.MachineLearningServices/workspaces/environments/versions@2022-12-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      autoRebuild = "string"
      build = {
        contextUri = "string"
        dockerfilePath = "string"
      }
      condaFile = "string"
      description = "string"
      image = "string"
      inferenceConfig = {
        livenessRoute = {
          path = "string"
          port = int
        }
        readinessRoute = {
          path = "string"
          port = int
        }
        scoringRoute = {
          path = "string"
          port = int
        }
      }
      isAnonymous = bool
      isArchived = bool
      osType = "string"
      properties = {}
      tags = {}
    }
  })
}

プロパティ値

workspaces/environments/versions

名前 説明
type リソースの種類 "Microsoft.MachineLearningServices/workspaces/environments/versions@2022-12-01-preview"
name リソース名 string (必須)
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: 環境
properties [必須]エンティティの追加の属性。 EnvironmentVersionProperties (必須)

EnvironmentVersionProperties

名前 説明
autoRebuild 基本イメージの変更に基づいてイメージを再構築する必要があるかどうかを定義します。 "無効"
"OnBaseImageUpdate"
build Docker ビルド コンテキストの構成設定。 BuildContext
condaFile Conda で使用される標準構成ファイルを使用すると、Python、R、C/C++ パッケージなど、あらゆる種類のパッケージをインストールできます。
{href="https://repo2docker.readthedocs.io/en/latest/config_files.html#environment-yml-install-a-conda-environment"を参照してください。/}
string
description 資産の説明テキスト。 string
image 環境に使用されるイメージの名前。
{seealso href="https://docs.microsoft.com/azure/machine-learning/how-to-deploy-custom-docker-image#use-a-custom-base-image"/}
string
inferenceConfig 推論に固有の構成を定義します。 InferenceContainerProperties
isAnonymous 名前のバージョンがシステム生成 (匿名登録) の場合。 [bool]
isArchived 資産はアーカイブされていますか? [bool]
osType 環境の OS の種類。 "Linux"
"Windows"
properties 資産プロパティディクショナリ。 object
tags タグ辞書。 タグは追加、削除、更新できます。 object

BuildContext

名前 説明
contextUri [必須]イメージのビルドに使用される Docker ビルド コンテキストの URI。 環境の作成時に BLOB URI をサポートし、BLOB または Git URI を返す場合があります。
{seealso href="https://docs.docker.com/engine/reference/commandline/build/#extended-description"/}
string (必須)

制約:
Pattern = [a-zA-Z0-9_]
dockerfilePath ビルド コンテキスト内の Dockerfile へのパス。
{seealso href="https://docs.docker.com/engine/reference/builder/"/}
string

InferenceContainerProperties

名前 説明
livenessRoute 推論サーバー コンテナーの有効期間をチェックするルート。 Route
readinessRoute 推論サーバー コンテナーの準備をチェックするルート。 Route
scoringRoute 推論サーバー コンテナー内でスコアリング要求を送信するポート。 Route

ルート

名前 説明
path [必須]ルートのパス。 string (必須)

制約:
Pattern = [a-zA-Z0-9_]
port [必須]ルートのポート。 int (必須)