Reputation: 874
I have this working as part of Startup.cs
to validate that there are no missing configuration settings and this works as the app will fail to run if it's missing a setting, but I wondered if this can be added as a step or job as part of the pipeline before deploying to QA/UAT/Prod.
Upvotes: 1
Views: 623
Reputation: 89
You could include a Unit Test that fails if any of your required configurations are missing.
Assuming you're running the Unit Tests as part of the build pipeline, if the test fails it should prevent deployment.
This question might help you achieve this.
Upvotes: 1