View source: R/credential-azure-cli.R
| az_cli_account_show | R Documentation |
Retrieves information about the currently active Azure CLI account and
subscription. This function runs az account show and parses the JSON
output into an R list.
az_cli_account_show(timeout = 10L)
timeout |
An integer specifying the timeout in seconds for the Azure
CLI command. Defaults to |
The function returns details about the current Azure subscription including:
Subscription ID and name
Tenant ID
Account state (e.g., "Enabled")
User information
Cloud environment details
A list containing the account information from Azure CLI
## Not run:
# Get current account information
account_info <- az_cli_account_show()
# Access subscription ID
subscription_id <- account_info$id
# Access tenant ID
tenant_id <- account_info$tenantId
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.