Base solution for your next web application
Open Closed

Deploying aspnet-core to Azure Web App from VS Code macOS #5973


User avatar
0
pkouame created

Has anyone successfully deployed an aspnet-core solution to an Azure web app from VS Code macOS with the Azure extension?

I am strictly on VS Code macOS for over a year with this angular/aspnet-core solution. Deploying the angular component (to Azure) is as easy as FTPing the zipped dist folder, but the core side does not deploy well from VS Code with the official Azure extension. No matter what I try, it deploys the published project but the server side stalls with an ugly 502.5 HTTP Error instead of the lovely swagger UI. My solution has been to publish from Visual Studio (Enterprise in Windows) - pretty smooth there...

Just thought I would ask before delving into the gory details. I have lived through all of the angular/aspnet-core macOS growing pains and would like to totally eliminate Windows from my workflow.

By the way, my web app setup is pretty vanilla standard as descibed in the Step-by-Step here


6 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @pkouame

    There must be some error details on the azure side ? Do you have any exception logs under logs folder on Azure ?

  • User Avatar
    0
    pkouame created

    Yes - there is the obious 502.5 HHTP errror recorded in logs - no real help though. The application doesn't even start. Before I post the traces, I want to know whether any of you on the development team attempted a (successful) aspnet-core deployment from VS Code with the Azure Web App Extension on macOS.

    I know the macOS platform is still not the priority so If this is a known issue, I would be willing to help debug and document a successful workflow for the community.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @pkouame you can enable stdoutLogEnabled="true" in web.config and it should write logs to *.\logs* folder.

  • User Avatar
    0
    pkouame created

    I have and I can forward all the logs (there are more). Pretty much followed this for troubleshooting. My question is whether you have tried to do so in my context before.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @pkouame

    Not from VS Code + Mac OS. But Error message could give us an idea bout the problem. You can send logs to [email protected].

  • User Avatar
    0
    pkouame created

    Ok - just wanted to know if this was tested before. I'll package up the logs and open an issue in the repo with the results. Thanks.