get_secrets_from_run: Get secrets from the keyvault associated with a run's...

Description Usage Arguments Value See Also

View source: R/run.R

Description

From within the script of a run submitted using submit_experiment(), you can use get_secrets_from_run() to get secrets that are stored in the keyvault of the associated workspace.

Note that this method is slightly different than get_secrets(), which first requires you to instantiate the workspace object. Since a submitted run is aware of its workspace, get_secrets_from_run() shortcuts workspace instantiation and returns the secret value directly.

Be careful not to expose the secret(s) values by writing or printing them out.

Usage

1
get_secrets_from_run(run, secrets)

Arguments

run

The Run object.

secrets

A vector of strings of secret names to retrieve the values for.

Value

A named list of found and not found secrets. If a secret was not found, the corresponding element will be NULL.

See Also

set_secrets()


azuremlsdk documentation built on Oct. 23, 2020, 8:22 p.m.