question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Which settings.json get picked on runtime?

See original GitHub issue

We need to make replicas of same bot(say Bot-A) built on composer.

Post successfully creating new services(LUIS, QnA, CosmosDB, Azure webapp, Azure bot) we need to update the new bot(Bot-B) to work same as Bot-A.

However, we are unable to figure out if “appsettings.json” under the settings folder is a single point of update for all the settings used during runtime?

Do the values from “publishTargets” of appsettings get used during runtime, or is this only for publish purposes?

Also, how are the recognizers logically configured? eg: for “applicationId” below, I do not see a relavant object generated in the appsettings file that satisfies “=settings.luis.InfoBot_en_us_lu.appId”, but bot(Bot-A) still works.

{
  "$kind": "Microsoft.LuisRecognizer",
  "id": "LUIS_InfoBot",
  "applicationId": "=settings.luis.InfoBot_en_us_lu.appId",
  "version": "=settings.luis.InfoBot_en_us_lu.version",
  "endpoint": "=settings.luis.endpoint",
  "endpointKey": "=settings.luis.endpointKey"
}

How does the bot get injected with the respective services it has to use during runtime?

I am coming from a background of building bots in SDK v4, so please feel free to direct me to documents or code scripts that can help me understand and debug the above.

Would you eventually be able to add a document around this please.

Thank you!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:24

github_iconTop GitHub Comments

1reaction
saikumarucommented, Mar 11, 2022

A big thanks for staying with me on this and we are getting aligned.

Can you also clarify one part with the team on whether Azure functions also would consume the settings from App Configuration blade and not the appsettings.json, if deployed through CICD?

0reactions
anishprasad01commented, Mar 25, 2022

Ah, so you did. I guess we missed that. Apologies. The functionality should have been (barring the bug of course) the same regardless.

Read more comments on GitHub >

github_iconTop Results From Across the Web

.NET Runtime config options - .NET | Microsoft Learn
Some runtime configuration options can be set using MSBuild properties in the .csproj or .vbproj file of SDK-style .NET Core projects. MSBuild ...
Read more >
User and Workspace Settings - Visual Studio Code
The Settings editor is the UI that lets you review and modify setting values that are stored in a settings.json file. You can...
Read more >
Azure Functions local.settings.json Secrets and Source Control
Any environment settings or connection strings specified in the local.settings.json must be specified in Azure. This can be done by updating ...
Read more >
Read custom settings from local.settings.json in Azure functions
About how to get parameters in app settings, one thing to note is that ConfigurationManager is no long supported in v2 function(runtime ......
Read more >
Azure Functions Config Files – Host Json and Local Settings ...
In local.settings.json , when the runtime finds an application setting in the format AzureFunctionsJobHost__path__to__setting , it overrides the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found