How to override local connection string with azure connection string at runtime? : <p>I have written connection string in appsettings.json for .Net core project. My connection string is :</p>

<pre><code> "ConnectionStrings": {
"OT_DB_Connection": "Data Source=108.***.**.**;Initial Catalog=O*******s;User ID=O*******s;Password=O*********$"
</code></pre>

<p>},</p>

<p>I am accessing this connection string in startup.cs file as shown below.</p>

<pre><code>options.UseSqlServer(Configuration.GetConnectionString("OT_DB_Connection"));
</code></pre>

<p>Now i deployed this website on azure and i have separate database on azure and i want that my website will to connect to azure database at runtime by overriding the local connection string.</p>

<p>Please suggest how i can achieve this.</p>

<p>Thanks</p>
