Skip to content

Commit ab83961

Browse files
author
Glenn Gailey
committed
Refactor cleanup resources
1 parent beb3329 commit ab83961

10 files changed

+39
-27
lines changed

articles/azure-functions/functions-add-output-binding-storage-queue-vs-code.md

+1-13
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,7 @@ Now, it's time to republish the updated function app to Azure.
136136

137137
You created resources to complete these quickstarts. You may be billed for these resources, depending on your [account status](https://azure.microsoft.com/account/) and [service pricing](https://azure.microsoft.com/pricing/). If you don't need the resources anymore, here's how to delete them:
138138

139-
1. In Visual Studio Code, press F1 to open the command palette. In the command palette, search for and select `Azure Functions: Open in portal`.
140-
141-
1. Choose your function app, and press Enter. The function app page is opened in the [Azure portal](https://portal.azure.com).
142-
143-
1. In the **Overview** tab, select the named link under **Resource group**.
144-
145-
![Select the resource group to delete from the function app page.](./media/functions-add-output-binding-storage-queue-vs-code/functions-app-delete-resource-group.png)
146-
147-
1. In the **Resource group** page, review the list of included resources, and verify that they are the ones you want to delete.
148-
149-
1. Select **Delete resource group**, and follow the instructions.
150-
151-
Deletion may take a couple of minutes. When it's done, a notification appears for a few seconds. You can also select the bell icon at the top of the page to view the notification.
139+
[!INCLUDE [functions-cleanup-resources-vs-code.md](../../includes/functions-cleanup-resources-vs-code.md)]
152140

153141
## Next steps
154142

articles/azure-functions/functions-create-first-function-vs-code.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ After you've verified that the function runs correctly on your local computer, i
6464

6565
## Run the function in Azure
6666

67-
1. Copy the URL of the HTTP trigger from the **Output** panel. This URL includes the function key, which is passed to the `code` query parameter. As before, make sure to add the query string `?name=<yourname>` to the end of this URL and execute the request.
67+
1. Copy the URL of the HTTP trigger from the **Output** panel. This URL includes the function key, which is passed to the `code` query parameter. Again, add the `name` query string, this time as `&name=<yourname>`, to the end of this URL and execute the request.
6868

6969
The URL that calls your HTTP-triggered function should be in the following format:
7070

@@ -74,6 +74,16 @@ After you've verified that the function runs correctly on your local computer, i
7474

7575
![Function response in the browser](./media/functions-create-first-function-vs-code/functions-test-remote-browser.png)
7676

77+
## Clean up resources
78+
79+
If you continue to the next step, [Add an Azure Storage queue binding to your function](functions-add-output-binding-storage-queue-vs-code.md), keep all your resources in place as you'll build on what you've already done.
80+
81+
Otherwise, use the following steps to delete the function app and its related resources to avoid incurring further costs.
82+
83+
[!INCLUDE [functions-cleanup-resources-vs-code.md](../../includes/functions-cleanup-resources-vs-code.md)]
84+
85+
To learn more about Functions costs, see [Estimating Consumption plan costs](functions-consumption-costs.md).
86+
7787
## Next steps
7888

7989
You have used Visual Studio Code to create a function app with a simple HTTP-triggered function. In the next article, you expand that function by adding an output binding. This binding writes the string from the HTTP request to a message in an Azure Queue Storage queue. The next article also shows you how to clean up these new Azure resources by removing the resource group you created.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
author: ggailey777
3+
ms.service: azure-functions
4+
ms.topic: include
5+
ms.date: 01/12/2020
6+
ms.author: glenga
7+
---
8+
9+
1. In Visual Studio Code, press F1 to open the command palette. In the command palette, search for and select `Azure Functions: Open in portal`.
10+
11+
1. Choose your function app, and press Enter. The function app page is opened in the [Azure portal](https://portal.azure.com).
12+
13+
1. In the **Overview** tab, select the named link under **Resource group**.
14+
15+
![Select the resource group to delete from the function app page.](./media/functions-cleanup-resources-vs-code/functions-app-delete-resource-group.png)
16+
17+
1. In the **Resource group** page, review the list of included resources, and verify that they are the ones you want to delete.
18+
19+
1. Select **Delete resource group**, and follow the instructions.
20+
21+
Deletion may take a couple of minutes. When it's done, a notification appears for a few seconds. You can also select the bell icon at the top of the page to view the notification.

includes/functions-publish-project-vscode.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
---
2-
title: include file
3-
description: include file
4-
services: functions
52
author: ggailey777
6-
manager: jeconnoc
73
ms.service: azure-functions
84
ms.topic: include
9-
ms.date: 04/16/2019
5+
ms.date: 01/12/2020
106
ms.author: glenga
11-
ms.custom: include file
127
---
138

149
## Publish the project to Azure

includes/functions-run-function-test-local-vs-code.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ Azure Functions Core Tools lets you run an Azure Functions project on your local
2222

2323
![Function localhost response in the browser](./media/functions-run-function-test-local-vs-code/functions-test-local-browser.png)
2424

25-
1. To stop debugging, press Shift + F5.
25+
1. To stop Core Tools, press Ctrl + C in the Terminal window. This also disconnects the debugger.

includes/functions-sign-in-vs-code.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22
author: ggailey777
33
ms.service: azure-functions
44
ms.topic: include
5-
ms.date: 11/27/2018
5+
ms.date: 01/13/2020
66
ms.author: glenga
77
---
88

99
## Sign in to Azure
1010

1111
Before you can publish your app, you must sign in to Azure.
1212

13-
1. In the **Azure: Functions** area, choose **Sign in to Azure...**. If you don't already have one, you can **Create a free Azure account**.
13+
1. Choose the Azure icon in the Activity bar, then in the **Azure: Functions** area, choose **Sign in to Azure...**. If you don't already have one, you can **Create a free Azure account**.
1414

1515
![Function localhost response in the browser](./media/functions-sign-in-vs-code/functions-sign-into-azure.png)
1616

17-
1. When prompted, select **Copy & Open**, or copy the displayed code and open <https://aka.ms/devicelogin> in your browser.
17+
1. When prompted in the browser, choose your Azure account and sign in using your Azure account credentials.
1818

19-
1. Paste the copied code in the **Device Login** page, verify the sign in for Visual Studio Code, then select **Continue**.
20-
21-
1. Complete the sign in using your Azure account credentials. After you have successfully signed in, you can close the browser.
19+
1. After you have successfully signed in, you can close the new browser window. The subscriptions that belong to your Azure account are displayed in the Side bar.
Loading
Loading
Loading

0 commit comments

Comments
 (0)