Skip to content

Commit 2d0baca

Browse files
Merge pull request #268011 from btardif/pg
Note for .NET EnvironmentVariablesConfigurationProvider issue
2 parents 7455194 + 75d0933 commit 2d0baca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

articles/app-service/configure-common.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ At runtime, connection strings are available as environment variables, prefixed
216216
* Custom: `CUSTOMCONNSTR_`
217217
* PostgreSQL: `POSTGRESQLCONNSTR_`
218218

219+
>[!Note]
220+
> .NET apps targeting PostgreSQL should set the connection string to **Custom** as workaround for a [knows issue in .NET EnvironmentVariablesConfigurationProvider](https://github.com/dotnet/runtime/issues/36123)
221+
>
222+
219223
For example, a MySQL connection string named *connectionstring1* can be accessed as the environment variable `MYSQLCONNSTR_connectionString1`. For language-stack specific steps, see:
220224

221225
- [ASP.NET Core](configure-language-dotnetcore.md#access-environment-variables)

0 commit comments

Comments
 (0)