共用方式為


AmlTokenConfiguration 類別

AzureML 權杖身分識別設定。

繼承
azure.ai.ml.entities._credentials._BaseIdentityConfiguration
AmlTokenConfiguration

建構函式

AmlTokenConfiguration()

範例

設定命令的 AmlTokenConfiguration () 。


   from azure.ai.ml import Input, command
   from azure.ai.ml.constants import AssetTypes
   from azure.ai.ml.entities._credentials import AmlTokenConfiguration

   node = command(
       description="description",
       environment="AzureML-sklearn-1.0-ubuntu20.04-py38-cpu:33",
       code="./tests/test_configs/training/",
       command="python read_data.py --input_data ${{inputs.input_data}}",
       inputs={"input_data": Input(type=AssetTypes.MLTABLE, path="./sample_data")},
       display_name="builder_command_job",
       compute="testCompute",
       experiment_name="mfe-test1-dataset",
       identity=AmlTokenConfiguration(),
   )

方法

get
has_key
items
keys
update
values

get

get(key: Any, default: Any | None = None) -> Any

參數

名稱 Description
key
必要
default
預設值: None

has_key

has_key(k: Any) -> bool

參數

名稱 Description
k
必要

items

items() -> list

keys

keys() -> list

update

update(*args: Any, **kwargs: Any) -> None

values

values() -> list