Azure / azure-functions-host

The host/runtime that powers Azure Functions
https://functions.azure.com
MIT License
1.94k stars 441 forks source link

[Functions] Deleting Node.js function when published from package reports successful deletion but does not delete function #9889

Open shimedh opened 8 months ago

shimedh commented 8 months ago

Creating this based off https://msazure.visualstudio.com/Antares/_workitems/edit/26146059

  1. Create a Node.js function app with an HTTP trigger function in VS Code.
  2. Deploy to Azure.
  3. Set WEBSITE_RUN_FROM_PACKAGE app setting to 1
  4. Try to delete the function.

Expected The function should not be deleted, and an error notification should report that the deletion was unsuccessful.

Actual The function is not deleted. This is expected because deleting zip deployed functions is not supported. However, the deletion is reported as successful because the DELETE request gets a 204 No Data response indicating successful deletion.

Pasting discussion below from WI:

image

Code reference:

https://github.com/Azure/azure-functions-host/blob/b34f69269b269d94741a237ad9b24d93bf9056fc/src/WebJobs.Script.WebHost/Controllers/FunctionsController.cs#L195

shimedh commented 8 months ago

@fabiocav Can you help prioritize?