The difference in the PORT variable between your two app services could be due to several reasons. Azure App Service typically listens on port 80 for HTTP traffic and port 443 for HTTPS traffic by default. However, for custom containers, the port can be specified using the WEBSITES_PORT
environment variable. If this variable is not set, Azure App Service attempts automatic port detection, which might explain why one instance is set to 8181 and another to 8080.
You may explicitly set the WEBSITES_PORT
environment variable in your Azure App Service configuration. This can be done using the Azure Portal or the Azure CLI. For example, using the Azure CLI, you can set the port like this:
az webapp config appsettings set --resource-group <resource-group-name> --name <app-name> --settings WEBSITES_PORT=8080
Kindly review the config - Use this option to delete files on the Azure App Service that have no matching files in the App Service package or folder.
RemoveAdditionalFilesFlag
- Remove additional files at destination boolean
. Optional. Use when UseWebDeploy == true && WebAppKind != linux && WebAppKind != applinux && WebAppKind != ""
. Default value: false
.
Note: This will also remove all files related to any extension installed on this Azure App Service. To prevent this, select the Exclude files from App_Data folder
checkbox.