You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Add Azure Storage by using Connected Services | Microsoft Docs
3
-
description: Add Azure Storage to your app by using the Visual Studio Add Connected Services dialog box
3
+
description: Add an Azure Storage service dependency to your app by using the Visual Studio Connected Services
4
4
author: ghogen
5
5
manager: jillfra
6
6
assetId: 521ec044-ad4b-4828-8864-01decde2e758
7
7
ms.custom: vs-azure
8
8
ms.workload: azure-vs
9
9
ms.topic: how-to
10
-
ms.date: 03/26/2017
10
+
ms.date: 08/13/2020
11
11
ms.author: ghogen
12
12
---
13
13
# Adding Azure storage by using Visual Studio Connected Services
14
14
15
-
With Visual Studio, you can connect any of the following to Azure Storage by using the **Add Connected Services**dialog:
15
+
With Visual Studio, you can connect any of the following to Azure Storage by using the **Connected Services**feature:
16
16
17
-
- C# cloud service
18
-
- .NET backend mobile service
19
-
- ASP.NET website or service
20
-
- ASP.NET Core service
21
-
- Azure WebJob service
17
+
- .NET Framework console app
18
+
- ASP.NET MVC (.NET Framework)
19
+
- ASP.NET Core
20
+
- .NET Core (including console app, WPF, Windows Forms, class Library)
21
+
- .NET Core Worker Role
22
+
- Azure Functions
23
+
- Universal Windows Platform App
24
+
- Xamarin
25
+
- Cordova
22
26
23
27
The connected service functionality adds all the needed references and connection code to your project, and modifies your configuration files appropriately.
24
28
25
-
After completion, the **Add Connected Services** dialog automatically displays documentation detailing the steps required to start working with blob storage, queues, and tables.
26
-
27
29
> [!NOTE]
28
30
> This topic applies to Visual Studio on Windows. For Visual Studio for Mac, see [Connected services in Visual Studio for Mac](/visualstudio/mac/connected-services).
31
+
## Prerequisites
32
+
33
+
- Visual Studio with the Azure workload installed.
34
+
- A project of one of the supported types
29
35
30
-
## Connect to Azure Storage using the Connected Services dialog
36
+
## Connect to Azure Storage using Connected Services
31
37
32
-
1. Open your project in Visual Studio
38
+
::: moniker range="vs-2017"
33
39
34
-
1.In **Solution Explorer**, right-click the **Connected Services** node, and, from the context menu, and select **Add Connected Service**.
1. In the **Connected Services** page, select **Cloud Storage with Azure Storage**.
39
47
@@ -56,19 +64,53 @@ After completion, the **Add Connected Services** dialog automatically displays d
56
64
1. When the **Azure Storage** dialog is displayed, the new storage account appears in the list. Select the new storage account in the list, and select **Add**.
57
65
58
66
1. The storage connected service appears under the **Service References** node of your project.
67
+
:::moniker-end
68
+
69
+
:::moniker range=">=vs-2019"
70
+
71
+
1. Open your project in Visual Studio.
72
+
73
+
1. In **Solution Explorer**, right-click the **Connected Services** node, and, from the context menu, select **Add Connected Service**.
1. When the **Azure Storage** dialog is displayed, the new storage account appears in the list. Select the new storage account in the list, and select **Add**.
59
100
60
-
## How your project is modified
101
+
1. Enter a connection string name, and choose whether you want the connection string stored in a local secrets file, or in [Azure Key Vault](/azure/key-vault).
61
102
62
-
When you finish the dialog, Visual Studio adds references and modifies certain configuration files. The specific changes depend on the project type:
1. The **Summary of changes** screen shows all the modifications that will be made to your project if you complete the process. If the changes look OK, choose **Finish**.
106
+
107
+

108
+
109
+
1. The storage connected service appears under the **Service References** node of your project.
0 commit comments