Skip to content

plpipes.cloud.azure.auth#

Module for Azure authentication management within the plpipes framework.

This module provides functionalities to manage Azure credentials using different authentication methods, including interactive browser and Azure CLI methods. Credential objects can be retrieved based on the configured authentication account.

credentials(account_name) #

Retrieves the credential object associated with the given account name.

Parameters:

Name Type Description Default
account_name str

The name of the authentication account.

required

Returns:

Type Description

Credential object for the specified account.

Source code in src\plpipes\cloud\azure\auth\__init__.py
def credentials(account_name):
    """
    Retrieves the credential object associated with the given account name.

    Args:
        account_name (str): The name of the authentication account.

    Returns:
        Credential object for the specified account.
    """
    if account_name not in _registry:
        _registry[account_name] = _init_backend(account_name)
    return _registry[account_name].credentials()