Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
---
title: Create an HTTP endpoint using Azure Functions in the portal
description: Learn how to use an HTTP trigger to create a function app with an HTTP endpoint using the Azure portal.
ms.topic: how-to
ms.date: 05/08/2025
ms.custom:
- devx-track-csharp
- mvc
- devcenter
- cc996988-fb4f-47
- devdivchpfy22
- devx-track-extended-java
- devx-track-js
- devx-track-python
- build-2024
- devx-track-ts
zone_pivot_groups: programming-languages-set-functions-no-go
---
# Create an HTTP endpoint using Azure Functions in the portal
Azure Functions lets you run your code in a serverless environment without having to first create a virtual machine (VM) or publish a web application. In this article, you learn how to use Azure Functions to create a "hello world" HTTP trigger function in the Azure portal.
Choose your preferred programming language at the top of the article.
::: zone pivot="programming-language-csharp"
>[!NOTE]
>Editing your C# function code in the Azure portal is currently only supported for [C# script (.csx) functions](functions-reference-csharp.md). To learn more about the limitations on editing function code in the Azure portal, see [Development limitations in the Azure portal](functions-how-to-use-azure-function-app-settings.md#development-limitations-in-the-azure-portal).
>
> You should instead [develop your functions locally](functions-develop-local.md) and publish to a function app in Azure. Use one of the following links to get started with your chosen local development environment:
>+ [Visual Studio](functions-create-your-first-function-visual-studio.md)
>+ [Visual Studio Code](./how-to-create-function-vs-code.md?pivot=programming-language-csharp)
+ [Terminal/command prompt](./how-to-create-function-azure-cli.md?pivots=programming-language-csharp)
::: zone-end
::: zone pivot="programming-language-java"
>[!NOTE]
>Editing your Java function code in the Azure portal isn't currently supported. For more information, see [Development limitations in the Azure portal](functions-how-to-use-azure-function-app-settings.md#development-limitations-in-the-azure-portal).
>
> You should instead [develop your functions locally](functions-develop-local.md) and publish to a function app in Azure. Use one of the following links to get started with your chosen local development environment:
>+ [Eclipse](functions-create-maven-eclipse.md)
>+ [Gradle](functions-create-first-java-gradle.md)
>+ [IntelliJ IDEA](functions-create-maven-intellij.md)
+ [Maven](how-to-create-function-azure-cli.md?pivots=programming-language-java)
>+ [Quarkus](functions-create-first-quarkus.md)
>+ [Spring Cloud](/azure/developer/java/spring-framework/getting-started-with-spring-cloud-function-in-azure?toc=/azure/azure-functions/toc.json)
>+ [Visual Studio Code](how-to-create-function-vs-code.md?pivot=programming-language-java)
::: zone-end
::: zone pivot="programming-language-javascript"
>[!NOTE]
>Because of [development limitations in the Azure portal](functions-how-to-use-azure-function-app-settings.md#development-limitations-in-the-azure-portal), you should instead [develop your functions locally](functions-develop-local.md) and publish to a function app in Azure. Use one of the following links to get started with your chosen local development environment:
>+ [Visual Studio Code](./how-to-create-function-vs-code.md?pivot=programming-language-javascript)
+ [Terminal/command prompt](./how-to-create-function-azure-cli.md?pivots=programming-language-javascript)
::: zone-end
::: zone pivot="programming-language-python"
>[!NOTE]
>Because of [development limitations in the Azure portal](functions-how-to-use-azure-function-app-settings.md#development-limitations-in-the-azure-portal), you should instead [develop your functions locally](functions-develop-local.md) and publish to a function app in Azure. Use one of the following links to get started with your chosen local development environment:
>+ [Visual Studio Code](./how-to-create-function-vs-code.md?pivot=programming-language-python)
+ [Terminal/command prompt](./how-to-create-function-azure-cli.md?pivots=programming-language-python)
::: zone-end
::: zone pivot="programming-language-typescript"
>[!NOTE]
>Editing your TypeScript function code in the Azure portal isn't currently supported. For more information, see [Development limitations in the Azure portal](functions-how-to-use-azure-function-app-settings.md#development-limitations-in-the-azure-portal).
>
> You should instead [develop your functions locally](functions-develop-local.md) and publish to a function app in Azure. Use one of the following links to get started with your chosen local development environment:
>+ [Visual Studio Code](./how-to-create-function-vs-code.md?pivot=programming-language-typescript)
+ [Terminal/command prompt](./how-to-create-function-azure-cli.md?pivots=programming-language-typescript)
::: zone-end
::: zone pivot="programming-language-powershell"
>[!NOTE]
>Because of [development limitations in the Azure portal](functions-how-to-use-azure-function-app-settings.md#development-limitations-in-the-azure-portal), you should instead [develop your functions locally](functions-develop-local.md) and publish to a function app in Azure. Use one of the following links to get started with your chosen local development environment:
>+ [Visual Studio Code](./how-to-create-function-vs-code.md?pivot=programming-language-powershell)
+ [Terminal/command prompt](./how-to-create-function-azure-cli.md?pivots=programming-language-powershell)
::: zone-end
Please review the [known issues](./recover-python-functions.md#development-issues-in-the-azure-portal) for development of Azure Functions using Python in the Azure portal.
## Prerequisites
[!INCLUDE [quickstarts-free-trial-note](~/reusable-content/ce-skilling/azure/includes/quickstarts-free-trial-note.md)]
## Sign in to Azure
Sign in to the [Azure portal](https://portal.azure.com) with your Azure account.
## Create a function app
You must have a function app to host the execution of your functions. A function app lets you group functions as a logical unit for easier management, deployment, scaling, and sharing of resources.
Use these steps to create your function app and related Azure resources, whether or not you're able to edit your code in the Azure portal.
::: zone pivot="programming-language-csharp"
To be able to create a C# script app that you can edit in the portal, choose **8 (LTS), in-process model** for .NET **Version**.
::: zone-end
[!INCLUDE [Create function app Azure portal](../../includes/functions-create-function-app-portal.md)]
Next, create a function in the new function app.
::: zone pivot="programming-language-python,programming-language-javascript,programming-language-powershell,programming-language-csharp"
## <a name="create-function"></a>Create an HTTP trigger function
1. In your function app, select **Overview**, and then select **+ Create** under **Functions**. If you don't see the **+ Create** button, you must instead [create your functions locally](./functions-develop-local.md).
1. Under **Select a template**, scroll down and choose the **HTTP trigger** template.
1. In **Template details**, use `HttpExample` for **New Function**, select **Anonymous** from the **[Authorization level](functions-bindings-http-webhook-trigger.md#http-auth)** drop-down list, and then select **Create**.
Azure creates the HTTP trigger function. Now, you can run the new function by sending an HTTP request.
::: zone-end
::: zone pivot="programming-language-java,programming-language-csharp,programming-language-typescript,programming-language-python"
## Create your functions locally
If you aren't able to create your function code in the portal, you can instead create a local project and publish the function code to your new function app.
1. In your function app, select **Overview**, and then in **Create functions in your preferred environment** under **Functions**.
1. Choose your preferred local development environment and follow the steps in the linked article to create and publish your first Azure Functions project.
>[!TIP]
>When publishing your new project, make sure to use the function app and related resources you just created.
::: zone-end
## Test the function
[!INCLUDE [functions-test-function-portal](../../includes/functions-test-function-portal.md)]
## Clean up resources
[!INCLUDE [Clean-up resources](../../includes/functions-quickstart-cleanup.md)]
## Next steps
[!INCLUDE [Next steps note](../../includes/functions-quickstart-next-steps.md)]