Tostisto
Azure function connection string from azure app configuration store
Hello, I need some help. I have an Azure Function that is triggered by a Service Bus queue message. One of the parameters is the connection string to the Service Bus. My problem is that I am using Azure App Configuration Store to store shared connection strings between apps.
The connection strings are stored in the configuration in-memory like this:
configuration = configuration.AddInMemoryCollection(config);
However, there is a problem when I try to run the app. The Azure Function is not able to read the connection string from the configuration, and I am getting this error: Service Bus account connection string with name ServiceBus:ConnectionString
The function looks like this:
Am I able to load the connection string to servicebus from inmemory configuration?
Thanks for every response.97 replies
Problem with json deserialization
I have an issue with deserialization of the datetime from a JSON string.
I need to deserialize
2024-07-09T10:36:23:000Z
into a datetime object, but currently, I am having a problem with deserialization.
My code looks like this:
With this error
Shoud be problem in culture setting in os? Or how can I serialize it without creating a new converter?7 replies
❔ Laptop Battery Info
I would like to create a simple app that monitors information about the battery, such as its overall health, capacity, voltage, and other relevant details. Currently, I have create a basic console app in .NET Core that retrieves some information about the battery. Here's the existing code:
However, this code does not provide all the desired information about the battery. I need to retrieve additional details like the current battery capacity and designed battery capacity. How can I modify the code to obtain these missing or additional battery information?
Here's the sample output from the current code:
2 replies