Azur DevOps Pipelines - how to spot config issues in Azure Web Apps?

matjung 101 Reputation points

Tags: Azure DevOps Pipelines
I was recently doing a tutorial and made the usual experience:
Build worked
Deployment worked
App not running ; Server error in /
Is in Azure the Pipeline able to find out, that the config in App Service is having a problem:

The default Application was working fine.
After the deployment server error

From the view point of Operations, I would hope that the Pipeline spots the config issue and reverts to the previous release.
It was a tutorial, so it was okay that the pipeline was less intelligent than expected.

Root cause:
App Service -> Configuration -> Connection String - contained an error ; Username/password for the DB was wrong

Would the pipeline be able to Test the DB Connection / Application Configuration - before deploying the release?
And if it fails, don't deploy.

On the internet I did not find much about that topic yet.
The stuff I found, like the article below was not appealing to me.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,110 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 34,691 Reputation points Microsoft Employee

    Azure DevOps is not currently supported here on Microsoft QnA.
    The Community Members and Engineers are actively answering questions in dedicated forums here. Please post your question in that forum:

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous

    You could potentially do it using Powershell in your pipeline but it would take a lot of knowledge about the application and all the config settings to completely cover everything. It would not be possible for the DevOps pipeline to figure all that out, it does not understand what the code it is deploying does. Most config settings only need to be confirmed/setup once in the lifetime of an application so I don't think the effort is worth it.

    0 comments No comments

  2. matjung 101 Reputation points
    0 comments No comments

  3. matjung 101 Reputation points

    The correct answer might be do tutorial
    It covers Setup test infrastructure / run availability tests

    0 comments No comments