web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Restoring environment specific configuration automatically?

(0) ShareShare
ReportReport
Posted on by 17
Can anyone share any efficient solution or maybe out-of-the-box tools that they use to easily restore configuration settings that vary between various non production environments? We have QA and UAT environments that point to 3rd party system dependencies unique for each environment. Credentials might be different, an endpoint might be different, environment parameters may vary. I'd love to eliminate having to manually restore these values post production DB refresh. Thanks!
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    I'm not aware of any standard solution.

    A traditional approach is (automatically) exporting some data from the target database before a DB restore and importing it back. I developed a framework for it in past (but I can't share it).

    Another approach you might consider is not storing the configuration in database at all. You could use Azure App Configuration, for example, and have the configuration set up at a central place, with different values for different environments. There would be some design decisions to make (e.g. regarding a cache), therefore it's not just about calling the configuration service, but I think it might be useful. I haven't used it yet.

    And I noticed one more approach in the recent solution for monitoring and telemetry. Microsoft there uses database for storing the values, but with environment ID as a key. An environment then looks for a record with its environment ID. It does the job, but it doesn't look ideal to me.

  • JMajcen Profile Picture
    17 on at

    Some great ideas here Martin. The confirmation that there isn't anything "out of the box" is a big help. Azure App Configuration looks very cool. Does D365 have support for custom, memory resident environment variables that can be set at startup? Hope all is well.

  • Verified answer
    Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    A few options that come to my mind are SysGlobalObjectCache, SysGlobalCache and static class fields (e.g. in Singleton design pattern). The last two are per session; SysGlobalObjectCache should be shared across user sessions (on a given application server), but I don't know how it's actually implemented.

    SysGlobalCache is basically a Map object held in system classes such as Info.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 663 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 540 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 348 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans