Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming functions in Visual Studio creates a new function in the Function App #555

Closed
CrazyTuna opened this issue Oct 18, 2017 · 3 comments

Comments

@CrazyTuna
Copy link

I am using Visual Studio 2017 et Azure Function Sdk.

  1. I have created a simple function "test-function" and deployed it. On the portal, I could see this new function.

  2. Then I renamed this function to "real-function" and redeployed. On the portal, another function has been created.

I now have two functions but I can't delete the first one because functions were generated and the function app is in readonly mode.

@justcla
Copy link
Contributor

justcla commented Oct 18, 2017

When you publish from Visual Studio, there is an option in the settings of the publish configuration profile that let's you "Remove additional files at destination".
image
If you check that, it should remove the old function when it does the next publish.

@CrazyTuna
Copy link
Author

Oh gosh... I feel stupid now :-)

Thanks !

@eralston
Copy link

sketch
There is an analogous setting to this under "Additional Deployment Options" in the VSTS Azure App Service Deploy action, meaning you can also have self-resetting apps with CI/CD in VSTS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants