DEV Community

velan
velan

Posted on

3 3

Azure function: app setting"WEBSITE_RUN_FROM_PACKAGE" to the rescue!

Recently came across a scenario, Azure function .netcore package files went missing after redeploying the underlying infra using arm template.

Root cause analysis discovered that when redeploying the underlying infra using arm template, it will clear out wwwroot folder in azure function.

To prevent the wwwroot folder from being emptied out, just need to add an app setting!

WEBSITE_RUN_FROM_PACKAGE: 1
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more