简体   繁体   中英

Read web.config of webapp from webjobs in azure

I have webapp in azure and with that webapp i have 3 other webjobs inside that. now Webapp is having some settings in appConfig section in web.config. I don't want to copy and past that settings in my other 3 webjob. so is it possible to read Web.config of webApp from Webjob ?

You can share the settings between your Web App and your WebJobs by storing them in the Web App's app settings (on the Azure portal).

To access these settings you simply use ConfigurationManager.AppSettings or if it's not .NET you can access them through the environment (as environment settings).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM