Unable to webpublish to my appservice : "FTP Passive mode is not available"

Timbo 0 Reputation points
2023-03-23T11:27:10.5166667+00:00

This is not a new app service or publish profile. When I do the normal publish operation in either of the two (latest patched) versions of Visual studio 2022 or 2019. I get the following error "FTP Passive mode is not available".

No recent changes have been made WRT this website, just publishing the same app that is running using the same method (visual studio) and machine that normally is used.

Copying all files to temporary location below for package/publish:

obj\Release\Package\PackageTmp.

Publishing folder /...

Unable to add '.bowerrc' to the Web site. FTP Passive mode is not available

Unable to add 'ApplicationInsights.config' to the Web site. FTP Passive mode is not available

Have there been any changes to default FTP configuration in appservice which might explain this?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,915 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 16,186 Reputation points
    2023-03-30T15:50:14.41+00:00

    Hi @Timbo we are sorry to hear you're facing this issue. The error message "FTP Passive mode is not available" indicates that Visual Studio is unable to use FTP Passive mode to upload your files to your web server. Azure Firewall supports both Active and Passive FTP modes. By default, Passive FTP is enabled and Active FTP support is disabled to protect against FTP bounce attacks using the FTP PORT command.

    But since you're getting that error you can try enabling Passive FTP mode by following the steps below:

    1. In your app's resource page in Azure portal, select Configuration > General settings from the left navigation
    2. Select FTPS Only in FTP state to disable unencrypted FTP
    3. If using FTPS Only, you must enforce TLS 1.2 or higher by navigating to the TLS/SSL settings blade of your web app. TLS 1.0 and 1.1 are not supported with FTPS Only

    If you are still having issues after following these steps, you can try troubleshooting the issue by investigating your FTP deployment or selecting an alternate deployment path (such as source control)

    Hope that helps

    -Grace

    0 comments No comments