Best Practice for handling local settings while development with azure app configuration?

Henry Zhang 186 Reputation points
2022-09-28T17:15:03.783+00:00

Hi there,

We are trying to use the azure app configuration for our .net framework 472 app. I'm kind of wondering what's the best practice for setting configurations for the local environment.

Assume we have local, dev, qa, uat, prod env:

  1. For dev, qa, uat and prod we want configuration coming from azure.
  2. For local env, we prefer not to call azure app configuration so that all the settings are coming from a local configuration file. (This is for saving some cost). Maybe there is an app-configuration local emulator available?

wondering how could I achieve this? if this is not possible then what's the best practice for handling local env

Thanks,

Henry

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
214 questions
0 comments No comments
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,261 Reputation points
    2022-09-28T20:12:43.66+00:00

    @Henry Zhang Thank you for reaching out to Microsoft Q&A.

    We recommend using a separate configuration store for each environment for best security isolation and the same has been described here. Alternatively, you can use Labels to enable different configurations for each environment and the doc would help with that. Currently there is no local emulator available and unfortunately it is not in our roadmap. Please use Azure/AppConfiguration repo to share feedback directly with our product team (will share feedback internally too).

    For local environment/debugging, you can look at File content profile: KVSet option to export data in the app configuration store to a file (GH #552). This would help in testing your app in the local environment. Based on your scenario, you can also import configuration file to App Configuration store using Azure CLI as part of your CI/CD pipeline (check Configuration as Code).

    I understand you want to reduce requests to Azure, and please review some of the steps in our Best Practices doc. I hope your questions have been answered and feel free to add if you have any further questions. I would be happy to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community.

    0 comments No comments

0 additional answers

Sort by: Most helpful