microsoft / AzureTipsAndTricks

Learn some of our favorite Azure tips and tricks—some long-standing, and new ones that have recently been added to become more productive with Azure. Star the repo now to shave hours off your coding tasks tomorrow.
http://azuredev.tips
Creative Commons Attribution 4.0 International
1.49k stars 489 forks source link

tip289 - azure configuration service #136

Closed TheILPlace closed 3 years ago

TheILPlace commented 3 years ago

What would you like to know?

hi how would you recommend using the azure configuration service in a case of webapp with deployment slots. if the value of the connection string is in the source code - you will point to the wrong configuration in a case you switch slots (and have different configurations for each slot). which comes down to the fact that you need to query your webapp what is the current deployment slot, and what is the connection string to the configuration service.... (and keep that in the application settings of the webapp)

vaheminasyan2 commented 3 years ago

@bmaluijb, can you please take a look at this question?

bmaluijb commented 3 years ago

Hi,

With App Service and deployment slots, you could use App Configuration with a Managed Identity, which is now available. This way, you don't have to store a connection string to the App configuration.

However, for App Service, the App Configuration service doesn't provide a lot of value, as App Service has its own configuration system. It is more useful when you use it with Kubernetes or other services.

I hope this answered your question.

vaheminasyan2 commented 3 years ago

Thanks Barry, closing this issue.