Create a Node.js function app with an HTTP trigger function in VS Code.
Deploy to Azure.
Set WEBSITE_RUN_FROM_PACKAGE app setting to 1
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.
Creating this based off https://msazure.visualstudio.com/Antares/_workitems/edit/26146059
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:
Code reference:
https://github.com/Azure/azure-functions-host/blob/b34f69269b269d94741a237ad9b24d93bf9056fc/src/WebJobs.Script.WebHost/Controllers/FunctionsController.cs#L195