Configuring AzureWebJobsStorage to app.config

Renee Huang 0 Reputation points Microsoft Employee
2024-04-30T21:27:26.2933333+00:00

Hi,

I'm currently working on transitioning our service from using KeyVault to MSI for increased security. A lot of the documentation online points to the AzureWebJobsStorage configurations being written in appsettings.json and local.settings.json. I was wondering if it's possible to configure it to an app.config file which is the only json settings used in the repos I'm working with. Any help or pointers to the right direction would be greatly appreciated. Thank you!

Best,

Renee

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,363 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2024-04-30T21:27:26.31+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The AzureWebJobsStorage configuration is typically stored in the appsettings.json or local.settings.json files, and it is not recommended to store passwords or other sensitive data in plain text configuration files. However, if you still want to use the app.config file, you can add the System.Configuration.ConfigurationManager NuGet package to your app, and your code will compile and use the App.config file. To use the app.config file as your configuration provider, you need to load the settings file in the startup code of your app.


    References:

    0 comments No comments