shresthaal
shresthaal

Reputation: 685

need to use appsettings in azure service

I am working on a web application which is for some unknown reason published to azure services instead to the azure website. I have some appsettings, which I need. I see that there is no place in the configure settings in the Azure Services to set up appsettings. Is there another way I can setup appsettings for this web application

Upvotes: 1

Views: 1172

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136196

In cloud services, you can still make use of appSettings section in your web.config. It works the same way as your regular web application. Only difference is that you cannot manually edit that section because web.config gets bundled in the package. So anytime you need to make change to a setting in web.config, you would need to redeploy the package.

Other alternative (and the recommended one) is to make use Service Configuration file. You can define your application settings in that file.

Upvotes: 3

Related Questions