yera.setup.provider_setup.azure
Obtain and validate Azure OpenAI provider configuration.
Symbols
AzureProviderSetup
ProviderSetup[AzureConnection]Provide presentation-independent Azure OpenAI setup operations.
Configuration discovery enumerates accessible subscriptions and returns every Cognitive Services account whose kind is OpenAI. Validation requests a Cognitive Services token for the connection's configured tenant.
Attributes
Configuration key for the Azure provider.
Python import paths required by the integration.
Methods
AzureProviderSetup.get_config
get_config() → SetupResult[tuple[AzureConnection, ...]]Obtain accessible Azure OpenAI connection candidates.
Expected Azure authentication and resource-enumeration failures are returned as diagnostics instead of raised.
Returns
Every discovered Azure OpenAI connection and any blocking discovery error.
AzureProviderSetup.validate
validate(
config: AzureConnection,
) → SetupResult[AzureConnection]Validate access to an Azure OpenAI connection's tenant.
Parameters
Azure OpenAI connection containing the tenant to validate.
Returns
The supplied connection and a blocking error when a Cognitive Services token cannot be acquired.