azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Exporting Should be Done in Deployment Pipeline to Allow for Multiple Environment Support

Open bbrandt opened this issue 2 years ago • 2 comments

Example script that can be used in deployment pipeline to generate appsettings.json from multiple layers of configuration:

https://gist.github.com/bbrandt/60e7713b2826ce30e17b5752dfbeedd1


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

bbrandt avatar Nov 30 '22 19:11 bbrandt

Thank you for your feedback! We have assigned this issue to the author to review further and take the next course of action.

mike-urnun-msft avatar Nov 30 '22 20:11 mike-urnun-msft

@bbrandt yes, you could run the same script at the deployment time to download and deploy the environment-specific configuration file with your application. The document shows an example of how to achieve it at the build time. Depending on what you build, it's not always feasible/easy to insert a configuration file into a build (for example, a container image) at the deployment time. Note that you can build environment-specific configurations at the build time, for example, from different git branches. Different teams may have different preferences.

zhenlan avatar Dec 02 '22 16:12 zhenlan

Hi All, is there any further action needed to close this issue?

maud-lv avatar Feb 28 '23 10:02 maud-lv