Rename an Azure Function

前端 未结 5 516
-上瘾入骨i
-上瘾入骨i 2020-12-24 10:31

How to rename an Azure Function?

I want to replace a default \'HttpTriggerCSharp1\' name to my own. At the moment unfortunately this name

5条回答
  •  猫巷女王i
    2020-12-24 11:12

    Below worked for me.

    I wanted to rename my azure function from "HttpTriggerCSharp1" to "my-new-func1"

    Go to

    Function Apps > 
     My-Function-App > 
      Platform Features TAB > 
       Console >
    

    Run below commands:

    cd D:\home\site\wwwroot
    move HttpTriggerCSharp1 my-new-func1
    

    Now restart the application:

    Function Apps > 
     My-Function-App > 
      Overview TAB > 
       Restart
    

    NOTE: The function 'code' query param changes by doing this.

提交回复
热议问题