I already developed my web app and published it to azure with asp.net core 1.1 and it was working fine until I upgraded my web application to Core 2.0 final
I had the issue HTTP Error 502.5 - Process Failure, mine was fix by installing the .net sdk
https://www.microsoft.com/net/download/visual-studio-sdks