Azure Websites, Settings and Connection Strings

(not) Putting settings and connection strings directly in your source code seems to be topical at the moment. There seem to be plenty of GitHub projects where people are publishing these settings for all to see. With Azure Websites it’s quite easy to add settings and connection strings in the portal, and leave them out of your source code:


With a Node.js application they can be accessed as environment variables in this way:

   process.env.setting1 = 'value1'
   process.env.APPSETTING_setting1 = "value1"
   process.env.SQLAZURECONNSTR_connectionstring1 = "connectionstringvalue1"