![]() |
VOOZH | about |
dotnet add package FoundationaLLM.Client.Management --version 0.9.7
NuGet\Install-Package FoundationaLLM.Client.Management -Version 0.9.7
<PackageReference Include="FoundationaLLM.Client.Management" Version="0.9.7" />
<PackageVersion Include="FoundationaLLM.Client.Management" Version="0.9.7" />Directory.Packages.props
<PackageReference Include="FoundationaLLM.Client.Management" />Project file
paket add FoundationaLLM.Client.Management --version 0.9.7
#r "nuget: FoundationaLLM.Client.Management, 0.9.7"
#:package FoundationaLLM.Client.Management@0.9.7
#addin nuget:?package=FoundationaLLM.Client.Management&version=0.9.7Install as a Cake Addin
#tool nuget:?package=FoundationaLLM.Client.Management&version=0.9.7Install as a Cake Tool
The FoundationaLLM Management Client is a .NET client library that simplifies the process of interacting with the FoundationaLLM Management API. The client library provides a set of classes and methods that allow you to interact with the FoundationaLLM Management API in a more intuitive way.
This library contains two primary classes:
ManagementRESTClient: A class that provides a set of methods for interacting with the FoundationaLLM Management API using REST. This is considered the low-level client and provides direct access to all Management API endpoints.ManagementClient: A class that provides a set of methods for interacting with the FoundationaLLM Management API using a higher-level abstraction. This class is designed to simplify the process of interacting with the Management API by providing a more intuitive interface. It does not contain all the methods available in the ManagementRESTClient class, but it provides a more user-friendly way to interact with the Management API.These two classes are mutually exclusive, and you should choose one based on your requirements. If you need direct access to all Management API endpoints, use the ManagementRESTClient class. If you need a more user-friendly interface, use the ManagementClient class.
If you do not have FoundationaLLM deployed, follow the Quick Start Deployment instructions to get FoundationaLLM deployed in your Azure subscription.
Install the NuGet package:
dotnet add package FoundationaLLM.Client.Management
Complete the following steps if you do not want to use dependency injection:
Create a new instance of the ManagementRESTClient and ManagementClient classes:
var managementUri = "<YOUR_MANAGEMENT_API_URL>"; // e.g., "https://myfoundationallmmanagementapi.com"
var instanceId = "<YOUR_INSTANCE_ID>"; // Each FoundationaLLM deployment has a unique (GUID) ID. Locate this value in the FoundationaLLM Management Portal or in Azure App Config (FoundationaLLM:Instance:Id key)
var credential = new AzureCliCredential(); // Can use any TokenCredential implementation, such as ManagedIdentityCredential or AzureCliCredential.
var options = new APIClientSettings // Optional settings parameter. Default timeout is 900 seconds.
{
Timeout = TimeSpan.FromSeconds(600)
};
var managementRestClient = new ManagementRESTClient(
managementUri,
credential,
instanceId,
options);
var managementClient = new ManagementClient(
managementUri,
credential,
instanceId,
options);
Make a request to the Management API with the ManagementRESTClient class:
var status = await managementRestClient.Status.GetServiceStatusAsync();
Make a request to the Management API with the ManagementClient class:
await managementClient.DataSources.DeleteDataSourceAsync("<DATASOURCE_NAME>");
// Purge the data source so we can reuse the name.
await managementClient.DataSources.PurgeDataSourceAsync("<DATASOURCE_NAME>");
You can use the FoundationaLLM.Common.Authentication.DefaultAuthentication class to generate the TokenCredential. This class sets the AzureCredential property using the ManagedIdentityCredential when running in a production environment (production parameter of the Initialize method) and the AzureCliCredential when running in a development environment.
Example:
DefaultAuthentication.Initialize(false, "Test");
var credentials = DefaultAuthentication.AzureCredential;
Rather than manually instantiating the ManagementRESTClient and ManagementClient classes, you can use dependency injection to manage the instances. This approach is more flexible and allows you to easily switch between different implementations of the IManagementClient and IManagementRESTClient interfaces.
Create a configuration file (e.g., appsettings.json) with the following content:
{
"FoundationaLLM": {
"APIEndpoints": {
"ManagementAPI": {
"Essentials": {
"APIUrl": "https://localhost:63267/"
}
}
},
"Instance": {
"Id": "00000000-0000-0000-0000-000000000000"
}
}
}
Read the configuration file:
var configuration = new ConfigurationBuilder()
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.Build();
Use the ManagementClient extension method to add the ManagementClient and ManagementRESTClient to the service collection:
var services = new ServiceCollection();
var credential = new AzureCliCredential(); // Can use any TokenCredential implementation, such as ManagedIdentityCredential or AzureCliCredential.
services.AddManagementClient(
configuration[AppConfigurationKeys.FoundationaLLM_APIEndpoints_ManagementAPI_Essentials_APIUrl]!,
credential,
configuration[AppConfigurationKeys.FoundationaLLM_Instance_Id]!);
var serviceProvider = services.BuildServiceProvider();
Retrieve the ManagementClient and ManagementRESTClient instances from the service provider:
var managementClient = serviceProvider.GetRequiredService<IManagementClient>();
var managementRestClient = serviceProvider.GetRequiredService<IManagementRESTClient>();
Alternately, you can inject the ManagementClient and ManagementRESTClient instances directly into your classes using dependency injection.
public class MyService
{
private readonly IManagementClient _managementClient;
private readonly IManagementRESTClient _managementRestClient;
public MyService(IManagementClient managementClient, IManagementRESTClient managementRestClient)
{
_managementClient = managementClient;
_managementRestClient = managementRestClient;
}
}
If you prefer to retrieve the configuration settings from Azure App Configuration, you can use the Microsoft.Azure.AppConfiguration.AspNetCore or Microsoft.Extensions.Configuration.AzureAppConfiguration package to retrieve the configuration settings from Azure App Configuration.
Connect to Azure App Configuration:
var configuration = new ConfigurationBuilder()
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddEnvironmentVariables()
.AddAzureAppConfiguration(options =>
{
options.Connect("<connection-string>");
options.ConfigureKeyVault(kv =>
{
kv.SetCredential(Credentials);
});
options.Select(AppConfigurationKeyFilters.FoundationaLLM_Instance);
options.Select(AppConfigurationKeyFilters.FoundationaLLM_APIEndpoints_ManagementAPI_Essentials);
})
.Build();
If you have configured your local development environment, you can obtain the App Config connection string from an environment variable (
Environment.GetEnvironmentVariable(EnvironmentVariables.FoundationaLLM_AppConfig_ConnectionString)) when developing locally.
Use the ManagementClient extension method to add the ManagementClient and ManagementRESTClient to the service collection:
var services = new ServiceCollection();
var credential = new AzureCliCredential(); // Can use any TokenCredential implementation, such as ManagedIdentityCredential or AzureCliCredential.
services.AddManagementClient(
configuration[AppConfigurationKeys.FoundationaLLM_APIEndpoints_ManagementAPI_Essentials_APIUrl]!,
credential,
configuration[AppConfigurationKeys.FoundationaLLM_Instance_Id]!);
Retrieve the ManagementClient and ManagementRESTClient instances from the service provider:
var managementClient = serviceProvider.GetRequiredService<IManagementClient>();
var managementRestClient = serviceProvider.GetRequiredService<IManagementRESTClient>();
The Core.Examples test project contains several examples that demonstrate how to use the ManagementClient and ManagementRESTClient classes to interact with the Management API through a series of end-to-end tests.
FoundationaLLM provides the platform for deploying, scaling, securing and governing generative AI in the enterprise. With FoundationaLLM you can:
FoundationaLLM is not a large language model. It enables you to use the large language models of your choice (e.g., OpenAI GPT-4, Mistral, LLama 2, etc.)
FoundationaLLM deploys a secure, comprehensive and highly configurable copilot platform to your Azure cloud environment:
Simply put we saw a lot of folks reinventing the wheel just to get a customized copilot or AI agent that was grounded and bases its responses in their own data as opposed to the trained parametric knowledge of the model. Many of the solutions we saw made for great demos, but were effectively toys wrapping calls to OpenAI endpoints- they were not something intended or ready to take into production at enterprise scale. We built FoundationaLLM to provide a continuous journey, one that was quick to get started with so folks could experiment quickly with LLM's but not fall off a cliff after that with a solution that would be insecure, unlicensed, inflexible and not fully featured enough to grow from the prototype into a production solution without having to start all over.
The core problems to deliver enterprise copilots or AI agents are:
Get up to speed with FoundationaLLM by reading the documentation. This includes deployment instructions, quickstarts, architecture, and API references.
FoundationaLLM provides a simple command line driven approach to getting your first deployment up and running. Basically, it's two commands. After that, you can customize the solution, run it locally on your machine and update the deployment with your customizations.
Follow the to get FoundationaLLM deployed in your Azure subscription.
If you encounter any issues with FoundationaLLM, please open an issue on GitHub. We will respond to your issue as soon as possible. Please use the Labels (bug, documentation, general question, release x.x.x) to categorize your issue and provide as much detail as possible to help us understand and resolve the issue.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. 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. |
Showing the top 1 NuGet packages that depend on FoundationaLLM.Client.Management:
| Package | Downloads |
|---|---|
|
FoundationaLLM.Core.Examples
FoundationaLLM.Core.Examples contains custom development examples packaged as tests. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.8-rc101 | 111 | 2/26/2026 |
| 0.9.8-rc100 | 109 | 2/20/2026 |
| 0.9.8-beta122 | 105 | 2/17/2026 |
| 0.9.8-beta120 | 112 | 2/15/2026 |
| 0.9.8-beta119 | 112 | 2/15/2026 |
| 0.9.8-beta118 | 105 | 2/15/2026 |
| 0.9.8-beta117 | 107 | 2/13/2026 |
| 0.9.8-beta116 | 111 | 2/13/2026 |
| 0.9.8-beta115 | 108 | 2/13/2026 |
| 0.9.8-beta114 | 104 | 2/13/2026 |
| 0.9.8-beta113 | 114 | 2/6/2026 |
| 0.9.8-beta112 | 112 | 2/4/2026 |
| 0.9.8-beta111 | 110 | 2/4/2026 |
| 0.9.8-beta110 | 119 | 1/15/2026 |
| 0.9.8-beta109 | 113 | 1/13/2026 |
| 0.9.8-beta108 | 117 | 1/13/2026 |
| 0.9.7 | 258 | 11/24/2025 |
| 0.9.7-post9 | 196 | 12/22/2025 |
| 0.9.7-post3 | 461 | 12/8/2025 |
| 0.9.7-post10 | 120 | 1/20/2026 |