azure-functions-host icon indicating copy to clipboard operation
azure-functions-host copied to clipboard

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

Open shimedh opened this issue 1 year ago • 1 comments

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 avatar Feb 20 '24 22:02 shimedh

@fabiocav Can you help prioritize?

shimedh avatar Feb 20 '24 22:02 shimedh