Rename an Azure Function -
how rename azure function?
i want replace default 'httptriggercsharp1' name own. @ moment unfortunately name included in function url , there no option change it:
https://functions-xxx.azurewebsites.net/api/httptriggercsharp1
the ui not directly support renaming function, can work around using following manual steps:
- stop function app. this, go under function app settings / go app service settings, , click on stop button.
- go kudu console: function app settings / go kudu (article that)
- in kudu console, go d:\home\site\wwwroot , rename function folder new name
- now go d:\home\data\functions\secrets , rename [oldname].json [newname].json
- then go d:\home\data\functions\sampledata , rename [oldname].dat [newname].dat
- start function app, in same place stopped above in functions ui, click refresh button in top left corner, , renamed function should appear
note: doing can lose historical logging.
Comments
Post a Comment