Comments (4)
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.
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)
- v3 faield to reboot webapp due to 401, but v2 is OK HOT 7
- Git Python Causes problems while creating directories HOT 2
- Allow to overwrite GitHub comment instead of creating a new one HOT 1
- Successful deployment reported despite error HOT 2
- Code is not updated in linux based Azure Functions using ZIP package deploy HOT 1
- v3 deployment does not work with clean:false HOT 13
- Not able to apply npm install flags HOT 1
- README doesn't have a v3 example or explanation of the differences HOT 4
- Add sample(s) for OIDC HOT 1
- Azure Web App deployment from .zip fails after successfully deploying the content HOT 2
- V3 using node.js 16 upgrade to node.js 20 seeing 16 is deprecated HOT 16
- Microsoft Azure Build and deploy PHP app to Azure Web App: Laravel App - Unable to create lockable file HOT 2
- Deployment Faile***, Error: Resource azwb********-tot doesn't exist. HOT 5
- The new option Clean should have defaulted to false or been highlighted as a breaking change HOT 4
- Azure Web Application not updated, action still claims "Success" HOT 9
- Can't deploy to ACA-based Function App
- Cann't show submit messages, ONLY show OneDeploy
- Parameter ''using: node20' is not supported, use 'docker', 'node12' or 'node16' instead.'
- nodes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webapps-deploy.