Azure – Create and Rename a Function
Other day I was exploring Azure ‘Functions’ and had a tough time to rename the ‘Function’.
Below are the steps to create and rename Azure ‘Function’
What is an Azure Function:
Azure Function is a serverless compute service that enables you to run code on-demand without having to explicitly provision or manage infrastructure.
In simpler words, you can run your code with no Development/Hosting environment. All you need to do is start coding in ‘Azure Function’ editor like you code in Visual Studio, you can even refer external .dlls.
Steps to create Function:
- Connect to your Azure Portal (http://portal.azure.com)
- Create a new “Function App”
- I named it as ‘AzrFunc’
- Under the “Function App”, add a new ‘Function’ of type “Webhook + API”
- Now a ‘Function’ will get created with a default name “HttpTriggerCSharp1”
Steps to rename a Function:
There is no rename option in UI to change the ‘Function’ name and you have to use ‘Console’ from “Platform features -> Development Tools”
- Open the Console
- Type command “ls” which lists out your function name
- Use command “rename” to change the Function name
- Syntax: rename <old_name> <new_name>
- I renamed function to ‘WhoAmI’
- Syntax: rename <old_name> <new_name>
- Restart the ‘Function App’
- Refresh your “Function App”, to see the change
Refer documentation to learn more about ‘Azure Functions’
🙂
does this change any other functionality linked to the function app after renaming it?