| az_set_sp_secret | R Documentation |
Creates or replaces a DuckDB Azure secret using the service_principal
provider.
az_set_sp_secret(conn, tenant_id, client_id, client_secret, account = NULL)
conn |
A DuckDB connection. |
tenant_id |
Character scalar. Azure Entra tenant ID. |
client_id |
Character scalar. Service principal client ID. |
client_secret |
Character scalar. Service principal client secret. |
account |
Optional storage account name. When supplied, the secret is scoped to that account. |
Invisibly returns conn.
## Not run:
# Requires a live Azure account, credentials, and network access.
conn <- az_conn()
az_set_sp_secret(
conn,
tenant_id = "00000000-0000-0000-0000-000000000000",
client_id = Sys.getenv("AZURE_CLIENT_ID"),
client_secret = Sys.getenv("AZURE_CLIENT_SECRET")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.