title: How to use a DocumentDB(MongoDB) connection string as an Environment variable in an Azure Resource Management Template
body: <p>I want to use a DocumentDB(MongoDB) connection string as an environment variable in an Azure Resource Management Template. Forexample i have a resource group which has a wep app and a DocumentDB(MongoDB) database.</p>
  
  <pre><code>"siteConfig": {
            "appSettings": [
              {
                "name": "db",
                "value": "connection string"
              }
            ]
          }
  </code></pre>
  
  <p>How can i assign an environment variable to a connection string in template?</p>