Azure Data Library
Overview
The ConfigurationDatabaseLib
library provides integrations with various Azure services, including Azure App Configuration and Azure Key Vault. Additionally, it includes an EntraIDConnector
that facilitates making authenticated requests to Azure Active Directory using a service principal for applications that need secure, programmatic access to Azure resources.
Features
App Configuration: Retrieve configuration settings stored in Azure App Configuration.
Key Vault Integration: Securely fetch secrets from Azure Key Vault.
Azure AD Integration: Use a service principal to authenticate and make requests to Microsoft Graph API.
Installation
To install the ConfigurationDatabaseLib
, run:
Setup
Prerequisites
Azure Account: Set up Azure resources like Azure App Configuration, Key Vault, and a service principal in Azure Active Directory.
Environment Variables: Configure the following environment variables:
Configuration
App Configuration: Ensure your Azure App Configuration instance is set up and populated with necessary configuration values.
Key Vault: Store secrets in Azure Key Vault for secure access.
Usage
1. Initialize Azure App Configuration
This feature allows you to initialize and fetch configuration settings from Azure App Configuration.
2. Initialize and Retrieve Secrets from Azure Key Vault
This feature initializes the Azure Key Vault client and fetches secrets by name.
3. Using the EntraIDConnector for Authenticated Requests
The EntraIDConnector
component allows applications to securely authenticate and interact with Azure Active Directory and Microsoft Graph API.
Contributing
Contributions are welcome! Please submit a pull request with your changes, and make sure to include tests where applicable.
License
This project is licensed under the MIT License. See the LICENSE file for details.