az_cli_account_show: Show Azure CLI Account Information

View source: R/credential-azure-cli.R

az_cli_account_showR Documentation

Show Azure CLI Account Information

Description

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.

Usage

az_cli_account_show(timeout = 10L)

Arguments

timeout

An integer specifying the timeout in seconds for the Azure CLI command. Defaults to 10.

Details

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

Value

A list containing the account information from Azure CLI

Examples

## 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)


azr documentation built on Feb. 18, 2026, 1:07 a.m.