CLI (v2) Azure BLOB データストア YAML スキーマ
適用対象: Azure CLI ml 拡張機能 v2 (現行)
https://azuremlschemas.azureedge.net/latest/azureBlob.schema.json にあるソース JSON スキーマを参照してください。
Note
このドキュメントで詳しく説明されている YAML 構文は、最新バージョンの ML CLI v2 拡張機能の JSON スキーマに基づいています。 この構文は、ML CLI v2 拡張機能の最新バージョンでのみ動作することが保証されています。 以前のバージョンの拡張機能のスキーマについては、https://azuremlschemasprod.azureedge.net/ でご確認いただけます。
YAML 構文
キー | Type | 説明 | 使用できる値 | 既定値 |
---|---|---|---|---|
$schema |
string | YAML スキーマ。 Azure Machine Learning 用 Visual Studio Code 拡張機能を使用して YAML ファイルを作成する場合、ファイルの先頭に $schema を含めて、スキーマとリソースの入力候補を呼び出します。 |
||
type |
string | 必須。 データストアの種類。 | azure_blob |
|
name |
string | 必須。 データストア名。 | ||
description |
string | データストアの説明。 | ||
tags |
object | データストアのタグの辞書。 | ||
account_name |
string | 必須。 Azure ストレージ アカウント名。 | ||
container_name |
string | 必須。 コンテナーの名前。 | ||
endpoint |
string | ストレージ アカウント エンドポイント URL の作成に使用される、ストレージ サービスのエンドポイント サフィックス。 ストレージ アカウント名と endpoint の組み合わせです。 ストレージ アカウント URL の例: https://<storage-account-name>.blob.core.windows.net 。 |
core.windows.net |
|
protocol |
string | コンテナーへの接続のプロトコル。 | $ | https |
credentials |
object | Azure ストレージ アカウントへの接続用の資格情報ベースの認証資格情報。 アカウント キーまたは共有アクセス署名 (SAS) トークンは機能します。 ワークスペース キー コンテナーには、資格情報シークレットが格納されます。 | ||
credentials.account_key |
string | ストレージ アカウントへのアクセスに使用されるアカウント キー。 credentials.account_key または credentials.sas_token のいずれかは、credentials を指定した場合は必須です。 |
||
credentials.sas_token |
string | ストレージ アカウントにアクセスする SAS トークン。 credentials.account_key または credentials.sas_token のいずれかは、credentials を指定した場合は必須です。 |
解説
az ml datastore
コマンドを使用して、Azure Machine Learning データストアを管理できます。
例
例については、こちらの GitHub リソースを参照してください。 いくつかのものを次に示します。
YAML: ID ベースのアクセス
$schema: https://azuremlschemas.azureedge.net/latest/azureBlob.schema.json
name: blob_credless_example
type: azure_blob
description: Credential-less datastore pointing to a blob container.
account_name: mytestblobstore
container_name: data-container
YAML: アカウント キー
$schema: https://azuremlschemas.azureedge.net/latest/azureBlob.schema.json
name: blob_example
type: azure_blob
description: Datastore pointing to a blob container.
account_name: mytestblobstore
container_name: data-container
credentials:
account_key: XXXxxxXXXxXXXXxxXXXXXxXXXXXxXxxXxXXXxXXXxXXxxxXXxxXXXxXxXXXxxXxxXXXXxxxxxXXxxxxxxXXXxXXX
YAML: wasbs プロトコル
$schema: https://azuremlschemas.azureedge.net/latest/azureBlob.schema.json
name: blob_protocol_example
type: azure_blob
description: Datastore pointing to a blob container using wasbs protocol.
account_name: mytestblobstore
protocol: wasbs
container_name: data-container
credentials:
account_key: XXXxxxXXXxXXXXxxXXXXXxXXXXXxXxxXxXXXxXXXxXXxxxXXxxXXXxXxXXXxxXxxXXXXxxxxxXXxxxxxxXXXxXXX
YAML: sas トークン
$schema: https://azuremlschemas.azureedge.net/latest/azureBlob.schema.json
name: blob_sas_example
type: azure_blob
description: Datastore pointing to a blob container using SAS token.
account_name: mytestblobstore
container_name: data-container
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