Is there a good way to share configuration between apps in Azure?Is it possible to script the configuration of Azure App Service Authentication?Programmatically set Azure App Service application settings / environment variablesMultiple applications in an Azure web appAzure App Service API Deployment requires a restartAzure Functions not showing in Function AppAzure App Services app uses wrong PHP versionEasy Authentication and Authorization in Azure Function App using ARM templateAzure App Services Antimalware?Executing Same Azure Function but for different input values in App SettingsBest method for deploying Azure function app application settings

Does Multiverse exist in MCU?

The tensor product of two monoidal categories

Swapping "Good" and "Bad"

What happens to unproductive professors?

Why doesn't sea level show seasonality?

Is there a strong legal guarantee that the U.S. can give to another country that it won't attack them?

Why was hardware diversification an asset for the IBM PC ecosystem?

Why return a static pointer instead of an out parameter?

LED glows slightly during soldering

When I press the space bar it deletes the letters after it

Is "I do not want you to go nowhere" a case of "DOUBLE-NEGATIVES" as claimed by Grammarly?

Confirming the Identity of a (Friendly) Reviewer After the Reviews

Do I have a right to cancel a purchase of foreign currency in the UK?

Are there any medieval light sources without fire?

OR-backed serious games

Can the Mage Hand cantrip be used to trip an enemy who is running away?

How were Martello towers supposed to work?

How can a dictatorship government be beneficial to a dictator in a post-scarcity society?

Why do people keep referring to Leia as Princess Leia, even after the destruction of Alderaan?

Extracting points from 3D plot that lie along an arbitrarily oriented line

How are mathematicians paid to do research?

Some interesting calculation puzzle that I made

Is there any reason why MCU changed the Snap to Blip

Switching interface VLAN ID Mid-Production



Is there a good way to share configuration between apps in Azure?


Is it possible to script the configuration of Azure App Service Authentication?Programmatically set Azure App Service application settings / environment variablesMultiple applications in an Azure web appAzure App Service API Deployment requires a restartAzure Functions not showing in Function AppAzure App Services app uses wrong PHP versionEasy Authentication and Authorization in Azure Function App using ARM templateAzure App Services Antimalware?Executing Same Azure Function but for different input values in App SettingsBest method for deploying Azure function app application settings






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















We have a large system built in Azure apps. It is made up of an App Service for our API and several Functions Apps for backend processing.



What's the best way to allow these apps to share configuration?



We use ARM templates currently to set up the environment variables for each app, which is fine for deploy-time, but there's nothing to keep the config in sync between the apps.



A use case might be a feature flag that controls whether a sub-system is operational. We might want this flag to be used in the API and a Functions App. At present we can manually go in and set the variable in each of the apps, but it would be easier to manage if we only had to do it in one location.



Ideally, any update to the config would be detected by Azure and trigger a restart of the service, as currently happens with the native implementation.



Is there a good, off-the-shelf, way to do this? Or will I be rolling my own with a table in a database and a lightweight function?










share|improve this question






















  • have you considered azure key vault ?

    – Imran Arshad
    Mar 26 at 1:43











  • @ImranArshad That's not a bad plan. We're already using it for secrets.

    – Tom Wright
    Mar 26 at 1:45






  • 2





    There is also the new App Configuration service :) docs.microsoft.com/en-us/azure/azure-app-configuration/overview

    – juunas
    Mar 26 at 6:57











  • @juunas If you expanded that to an answer, it might be a contender

    – Tom Wright
    Mar 26 at 9:48

















1















We have a large system built in Azure apps. It is made up of an App Service for our API and several Functions Apps for backend processing.



What's the best way to allow these apps to share configuration?



We use ARM templates currently to set up the environment variables for each app, which is fine for deploy-time, but there's nothing to keep the config in sync between the apps.



A use case might be a feature flag that controls whether a sub-system is operational. We might want this flag to be used in the API and a Functions App. At present we can manually go in and set the variable in each of the apps, but it would be easier to manage if we only had to do it in one location.



Ideally, any update to the config would be detected by Azure and trigger a restart of the service, as currently happens with the native implementation.



Is there a good, off-the-shelf, way to do this? Or will I be rolling my own with a table in a database and a lightweight function?










share|improve this question






















  • have you considered azure key vault ?

    – Imran Arshad
    Mar 26 at 1:43











  • @ImranArshad That's not a bad plan. We're already using it for secrets.

    – Tom Wright
    Mar 26 at 1:45






  • 2





    There is also the new App Configuration service :) docs.microsoft.com/en-us/azure/azure-app-configuration/overview

    – juunas
    Mar 26 at 6:57











  • @juunas If you expanded that to an answer, it might be a contender

    – Tom Wright
    Mar 26 at 9:48













1












1








1








We have a large system built in Azure apps. It is made up of an App Service for our API and several Functions Apps for backend processing.



What's the best way to allow these apps to share configuration?



We use ARM templates currently to set up the environment variables for each app, which is fine for deploy-time, but there's nothing to keep the config in sync between the apps.



A use case might be a feature flag that controls whether a sub-system is operational. We might want this flag to be used in the API and a Functions App. At present we can manually go in and set the variable in each of the apps, but it would be easier to manage if we only had to do it in one location.



Ideally, any update to the config would be detected by Azure and trigger a restart of the service, as currently happens with the native implementation.



Is there a good, off-the-shelf, way to do this? Or will I be rolling my own with a table in a database and a lightweight function?










share|improve this question














We have a large system built in Azure apps. It is made up of an App Service for our API and several Functions Apps for backend processing.



What's the best way to allow these apps to share configuration?



We use ARM templates currently to set up the environment variables for each app, which is fine for deploy-time, but there's nothing to keep the config in sync between the apps.



A use case might be a feature flag that controls whether a sub-system is operational. We might want this flag to be used in the API and a Functions App. At present we can manually go in and set the variable in each of the apps, but it would be easier to manage if we only had to do it in one location.



Ideally, any update to the config would be detected by Azure and trigger a restart of the service, as currently happens with the native implementation.



Is there a good, off-the-shelf, way to do this? Or will I be rolling my own with a table in a database and a lightweight function?







azure configuration azure-web-sites azure-functions






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 26 at 1:38









Tom WrightTom Wright

6,92412 gold badges64 silver badges128 bronze badges




6,92412 gold badges64 silver badges128 bronze badges












  • have you considered azure key vault ?

    – Imran Arshad
    Mar 26 at 1:43











  • @ImranArshad That's not a bad plan. We're already using it for secrets.

    – Tom Wright
    Mar 26 at 1:45






  • 2





    There is also the new App Configuration service :) docs.microsoft.com/en-us/azure/azure-app-configuration/overview

    – juunas
    Mar 26 at 6:57











  • @juunas If you expanded that to an answer, it might be a contender

    – Tom Wright
    Mar 26 at 9:48

















  • have you considered azure key vault ?

    – Imran Arshad
    Mar 26 at 1:43











  • @ImranArshad That's not a bad plan. We're already using it for secrets.

    – Tom Wright
    Mar 26 at 1:45






  • 2





    There is also the new App Configuration service :) docs.microsoft.com/en-us/azure/azure-app-configuration/overview

    – juunas
    Mar 26 at 6:57











  • @juunas If you expanded that to an answer, it might be a contender

    – Tom Wright
    Mar 26 at 9:48
















have you considered azure key vault ?

– Imran Arshad
Mar 26 at 1:43





have you considered azure key vault ?

– Imran Arshad
Mar 26 at 1:43













@ImranArshad That's not a bad plan. We're already using it for secrets.

– Tom Wright
Mar 26 at 1:45





@ImranArshad That's not a bad plan. We're already using it for secrets.

– Tom Wright
Mar 26 at 1:45




2




2





There is also the new App Configuration service :) docs.microsoft.com/en-us/azure/azure-app-configuration/overview

– juunas
Mar 26 at 6:57





There is also the new App Configuration service :) docs.microsoft.com/en-us/azure/azure-app-configuration/overview

– juunas
Mar 26 at 6:57













@juunas If you expanded that to an answer, it might be a contender

– Tom Wright
Mar 26 at 9:48





@juunas If you expanded that to an answer, it might be a contender

– Tom Wright
Mar 26 at 9:48












3 Answers
3






active

oldest

votes


















6














One way would be to use the new App Configuration service: https://docs.microsoft.com/en-us/azure/azure-app-configuration/overview.



It is meant for sharing configuration settings across components.



Note it is not meant for secrets, that's what Key Vault is for.






share|improve this answer






























    1














    There is a guidance/design pattern for this from Microsoft, it can be found from here.






    share|improve this answer






























      0














      Best Practice in Architecture: You can use the external configuration store pattern and use a Redis Cache to share the configuration between multiple applications as described in here: https://docs.microsoft.com/en-us/azure/architecture/patterns/external-configuration-store



      The approach is you can get this data from Appsettings for each environement (this can be automated in CI/CD pipeline). On first connection you store the data in RedisCache.



      For senstive data: Use Keyvault to store the secrets/keys/certificates.






      share|improve this answer

























        Your Answer






        StackExchange.ifUsing("editor", function ()
        StackExchange.using("externalEditor", function ()
        StackExchange.using("snippets", function ()
        StackExchange.snippets.init();
        );
        );
        , "code-snippets");

        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "1"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55348670%2fis-there-a-good-way-to-share-configuration-between-apps-in-azure%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        6














        One way would be to use the new App Configuration service: https://docs.microsoft.com/en-us/azure/azure-app-configuration/overview.



        It is meant for sharing configuration settings across components.



        Note it is not meant for secrets, that's what Key Vault is for.






        share|improve this answer



























          6














          One way would be to use the new App Configuration service: https://docs.microsoft.com/en-us/azure/azure-app-configuration/overview.



          It is meant for sharing configuration settings across components.



          Note it is not meant for secrets, that's what Key Vault is for.






          share|improve this answer

























            6












            6








            6







            One way would be to use the new App Configuration service: https://docs.microsoft.com/en-us/azure/azure-app-configuration/overview.



            It is meant for sharing configuration settings across components.



            Note it is not meant for secrets, that's what Key Vault is for.






            share|improve this answer













            One way would be to use the new App Configuration service: https://docs.microsoft.com/en-us/azure/azure-app-configuration/overview.



            It is meant for sharing configuration settings across components.



            Note it is not meant for secrets, that's what Key Vault is for.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 26 at 10:17









            juunasjuunas

            25.6k3 gold badges53 silver badges83 bronze badges




            25.6k3 gold badges53 silver badges83 bronze badges























                1














                There is a guidance/design pattern for this from Microsoft, it can be found from here.






                share|improve this answer



























                  1














                  There is a guidance/design pattern for this from Microsoft, it can be found from here.






                  share|improve this answer

























                    1












                    1








                    1







                    There is a guidance/design pattern for this from Microsoft, it can be found from here.






                    share|improve this answer













                    There is a guidance/design pattern for this from Microsoft, it can be found from here.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 26 at 9:42









                    MiksteriMiksteri

                    948 bronze badges




                    948 bronze badges





















                        0














                        Best Practice in Architecture: You can use the external configuration store pattern and use a Redis Cache to share the configuration between multiple applications as described in here: https://docs.microsoft.com/en-us/azure/architecture/patterns/external-configuration-store



                        The approach is you can get this data from Appsettings for each environement (this can be automated in CI/CD pipeline). On first connection you store the data in RedisCache.



                        For senstive data: Use Keyvault to store the secrets/keys/certificates.






                        share|improve this answer



























                          0














                          Best Practice in Architecture: You can use the external configuration store pattern and use a Redis Cache to share the configuration between multiple applications as described in here: https://docs.microsoft.com/en-us/azure/architecture/patterns/external-configuration-store



                          The approach is you can get this data from Appsettings for each environement (this can be automated in CI/CD pipeline). On first connection you store the data in RedisCache.



                          For senstive data: Use Keyvault to store the secrets/keys/certificates.






                          share|improve this answer

























                            0












                            0








                            0







                            Best Practice in Architecture: You can use the external configuration store pattern and use a Redis Cache to share the configuration between multiple applications as described in here: https://docs.microsoft.com/en-us/azure/architecture/patterns/external-configuration-store



                            The approach is you can get this data from Appsettings for each environement (this can be automated in CI/CD pipeline). On first connection you store the data in RedisCache.



                            For senstive data: Use Keyvault to store the secrets/keys/certificates.






                            share|improve this answer













                            Best Practice in Architecture: You can use the external configuration store pattern and use a Redis Cache to share the configuration between multiple applications as described in here: https://docs.microsoft.com/en-us/azure/architecture/patterns/external-configuration-store



                            The approach is you can get this data from Appsettings for each environement (this can be automated in CI/CD pipeline). On first connection you store the data in RedisCache.



                            For senstive data: Use Keyvault to store the secrets/keys/certificates.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 26 at 11:02









                            Anass KartitAnass Kartit

                            6995 silver badges15 bronze badges




                            6995 silver badges15 bronze badges



























                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to Stack Overflow!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55348670%2fis-there-a-good-way-to-share-configuration-between-apps-in-azure%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                                Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                                Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript