You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you deploy to stage when the 'stage' deployment slot doesn't exist, it will create a new deployment slot named 'stage' and copy the configuration settings of parent (prod). It should not copy application settings like WEBSITE_CONTENTSHARE and should create new storage for the new deployment slot and rewrite slot specific settings accordingly.
Actual behavior
All the parent application settings are copied to deployment slot's settings including WEBSITE_CONTENTSHARE. As a result both slots are reading the code from the same storage and you're effectively overwriting production code when you deploy to stage slot. I'm getting an issue similar to this.
Steps to reproduce the problem
Deploy your app using ./mvnw clean package azure-functions:deploy
By default it will deploy to production slot and create additional resources
@AidenFawkes Thanks a lot for your report and really sorry for the late response. We are using run from package deployment by default, which deployment in slot should not affect product deployment. Could you please help share us a demo project to reproduce this issue if possible?
As a workaround, if you want to have fresh app settings for the slot, you may set <configurationSource> as new, however, you may need to specify all app settings/configuration manually for the new slot.
Plugin name and version
azure-functions-maven-plugin, version 1.21.0
Plugin configuration in
pom.xml
Expected behavior
If you deploy to stage when the 'stage' deployment slot doesn't exist, it will create a new deployment slot named 'stage' and copy the configuration settings of parent (prod). It should not copy application settings like
WEBSITE_CONTENTSHARE
and should create new storage for the new deployment slot and rewrite slot specific settings accordingly.Actual behavior
All the parent application settings are copied to deployment slot's settings including
WEBSITE_CONTENTSHARE
. As a result both slots are reading the code from the same storage and you're effectively overwriting production code when you deploy to stage slot. I'm getting an issue similar to this.Steps to reproduce the problem
./mvnw clean package azure-functions:deploy
pom.xml
fileThe text was updated successfully, but these errors were encountered: