Skip to content

Commit d7940fc

Browse files
authored
Enhance clarity in workaround for unsupported connection string types
This commit expands the workaround note for configuring connection strings in Azure App Service to increase visibility and understanding of the necessary workaround for connection string types that are not handled by `EnvironmentVariablesConfigurationProvider`. Specifically, it clarifies that the workaround to use the "Custom" type applies not only to PostgreSQL but also to other services like Notification Hub, Service Bus, Event Hub, Document Db, and Redis Cache.
1 parent e591351 commit d7940fc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

articles/app-service/configure-common.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,15 @@ At runtime, connection strings are available as environment variables, prefixed
214214
* MySQL: `MYSQLCONNSTR_`
215215
* SQLAzure: `SQLAZURECONNSTR_`
216216
* Custom: `CUSTOMCONNSTR_`
217-
* PostgreSQL: `POSTGRESQLCONNSTR_`
217+
* PostgreSQL: `POSTGRESQLCONNSTR_`
218+
* Notification Hub: `NOTIFICATIONHUBCONNSTR_`
219+
* Service Bus: `SERVICEBUSCONNSTR_`
220+
* Event Hub: `EVENTHUBCONNSTR_`
221+
* Document Db: `DOCDBCONNSTR_`
222+
* Redis Cache: `REDISCACHECONNSTR_`
218223

219224
>[!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)
225+
> .NET apps targeting PostgreSQL, Notification Hub, Service Bus, Event Hub, Document Db and Redis Cache should set the connection string to **Custom** as workaround for a [knows issue in .NET EnvironmentVariablesConfigurationProvider](https://github.com/dotnet/runtime/issues/36123)
221226
>
222227
223228
For example, a MySQL connection string named *connectionstring1* can be accessed as the environment variable `MYSQLCONNSTR_connectionString1`. For language-stack specific steps, see:

0 commit comments

Comments
 (0)