It looks like you've set up your Django app correctly on Azure Web App, but you're running into a 502 Bad Gateway error, which typically means that Gunicorn is either failing to start or crashing after startup.
Since your deployment logs don’t show a clear failure message, you can also troubleshoot issue step by step
check that arguments you're passing to Gunicorn are correct
command: unicorn --bind=0.0.0. PORT is correct but verify that the $PORT environment variable is set correctly in your Azure configuration.
Also check Django app is structure correctly in Azure App service otherwise it may not be able to find application serve.
check that static files are collected properly. If you tested collecting static files locally, verify that the same process works in Azure.
Double-check that all necessary environment variables, including those for Key Vault, are set correctly and accessible by your application.
Check your environment variables in Azure Portal > Configuration > Application Settings.
Run print(os.environ) in a Django shell (python manage.py shell) inside SSH to confirm if variables are accessible.
https://learn.microsoft.com/en-us/azure/app-service/configure-language-python#troubleshooting
https://learn.microsoft.com/en-us/azure/app-service/tutorial-python-postgresql-app-flask
If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.
Let me know if you have any further Queries.