Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application Error trying to deploy site to Azure

While trying to deploy a simple site in Azure got this error message after deployment:

:( Application Error If you are the application administrator, you can access the diagnostic resources.

How to solve this problem?

like image 620
NorthernLights Avatar asked Dec 05 '25 10:12

NorthernLights


1 Answers

As you are using CI/CD to deploy your application, In the deploy task remove the slot name and replace the package with application file. Below are the samples:

From:

- name: 'Deploy to Azure Web App'
      uses: azure/webapps-deploy@v2
      with:
        app-name: 'hello-world-app-to-delete'
        slot-name: 'production'
        publish-profile: $
        package: .

To:

- name: 'Deploy to Azure Web App'
      uses: azure/webapps-deploy@v2
      with:
        app-name: 'hello-world-app-to-delete'
        publish-profile: $
        package: ./dist/hello-world-app

For more information refer to this GIT blog

And to figure out what is the problem you can enable diagnostics logs in apps for azure app service. Also we can monitor our apps with Azure Application Insights.

like image 136
SaiKarri-MT Avatar answered Dec 07 '25 07:12

SaiKarri-MT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!