| foundry_token_azure_cli | R Documentation |
Create a provider function for foundry_set_token_provider() that shells out
to az account get-access-token. Tokens are cached until five minutes before
expiry.
foundry_token_azure_cli(
resource = "https://cognitiveservices.azure.com",
az = "az"
)
resource |
Character. Azure resource used for the access token. Defaults
to |
az |
Character. Azure CLI executable name or path. |
A zero-argument token provider function.
provider <- foundry_token_azure_cli()
is.function(provider)
## Not run:
# Requires Azure CLI installed and signed in to the intended Azure tenant.
token <- provider()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.