Problem


When creating an Azure Function from Azure portal. The function name seems to be fixed once you created it. There's no way from portal UI to change the function name. To rename a function, you could copy its code first, then delete and recreate it. But this is not the only way. Let's see how we can rename a function easily without deleting and recreating it.

Solution


For example, I want to rename "Work007" to "Work996"

Go to "App Service Editor" menu and open the editor

In the editor, go under "wwwroot", find "Work007" folder, select "Rename" from the context menu, enter "Work996".

The editor automatically saves changes, so you won't have to do anything, just close the editor.

Go back to the function overview page, restart the function.

After a minute, the function is renamed successfully. Make sure to test it to ensure it still works.