1,152 questions
3
votes
1
answer
59
views
EventHubTrigger Connection using "Connection Strings" environment variable? (EVENTHUBCONNSTR_)
I'm deploying a function app (v4, .NET 10, Windows) to Azure; in the function I configure an EventHubTrigger.
[Function(nameof(MyEventHubProcessing))]
public async Task RunAsync([EventHubTrigger("...
-1
votes
0
answers
51
views
Suppressing logs in Azure
I'm looking for help to suppress very annoying logging - something I am not getting about configuration.
In ACA Log stream I keep seeing these log entries:
2025-12-17T15:54:39.257462600Z 2025-12-17 15:...
3
votes
1
answer
113
views
IConfiguration Bind doesn't work with arrays
I have to set a string array in the configuration when starting an ASP.NET Core web application. I get the string array from Azure Key Vault, and it works fine. It's only included in the code below ...
1
vote
1
answer
77
views
In VS (2022) how do I get appsetting.{environment}.json under appsetting.json when "envionment" has a dot in it
If I add an appsetting.{environment}.json to the project, normal it will automatically show up under the appsetting.json.
For example I added one for environment "Test".
But if I add one ...
0
votes
1
answer
174
views
Values are coming as null from appsettings.json , but configuration values like connection string are working fine
I'm working on an ASP.NET Core Web API project that used to work fine with IOptions<ApplicationSettings> to bind values from appsettings.json.
But suddenly, appSettings.Value is returning null, ...
2
votes
1
answer
102
views
Tell appsettings.json to just use the default but without deleting the key outright
I have an int setting in appsettings.json that I read from C#:
const int HardCodedDefault = 42;
int settingValue = configuration.GetValue<int>("myKey", HardCodedDefault);
...
0
votes
0
answers
43
views
Using Dev instance Minio url
1. ObjectStorageFramework Extension:
using ASobjectstorage.Interface;
using ASobjectstorage.Models;
using ASobjectstorage.Services;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions....
0
votes
1
answer
88
views
Serilog exclude database query log
I used to hide my SQL database logs from Console/Debug by adding this line of code in the Program.cs:
builder.Host.UseSerilog((builderContext, config) =>
{
config.ReadFrom.Configuration(...
0
votes
2
answers
197
views
Migrating from .NET Framework to .NET 9.0, How to access ConnectionStrings from a static class? (web.config vs appsettings.json)
I am in the process of migrating a large solution from .NET Framework 4.8 to .NET 9.0. I used .NET Upgrade Assistant to get started. I have a long way to go.
All of the projects in the solution have ...
0
votes
2
answers
56
views
.NET command line dependency injection fails when called from path
I have a command line app that uses .NET's dependency injection.
It works fine when called in its directory, like C:\GitHub\MyProject\bin\Debug\net9.0>MyApp
However, when I add it to the Path ...
0
votes
1
answer
95
views
How to get nested appSettings value(s) strongly typed?
I have this configuration in an ASP.NET Core MVC app:
"CustomSite": {
"Management": {
"Confined": {
"DefaultUILanguage": "en-GB&...
0
votes
2
answers
142
views
Set Const or static readonly field value from appsettings.json through dependency injection in .net core 9
I have this MagicSgtrings class that holds some constants which I'm using in my worker service.
internal class MagicStrings
{
public const string HttpClientName = "X_HttpClient";
...
}
...
-1
votes
1
answer
83
views
How to get the sasl.username & sasl.password in Dockerized ,net core application
i have a .net core application that uses event hub to consume & produce messages. it uses azure event hub & i configured sasl.username as "$ConnectionString" & sasl.password as &...
0
votes
3
answers
221
views
How can I set an app setting for configuring the logging filter for a category containing periods "." in an Azure Function app?
I have an Azure Function app that is configured with a "Information" logging filter for the MyCompany.IAM.AssetGovernance category:
appsettings.json
{
"Logging": {
"...
-1
votes
1
answer
370
views
Azure function app with SQL Trigger not working after deployment
I have an Azure Function app created locally using Python code, SQL Server change tracking that tracks any operation and triggers the SQL Server trigger for further process.
app = func.FunctionApp() ...