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

matjung 101 Reputation points
2022-10-31T17:59:14.797+00:00

Tags: Azure DevOps Pipelines
https://learn.microsoft.com/en-us/training/modules/create-release-pipeline-devops/
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

Question1
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.
https://documentation.red-gate.com/sa/building-your-assembly/using-smartassembly-with-azure-pipelines/configure-database-connection-on-azure-pipelines

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
    2022-10-31T18:08:37.517+00:00

    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:
    https://developercommunity.visualstudio.com/spaces/21/index.html
    https://azure.microsoft.com/en-in/support/devops/

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2022-10-31T20:06:48.59+00:00

    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
    2022-11-01T12:56:01.72+00:00
    0 comments No comments

  3. matjung 101 Reputation points
    2022-11-01T17:24:52.82+00:00

    The correct answer might be do tutorial
    https://learn.microsoft.com/en-us/training/modules/configure-provision-environments/
    It covers Setup test infrastructure / run availability tests

    0 comments No comments