Learn R Programming

azuremlsdk (version 1.10.0)

set_secrets: Add secrets to a keyvault

Description

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

Usage

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

Run this code
# NOT RUN {
ws <- load_workspace_from_config()
my_secret <- Sys.getenv("MY_SECRET")
keyvault <- get_default_keyvault(ws)
set_secrets(list("mysecret" = my_secret))
# }

Run the code above in your browser using DataLab