Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
While there are several issues that can cause 502 errors, due to the length of time that your web app has been down, it’s a good guess that your web app is stuck in an unhealthy state. For a quick resolution, you can try to scale up to a higher tier app service plan, wait 15 minutes, and then scale back down to your original app service plan. This might bring your app back to a healthy state by removing the unhealthy instance(s) from the pool of available resources. More information on scaling can be found here.
Just remember to scale back down to avoid an increase in costs.