HTTP Triggered Azure Function on Azure Portal

Posted by

HTTP Triggered Azure Functions are a type of Azure Functions that can be triggered through an HTTP request. In this tutorial, we’ll go through the steps to create an HTTP triggered Azure Function in the Azure portal.

  1. Prerequisites:
    • An Azure account
    • Access to the Azure portal
  2. Create an Azure Function App:
    • Log in to the Azure portal.
    • Click the “Create a resource” button on the left-side menu.
    • Select “Compute” and then “Function App”.
    • Fill in the required information like name, subscription, resource group, runtime stack, and hosting plan.
    • Click the “Create” button to create the Function App.
  3. Create an HTTP Triggered Function:
    • In the Azure portal, navigate to the newly created Function App.
    • Click the “Functions” menu item on the left-side menu.
    • Click the “New function” button and select “HTTP trigger”.
    • Choose a language for your function (e.g. C#, JavaScript, etc.).
    • Give your function a name.
    • Choose the access level for the function (e.g. “Anonymous” or “Function”).
    • Click the “Create” button to create the function.
  4. Test the Function:
    • In the Azure portal, navigate to the newly created function.
    • Copy the function URL by clicking the “Get function URL” button.
    • Open a web browser and paste the URL into the address bar.
    • Append “?name=YOUR_NAME” to the URL and press enter.
    • You should see a response like “Hello, YOUR_NAME”.

That’s it! You have created an HTTP-triggered Azure Function. You can now modify the code in the function to meet your needs and add additional functionality to it.

One comment

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.