GithubHelp home page GithubHelp logo

Comments (4)

wc-whiteheadd avatar wc-whiteheadd commented on August 14, 2024 2

Just to come back to this as i now know why its broken and how to fix it.

Since the latest .net 8 functions, they have changed how the compiled output works and they now create an ".azurefunctions" folder which holds the functions and references inside it. Whats really important about this is by default most compression libraries out there actually don't defaulty include folders that start with a "." in their name as in normal context, these folders are reserved for hidden directories. This means if most peoples CICD are ziping the release build up and then deploying it using webbapps, unless you override the default zipping logic, the ".azurefunctions" folder will not be zipped up along with your build and it will suddenly wipe all your azure functions upon a deployment as its missing the files required.

To fix this, when the zipping process occurs you will need to specifically specify to include the ".azurefunctions" directory, this will force the compression library to include it regardless of the fact that it starts with a "." in its name and it will solve the problem.

Hope this helps someone who comes across this.

from webapps-deploy.

wc-whiteheadd avatar wc-whiteheadd commented on August 14, 2024

We are having the same issue since upgrading to NET 8 for our function apps. After deploying via the CICD it simply wipes the app plan for some reason.

from webapps-deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.