Skip to content

Commit d9b5fde

Browse files
author
dksimpson
committed
Functions update for portal UX refresh - batch 15
1 parent b388c62 commit d9b5fde

File tree

6 files changed

+26
-53
lines changed

6 files changed

+26
-53
lines changed

articles/azure-functions/functions-create-student-starter.md

Lines changed: 26 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -5,99 +5,72 @@ Customer intent: As a student, I want to be able to create an HTTP triggered Fun
55
author: alexkarcher-msft
66

77
ms.topic: how-to
8-
ms.date: 02/22/2019
8+
ms.date: 04/29/2020
99
ms.author: alkarche
1010

1111

1212
---
1313
# Create a function using Azure for Students Starter
1414

15-
In this tutorial, we will create a "hello world" HTTP function in an Azure for Students Starter subscription. We'll also walk through what's available in Azure Functions in this subscription type.
15+
In this tutorial, we'll create a "hello world" HTTP function in an Azure for Students Starter subscription. We'll also walk through what's available in Azure Functions in this subscription type.
1616

1717
Microsoft *Azure for Students Starter* gets you started with the Azure products you need to develop in the cloud at no cost to you. [Learn more about this offer here.](https://azure.microsoft.com/offers/ms-azr-0144p/)
1818

1919
Azure Functions lets you execute your code in a [serverless](https://azure.microsoft.com/solutions/serverless/) environment without having to first create a VM or publish a web application. [Learn more about Functions here.](./functions-overview.md)
2020

21+
[!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
22+
2123
## Create a function
2224

23-
In this topic, learn how to use Functions to create an HTTP triggered "hello world" function in the Azure portal.
25+
In this article, learn how to use Azure Functions to create an "hello world" HTTP trigger function in the Azure portal.
2426

2527
![Create function app in the Azure portal](./media/functions-create-student-starter/function-app-in-portal-editor.png)
2628

2729
## Sign in to Azure
2830

29-
Sign in to the Azure portal at <https://portal.azure.com> with your Azure account.
31+
Sign in to the [Azure portal](https://portal.azure.com) with your Azure account.
3032

3133
## Create a function app
3234

3335
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.
3436

35-
1. Select the **Create a resource** button found in the upper-left corner of the Azure portal. Then select **Compute** > **Function App**.
36-
37-
![Create a function app in the Azure portal](./media/functions-create-student-starter/function-app-create-flow.png)
38-
39-
2. Use the function app settings as specified in the table below the image.
40-
41-
<img src="./media/functions-create-student-starter/Function-create-start.png" width="315">
42-
43-
| Setting | Suggested value | Description |
44-
| ------------ | ------- | -------------------------------------------------- |
45-
| **App name** | Globally unique name | Name that identifies your new function app. Valid characters are `a-z`, `0-9`, and `-`. |
46-
| **Subscription** | Your subscription | The subscription under which this new function app is created. |
47-
| **[Resource Group](../azure-resource-manager/management/overview.md)** | myResourceGroup | Name for the new resource group in which to create your function app. |
48-
| **[App Service Plan/Location](./functions-scale.md)** | New | The hosting plan that controls what region your function app is deployed to and the density of your resources. Multiple Function Apps deployed to the same plan will all share the same single free instance. This is a restriction of the Student Starter plan. The full hosting options are [explained here.](./functions-scale.md)|
49-
| **Runtime stack** | Preferred language | Choose a runtime that supports your favorite function programming language. Choose **.NET** for C# and F# functions. |
50-
|**[Application Insights](./functions-monitoring.md)**| Enabled | Application Insights is used to store and analyze your function app's logs. It is enabled by default if you choose a location that supports Application Insights. Application Insights can be enabled for any function by manually choosing a nearby region to deploy Application Insights. Without Application Insights, you will only be able to view live streaming logs.
51-
52-
3. Select **App Service plan/Location** above to choose a different location
53-
54-
4. Select **Create new** and then give your plan a unique name.
55-
56-
5. Select the location closest to you. [See a full map of Azure regions here.](https://azure.microsoft.com/global-infrastructure/regions/)
57-
58-
<img src="./media/functions-create-student-starter/Create-ASP.png" width="800">
59-
60-
6. Select **Create** to provision and deploy the function app.
61-
62-
<img src="./media/functions-create-student-starter/Function-create-end.png" width="315">
63-
64-
7. Select the Notification icon in the upper-right corner of the portal and watch for the **Deployment succeeded** message.
65-
66-
![Define new function app settings](./media/functions-create-student-starter/function-app-create-notification.png)
67-
68-
8. Select **Go to resource** to view your new function app.
37+
[!INCLUDE [Create function app Azure portal](../../includes/functions-create-function-app-portal.md)]
6938

7039
Next, you create a function in the new function app.
7140

72-
## <a name="create-function"></a>Create an HTTP triggered function
73-
74-
1. Expand your new function app, then select the **+** button next to **Functions**, choose **In-portal**, and select **Continue**.
41+
## <a name="create-function"></a>Create an HTTP trigger function
7542

76-
![Functions quickstart choose platform.](./media/functions-create-student-starter/function-app-quickstart-choose-portal.png)
43+
1. From the left menu of the **Functions** window, select **Functions**, then select **Add** from the top menu.
44+
45+
1. From the **New Function** window, select **Http trigger**.
7746

78-
1. Choose **WebHook + API** and then select **Create**.
47+
![Choose HTTP trigger function](./media/functions-create-student-starter/function-app-select-http-trigger.png)
7948

80-
![Functions quickstart in the Azure portal.](./media/functions-create-student-starter/function-app-quickstart-node-webhook.png)
49+
1. In the **New Function** window, accept the default name for **New Function**, or enter a new name.
8150

82-
A function is created using a language-specific template for an HTTP triggered function.
51+
1. Choose **Anonymous** from the **Authorization level** drop-down list, and then select **Create Function**.
8352

84-
Now, you can run the new function by sending an HTTP request.
53+
Azure creates the HTTP trigger function. Now, you can run the new function by sending an HTTP request.
8554

8655
## Test the function
8756

88-
1. In your new function, click **</> Get function URL** at the top right, select **default (Function key)**, and then click **Copy**.
57+
1. In your new HTTP trigger function, select **Code + Test** from the left menu, then select **Get function URL** from the top menu.
58+
59+
![Select Get function URL](./media/functions-create-student-starter/function-app-select-get-function-url.png)
60+
61+
1. In the **Get function URL** dialog box, select **default** from the drop-down list, and then select the **Copy to clipboard** icon.
8962

9063
![Copy the function URL from the Azure portal](./media/functions-create-student-starter/function-app-develop-tab-testing.png)
9164

92-
2. Paste the function URL into your browser's address bar. Add the query string value `&name=<yourname>` to the end of this URL and press the `Enter` key on your keyboard to execute the request. You should see the response returned by the function displayed in the browser.
65+
1. Paste the function URL into your browser's address bar. Add the query string value `?name=<your_name>` to the end of this URL and press Enter to run the request.
9366

9467
The following example shows the response in the browser:
9568

9669
![Function response in the browser.](./media/functions-create-student-starter/function-app-browser-testing.png)
9770

9871
The request URL includes a key that is required, by default, to access your function over HTTP.
9972

100-
3. When your function runs, trace information is written to the logs. To see the trace output from the previous execution, return to your function in the portal and click the arrow at the bottom of the screen to expand the **Logs**.
73+
1. When your function runs, trace information is written to the logs. To see the trace output, return to the **Code + Test** page in the portal and expand the **Logs** arrow at the bottom of the page.
10174

10275
![Functions log viewer in the Azure portal.](./media/functions-create-student-starter/function-view-logs.png)
10376

@@ -107,7 +80,7 @@ Now, you can run the new function by sending an HTTP request.
10780

10881
## Supported features in Azure for Students Starter
10982

110-
In Azure for Students Starter you have access to most of the features of the Azure Functions runtime, with several key limitations listed below:
83+
In Azure for Students Starter, you have access to most of the features of the Azure Functions runtime, with several key limitations listed below:
11184

11285
* The HTTP trigger is the only trigger type supported.
11386
* All input and all output bindings are supported! [See the full list here.](functions-triggers-bindings.md)
@@ -117,13 +90,13 @@ In Azure for Students Starter you have access to most of the features of the Azu
11790
* F# (.NET Core 2)
11891
* [See languages supported in higher plans here](supported-languages.md)
11992
* Windows is the only supported operating system.
120-
* Scale is restricted to [one free tier instance](https://azure.microsoft.com/pricing/details/app-service/windows/) running for up to 60 minutes each day. You will serverlessly scale from 0 to 1 instance automatically as HTTP traffic is received, but no further.
93+
* Scale is restricted to [one free tier instance](https://azure.microsoft.com/pricing/details/app-service/windows/) running for up to 60 minutes each day. You'll serverlessly scale from 0 to 1 instance automatically as HTTP traffic is received, but no further.
12194
* Only [version 2.x and later](functions-versions.md) of the Functions runtime is supported.
122-
* All developer tooling is supported for editing and publishing functions. This includes VS Code, Visual Studio, the Azure CLI, and the Azure portal. If you'd like to use anything other than the portal, you will need to first create an app in the portal, and then choose that app as a deployment target in your preferred tool.
95+
* All developer tooling is supported for editing and publishing functions. This includes VS Code, Visual Studio, the Azure CLI, and the Azure portal. If you'd like to use anything other than the portal, you'll need to first create an app in the portal, and then choose that app as a deployment target in your preferred tool.
12396

12497
## Next steps
12598

126-
You have created a function app with a simple HTTP triggered function! Now you can explore local tooling, more languages, monitoring, and integrations.
99+
You've now finished creating a function app with a simple HTTP trigger function. Next, you can explore local tooling, more languages, monitoring, and integrations.
127100

128101
* [Create your first function using Visual Studio](./functions-create-your-first-function-visual-studio.md)
129102
* [Create your first function using Visual Studio Code](./functions-create-first-function-vs-code.md)
4.59 KB
Loading
-3 KB
Loading
52.6 KB
Loading
66.7 KB
Loading
-12.8 KB
Loading

0 commit comments

Comments
 (0)