![]() |
VOOZH | about |
dotnet add package AzureSolutions.Helpers --version 2.1.12
NuGet\Install-Package AzureSolutions.Helpers -Version 2.1.12
<PackageReference Include="AzureSolutions.Helpers" Version="2.1.12" />
<PackageVersion Include="AzureSolutions.Helpers" Version="2.1.12" />Directory.Packages.props
<PackageReference Include="AzureSolutions.Helpers" />Project file
paket add AzureSolutions.Helpers --version 2.1.12
#r "nuget: AzureSolutions.Helpers, 2.1.12"
#:package AzureSolutions.Helpers@2.1.12
#addin nuget:?package=AzureSolutions.Helpers&version=2.1.12Install as a Cake Addin
#tool nuget:?package=AzureSolutions.Helpers&version=2.1.12Install as a Cake Tool
This class library streamlines interactions with Azure services, including AI Search, Event Hub, KeyVault, Open AI and Storage. Related solution documentation can be found at: https://richchapler.github.io/AzureSolutions/
Install the AzureSolutions.Helpers NuGet package using the following command:
Install-Package AzureSolutions.Helpers
The AISearch class provides methods to interact with Azure Cognitive Search service. It helps create, manage, and delete data sources, indexes, synonym maps, skillsets, and indexers.
// Initialize AISearch
AISearch aisearch = new(KeyVault_Name: "YourKeyVaultName");
// Delete existing resources
await aisearch.deleteExisting();
// Create a data source
await aisearch.createDataSource_SDK();
// Create an index
await aisearch.createIndex_SDK();
// Create a synonym map
await aisearch.createSynonymMap_SDK();
// Create a skillset
await aisearch.createSkillset_SDK();
// Create an indexer
await aisearch.createIndexer_SDK();
// Query the search index
string results = await aisearch.Query(prompt: "YourSearchPrompt", type: "YourQueryType");
The EventHub class simplifies sending and receiving messages from Azure EventHub. It includes Sender and Receiver nested classes for sending and processing messages respectively.
var eventHub = new EventHub("YourKeyVaultName");
var sender = new EventHub.Sender(eventHub);
await sender.Send("YourJsonString");
var receiver = new EventHub.Receiver(eventHub);
await receiver.Process();
The KeyVault class provides methods to interact with Azure KeyVault service. It helps retrieve secret values stored in KeyVault using secret names.
KeyVault.SetName("YourKeyVaultName");
string secretValue = KeyVault.GetSecret("YourSecretName");
The OpenAI class facilitates interaction with the OpenAI API. It provides a method Prompt that you can use to send prompts to the OpenAI and retrieve the response.
var openAI = new OpenAI("YourKeyVaultName");
string result = await openAI.Prompt("Simple", "User message", "System message");
The Storage class allows you to interact with Azure Blob Storage. It provides a BlobContainerClient instance that you can use to manage blobs in a container.
var blobContainerClient = Storage.Client;
To use AzureSolutions.Helpers, you need to generate relevant secrets in your Azure KeyVault:
Ensure applicable secrets are set up in your Azure KeyVault before using the AzureSolutions.Helpers library.
The AzureSolutions.Helpers library utilizes several other packages available through NuGet, including:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.1.13-beta.16 | 123 | 1/29/2025 |
| 2.1.13-beta.15 | 125 | 1/28/2025 |
| 2.1.13-beta.14 | 115 | 1/28/2025 |
| 2.1.13-beta.13 | 107 | 1/28/2025 |
| 2.1.13-beta.12 | 120 | 1/28/2025 |
| 2.1.12 | 179 | 1/24/2025 |
| 2.1.12-beta.17 | 105 | 1/24/2025 |
| 2.1.12-beta.16 | 110 | 1/24/2025 |
| 2.1.12-beta.15 | 133 | 1/24/2025 |