24.5 C
Dubai
Tuesday, December 6, 2022

Application Settings in Azure App Service and Static Web Apps

Utilizing Connection Strings in PHP in this case for App Service – In this case, source code is Deployed in UAT and Production, Both have different connection strings. So that pipeline is deployed smoothly without any manual changes. Like my UAT will apply UAT DB Connection String, and Production will apply the Production Connection string for the same Codebase.

As you can see am adding this MYSQLCONNSTR_ suffix for my connection string as its MYSQL, you can update the suffix accordingly. Application settings don’t need any suffixes.

At runtime, connection strings are available as environment variables, prefixed with the following connection types:

  • SQLServer: SQLCONNSTR_
  • MySQL: MYSQLCONNSTR_
  • SQLAzure: SQLAZURECONNSTR_
  • Custom: CUSTOMCONNSTR_
  • PostgreSQL: POSTGRESQLCONNSTR_



Utilizing Application Settings inside JSON in Azure Static Web Apps

Satheshwaran Manoharan
Satheshwaran Manoharanhttps://www.azure365pro.com
Specialized in Microsoft Azure - Office 365 / Microsoft Exchange; conducted numerous projects worldwide in designing, supporting, and implementing messaging and virtualization infrastructure for medium-sized and large enterprises. Further, I am a Cloud Architect and Technical Advisor for various start-ups.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

× How can I help you?