set_secrets: Add secrets to a keyvault

Description Usage Arguments Value Examples

View source: R/keyvault.R

Description

Add a named list of secrets into the keyvault associated with the workspace.

Usage

1
set_secrets(keyvault, secrets)

Arguments

keyvault

The Keyvault object.

secrets

The named list of secrets to be added to the keyvault, where element name corresponds to the secret name.

Value

None

Examples

1
2
3
4
5
6
7
## Not run: 
ws <- load_workspace_from_config()
my_secret <- Sys.getenv("MY_SECRET")
keyvault <- get_default_keyvault(ws)
set_secrets(list("mysecret" = my_secret))

## End(Not run)

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