Skip to content

Commit 7d32598

Browse files
committed
1 parent 72d6a99 commit 7d32598

6 files changed

+31
-22
lines changed

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

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Connect Azure Functions to Azure Storage using Visual Studio Code
33
description: Learn how to connect Azure Functions to an Azure Queue Storage by adding an output binding to your Visual Studio Code project.
4-
ms.date: 06/15/2022
4+
ms.date: 01/31/2023
55
ms.topic: quickstart
66
ms.devlang: csharp, java, javascript, powershell, python, typescript
77
ms.custom: devx-track-python, devx-track-js, mode-ui, devdivchpfy22
@@ -174,17 +174,7 @@ Because you're using the storage connection string, your function connects to th
174174

175175
### Connect Storage Explorer to your account
176176

177-
Skip this section if you have already installed Azure Storage Explorer and connected it to your Azure account.
178-
179-
1. Run the [Azure Storage Explorer](https://storageexplorer.com/) tool, select the connect icon on the left, and select **Add an account**.
180-
181-
:::image type="content" source="./media/functions-add-output-binding-storage-queue-vs-code/storage-explorer-add-account.png" alt-text="Screenshot of how to add an Azure account to Microsoft Azure Storage Explorer.":::
182-
183-
1. In the **Connect** dialog, choose **Add an Azure account**, choose your **Azure environment**, and then select **Sign in...**.
184-
185-
:::image type="content" source="./media/functions-add-output-binding-storage-queue-vs-code/storage-explorer-connect-azure-account.png" alt-text="Screenshot of the sign-in to your Azure account window.":::
186-
187-
After you successfully sign in to your account, you see all of the Azure subscriptions associated with your account.
177+
[!INCLUDE [functions-storage-explorer-connect.md](../../includes/functions-storage-explorer-connect.md)]
188178

189179
### Examine the output queue
190180

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Connect functions to Azure Storage using Visual Studio
33
description: "Learn how to add an output binding to connect your C# class library functions to an Azure Storage queue using Visual Studio."
4-
ms.date: 05/30/2021
4+
ms.date: 01/31/2023
55
ms.topic: quickstart
66
ms.devlang: csharp
77
ms.custom: mvc, mode-ui
@@ -20,8 +20,8 @@ Most bindings require a stored connection string that Functions uses to access t
2020

2121
Before you start this article, you must:
2222

23-
- Complete [part 1 of the Visual Studio quickstart](./functions-create-your-first-function-visual-studio.md).
24-
23+
- Complete [part 1 of the Visual Studio quickstart](./functions-create-your-first-function-visual-studio.md).
24+
- Install [Azure Storage Explorer](https://storageexplorer.com/). Storage Explorer is a tool that you'll use to examine queue messages generated by your output binding. Storage Explorer is supported on macOS, Windows, and Linux-based operating systems.
2525
- Sign in to your Azure subscription from Visual Studio.
2626

2727
## Download the function app settings
@@ -74,19 +74,19 @@ After the binding is defined, you can use the `name` of the binding to access it
7474
7575
A new queue named `outqueue` is created in your storage account by the Functions runtime when the output binding is first used. You'll use Cloud Explorer to verify that the queue was created along with the new message.
7676

77-
## Examine the output queue
77+
### Connect Storage Explorer to your account
7878

79-
1. In Visual Studio from the **View** menu, select **Cloud Explorer**. ([This view as been removed in Visual Studio 2022](https://docs.microsoft.com/en-us/visualstudio/azure/vs-azure-tools-resources-managing-with-cloud-explorer?view=vs-2022))
79+
[!INCLUDE [functions-storage-explorer-connect.md](../../includes/functions-storage-explorer-connect.md)]
8080

81-
1. In **Cloud Explorer**, expand your Azure subscription and **Storage Accounts**, then expand the storage account used by your function. If you can't remember the storage account name, check the `AzureWebJobsStorage` connection string setting in the *local.settings.json* file.
81+
### Examine the output queue
8282

83-
1. Expand the **Queues** node, and then double-click the queue named **outqueue** to view the contents of the queue in Visual Studio.
83+
1. In Storage Explorer, expand the **Queues** node, and then select the queue named **outqueue**.
8484

8585
The queue contains the message that the queue output binding created when you ran the HTTP-triggered function. If you invoked the function with the default `name` value of *Azure*, the queue message is *Name passed to the function: Azure*.
8686

87-
![Queue message shown in Azure Storage Explorer](./media/functions-add-output-binding-storage-queue-vs-code/function-queue-storage-output-view-queue.png)
87+
:::image type="content" source="./media/functions-add-output-binding-storage-queue-vs-code/function-queue-storage-output-view-queue.png" alt-text="Screenshot of the queue message shown in Azure Storage Explorer.":::
8888

89-
1. Run the function again, send another request, and you'll see a new message appear in the queue.
89+
1. Run the function again, send another request, and you see a new message in the queue.
9090

9191
Now, it's time to republish the updated function app to Azure.
9292

includes/functions-add-output-binding-js.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ Add code that uses the `msg` output binding object on `context.bindings` to crea
1111

1212
:::code language="javascript" range="5-7" source="~/functions-docs-javascript/functions-add-output-binding-storage-queue-cli/HttpExample/index.js":::
1313

14-
At this point, your function must look as follows:
14+
At this point, your function could look as follows:
1515

1616
:::code language="javascript" source="~/functions-docs-javascript/functions-add-output-binding-storage-queue-cli/HttpExample/index.js":::
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
author: ggailey777
3+
ms.service: azure-functions
4+
ms.topic: include
5+
ms.date: 01/31/2023
6+
ms.author: glenga
7+
---
8+
9+
Skip this section if you've already installed Azure Storage Explorer and connected it to your Azure account.
10+
11+
1. Run the [Azure Storage Explorer](https://storageexplorer.com/) tool, select the connect icon on the left, and select **Add an account**.
12+
13+
:::image type="content" source="./media/functions-storage-explorer-connect/storage-explorer-add-account.png" alt-text="Screenshot of how to add an Azure account to Microsoft Azure Storage Explorer.":::
14+
15+
1. In the **Connect** dialog, choose **Add an Azure account**, choose your **Azure environment**, and then select **Sign in...**.
16+
17+
:::image type="content" source="./media/functions-storage-explorer-connect/storage-explorer-connect-azure-account.png" alt-text="Screenshot of the sign-in to your Azure account window.":::
18+
19+
After you successfully sign in to your account, you see all of the Azure subscriptions associated with your account.

0 commit comments

Comments
 (0)