AzureAppConfigurationProvider Class
Provides a dictionary-like interface to Azure App Configuration settings. Enables loading of sets of configuration settings from Azure App Configuration into a Python application. Enables trimming of prefixes from configuration keys. Enables resolution of Key Vault references in configuration settings.
Constructor
AzureAppConfigurationProvider(**kwargs: Any)
Methods
close |
Closes the connection to Azure App Configuration. |
get |
Returns the value of the specified key. If the key does not exist, returns the default value. |
items |
Returns a set-like object of key-value pairs loaded from Azure App Configuration. Any values that are Key Vault references will be resolved. |
keys |
Returns a list of keys loaded from Azure App Configuration. |
refresh | |
values |
Returns a list of values loaded from Azure App Configuration. Any values that are Key Vault references will be resolved. |
close
Closes the connection to Azure App Configuration.
async close() -> None
get
Returns the value of the specified key. If the key does not exist, returns the default value.
get(key: str, default: str | Mapping[str, Any] | _T | None = None) -> str | Mapping[str, Any] | _T | None
Parameters
Name | Description |
---|---|
key
Required
|
The key of the value to get. |
default
|
The default value to return. Default value: None
|
Returns
Type | Description |
---|---|
The value of the specified key. |
items
Returns a set-like object of key-value pairs loaded from Azure App Configuration. Any values that are Key Vault references will be resolved.
items() -> ItemsView[str, str | Mapping[str, Any]]
Returns
Type | Description |
---|---|
A set-like object of key-value pairs loaded from Azure App Configuration. |
keys
refresh
async refresh(**kwargs) -> None
values
Returns a list of values loaded from Azure App Configuration. Any values that are Key Vault references will be resolved.
values() -> ValuesView[str | Mapping[str, Any]]
Returns
Type | Description |
---|---|
A list of values loaded from Azure App Configuration. The values are either Strings or JSON objects, based on there content type. |