@Jesper Petersen Regarding the issue you are facing, the suggestion provided by @Ben Gimblett mentioned is correct (Thank you Ben). You need to specify the port that your application is listening on in the Azure App Service configuration. By default, Azure App Service listens on port 80 for HTTP traffic and port 443 for HTTPS traffic. If your application is listening on a different port, you need to specify it in the configuration.
To specify the port, you can set the WEBSITES_PORT
environment variable in the Azure App Service configuration. You can do this using the Azure Portal or the Azure CLI. Here is an example of how to set the WEBSITES_PORT
environment variable using the Azure CLI:
az webapp config appsettings set --resource-group <resource-group-name> --name <app-name> --settings WEBSITES_PORT=5000
Replace <resource-group-name>
with the name of your resource group and <app-name>
with the name of your app service.
After setting the WEBSITES_PORT
environment variable, you should be able to access your application on Azure App Service using the URL http://<app-name>.azurewebsites.net:<port>
, where <app-name>
is the name of your app service and <port>
is the port that your application is listening on.
Let me know if you have any other questions.