View source: R/credential-azure-cli.R
| az_cli_login | R Documentation |
Performs an interactive Azure CLI login using device code flow. Automatically captures the device code, copies it to the clipboard, and opens the browser for authentication.
az_cli_login(tenant_id = NULL, use_bridge = FALSE, verbose = FALSE)
tenant_id |
A character string specifying the Azure Active Directory
tenant ID to authenticate against. If |
use_bridge |
A logical value indicating whether to use the device code
bridge webpage. If |
verbose |
A logical value indicating whether to print detailed process
output to the console, including error messages from the Azure CLI process.
If |
This function runs az login --use-device-code, monitors the output
to extract the device code, copies it to the clipboard, and opens
the authentication URL in the default browser.
Invisibly returns the exit status (0 for success, non-zero for failure)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.