Perform the following steps:
- Once the Azure Functions Core Tools are ready, run the following command to create a new function app:
func init
You will get the following output after executing the preceding command:

In the preceding screenshot, dotnet is selected by default. Pressing Enter will create the required files, as shown in the following screenshot:

- Run the following command to create a new HTTP trigger function within the new function app that we have created:
func new
You will get the following output after executing the preceding command:

- As shown in the preceding screenshot, you will be prompted to choose the function template. For this recipe, I have chosen HttpTrigger. Choose HttpTrigger by using the down arrow. You can choose the Azure Function type based on your requirements. You can navigate between the options using the up/down arrows on your keyboard.
- The next step is to provide a name for the Azure Function that you are creating. Provide a meaningful name and press Enter, as shown in the following screenshot:

- You can use your favorite IDE to edit the Azure Function code. In this recipe, I am using Visual Studio Code to open the HttpTrigger function, as shown in the following screenshot:

- Let's test the Azure Function right from your local machine. For this, we need to start the Azure Function host by running the following command:
func host start --build
- Once the host is started, you can copy the URL and test it in your browser, along with a query string parameter name, as shown in the following screenshot:
