yera.cli.setup_handlers.azure

Azure OpenAI provider setup handler.

Symbols

class AzureSetup — Handler for configuring Azure OpenAI provider connections.

AzureSetup

Handler for configuring Azure OpenAI provider connections.

This class provides mechanisms to automatically discover Azure OpenAI resources across all accessible subscriptions or to manually configure a specific connection via user input.

Methods

__init__ — Initialize Azure setup with the console used for interaction.
detect_config — Discover and select an Azure OpenAI account.
ask_for_config — Interactively prompts the user for Azure OpenAI connection details.

AzureSetup.__init__

__init__(
    console: Console,
) → None

Initialize Azure setup with the console used for interaction.

Parameters

console
type: Console

Rich console that presents discovery and setup prompts.

AzureSetup.detect_config

detect_config() → AzureConnection | None

Discover and select an Azure OpenAI account.

Returns

type: AzureConnection | None

The selected Azure OpenAI connection, or None when discovery cannot produce an account.

AzureSetup.ask_for_config

ask_for_config() → AzureConnection | None

Interactively prompts the user for Azure OpenAI connection details.

Collects required metadata including the endpoint, resource name, subscription ID, tenant ID, and resource group.

Returns

type: AzureConnection | None

An AzureConnection instance containing the user-provided details, or None if the user declines the setup.