While publishing a C# Azure Function from Visual Studio, I encountered the following error: The attempt to publish the ZIP file through XXXXX failed.

Reason and Fix:

  • As an initial step in troubleshooting the issue, I verified that my user account has been granted Contributor access, so there doesn’t appear to be any access-related issues.
  • As the next step, I tried browsing the Azure Function URL and received a 403 – Forbidden error. This indicates that I don’t have access to the Advanced Tools site (i.e., Kudu Services).
  • Kudu is the Source Control Management (SCM) tool built into Azure App Services and serves as the underlying deployment engine.
  • When I checked under Settings > Networking > Public network access, it was set to Disabled
  • Enabling the setting as shown below fixed the issue, and I was then able to successfully publish the Azure Function from Visual Studio.

🙂

Advertisements
Advertisements

Leave a comment

Visitors

2,091,374 hits

Top Posts