CLI (v2) Azure Files データストア YAML スキーマ

適用対象: Azure CLI ml 拡張機能 v2 (現行)

ソース JSON スキーマは https://azuremlschemas.azureedge.net/latest/azureFile.schema.json にあります。

Note

このドキュメントで詳しく説明されている YAML 構文は、最新バージョンの ML CLI v2 拡張機能の JSON スキーマに基づいています。 この構文は、ML CLI v2 拡張機能の最新バージョンでのみ動作することが保証されています。 以前のバージョンの拡張機能のスキーマについては、https://azuremlschemasprod.azureedge.net/ でご確認いただけます。

YAML 構文

キー Type 説明 使用できる値 既定値
$schema string YAML スキーマ。 Azure Machine Learning VS Code 拡張機能を使用して YAML ファイルを作成する場合は、ファイルの先頭に $schema を含め、スキーマとリソースの入力候補を呼び出します。
type string 必須。 データストアの種類。 azure_file
name string 必須。 データストア名。
description string データストアの説明。
tags object データストアのタグの辞書。
account_name string 必須。 Azure ストレージ アカウント名。
file_share_name string 必須。 ファイル共有名。
endpoint string ストレージ サービスのエンドポイント サフィックス。 これは、ストレージ アカウントエンドポイントの URL を作成するために使用されます。 ストレージ アカウント名と endpoint の組み合わせです。 ストレージ アカウント URL の例: https://<storage-account-name>.file.core.windows.net core.windows.net
protocol string ファイル共有への接続に使用するプロトコル。 https https
credentials オブジェクト Azure ストレージ アカウントに接続するための資格情報ベースの認証資格情報。 アカウント キーまたは共有アクセス署名 (SAS) トークンを指定します。 資格情報のシークレットは、ワークスペースのキー コンテナーに格納されます。
credentials.account_key string ストレージ アカウントにアクセスするためのアカウント キー。 credentialsが指定されている場合はcredentials.account_keyまたはcredentials.sas_tokenのいずれかが必要です。
credentials.sas_token string ストレージ アカウントにアクセスするための SAS トークン。 credentials.account_key または credentials.sas_token のいずれかは、credentials を指定した場合は必須です。

解説

az ml datastore コマンドは、Azure Machine Learning データストアを管理するために使用できます。

例は、GitHub リポジトリの例にあります。 以下にいくつか示します。

YAML: アカウント キー

$schema: https://azuremlschemas.azureedge.net/latest/azureFile.schema.json
name: file_example
type: azure_file
description: Datastore pointing to an Azure File Share.
account_name: mytestfilestore
file_share_name: my-share
credentials:
  account_key: XxXxXxXXXXXXXxXxXxxXxxXXXXXXXXxXxxXXxXXXXXXXxxxXxXXxXXXXXxXXxXXXxXxXxxxXXxXXxXXXXXxXxxXX

YAML: sas トークン

$schema: https://azuremlschemas.azureedge.net/latest/azureFile.schema.json
name: file_sas_example
type: azure_file
description: Datastore pointing to an Azure File Share using SAS token.
account_name: mytestfilestore
file_share_name: my-share
credentials:
  sas_token: ?xx=XXXX-XX-XX&xx=xxxx&xxx=xxx&xx=xxxxxxxxxxx&xx=XXXX-XX-XXXXX:XX:XXX&xx=XXXX-XX-XXXXX:XX:XXX&xxx=xxxxx&xxx=XXxXXXxxxxxXXXXXXXxXxxxXXXXXxxXXXXXxXXXXxXXXxXXxXX

次のステップ