Hello @Kirti Chaturvedi
Thanks for reaching out to us, please try below -
To override the telemetry
value in your appsettings.json file with a value from App Service configuration, you need to use the correct syntax for the configuration key.
In your case, the correct configuration key for telemetry.options.connectionString
would be telemetry:options:connectionString
. Note that the period (.) in the JSON path is replaced with a colon (:) in the configuration key.
Here's an example of how you can set the telemetry.options.connectionString
value in App Service configuration:
- Go to your App Service in the Azure portal and navigate to the "Configuration" tab.
- Click on the "New application setting" button to add a new configuration setting.
- Set the "Name" field to
telemetry:options:connectionString
. - Set the "Value" field to the connection string for your Application Insights instance.
- Click on the "OK" button to save the configuration setting.
Once you have set the configuration setting, your bot should be able to read the telemetry.options.connectionString
value from App Service configuration and use it for telemetry logging.
I hope this helps! Let me know if you have any other questions or concerns, I am happy to help further.
Regards,
Yutong
-Please kindly accept the answer if you feel helpful to support the community and help more people, thanks a lot!