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 an Azure AI token for the connection's configured tenant.
Attributes
Configuration key for the Azure provider.
Python import paths required by the integration.
Methods
AzureProviderSetup.connection_label
connection_label(
config: AzureConnection,
) → strReturn the resource name used by a discovered Azure connection.
Parameters
Discovered Azure OpenAI connection.
Returns
Azure resource name shown in the connection-selection form.
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,
secret_store: SecretStore | None = None,
) → SetupResult[AzureConnection]Validate access to an Azure OpenAI connection's tenant.
Parameters
Azure OpenAI connection containing the tenant to validate.
Unused credential-store override accepted through the common provider validation interface.
Returns
The supplied connection and a blocking error when an Azure AI token cannot be acquired.