Skip to content

Commit 7980e48

Browse files
committed
SignalR, SQL Database, App Insights
1 parent c2e6e37 commit 7980e48

37 files changed

+313
-15
lines changed
Lines changed: 77 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,86 @@
11
---
2-
title: Add Azure App Insights by using Connected Services | Microsoft Docs
3-
description: Add Azure SignalR to your app by using the Visual Studio to add a connected service
2+
title: Add Azure Application Insights by using Connected Services | Microsoft Docs
3+
description: Add Azure Application Insights to your app by using the Visual Studio to add a connected service
44
author: AngelosP
55
manager: jillfra
66
ms.custom: vs-azure
77
ms.workload: azure-vs
88
ms.topic: conceptual
9-
ms.date: 06/10/2020
9+
ms.date: 08/17/2020
1010
ms.author: angelpe
1111
monikerRange: ">= vs-2019"
1212
---
13-
# Add Azure App Insights by using Visual Studio Connected Services
13+
# Add Azure Application Insights by using Visual Studio Connected Services
14+
15+
With Visual Studio, you can connect any of the following to Azure Application Insights by using the **Connected Services** feature:
16+
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
26+
27+
The connected service functionality adds all the needed references and connection code to your project, and modifies your configuration files appropriately.
28+
29+
> [!NOTE]
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
35+
36+
## Connect to Azure Application Insights using Connected Services
37+
38+
1. Open your project in Visual Studio.
39+
40+
1. In **Solution Explorer**, right-click the **Connected Services** node, and, from the context menu, select **Add Connected Service**.
41+
42+
![Add Azure connected service](./media/vs-azure-tools-connected-services-storage/vs-2019/add-connected-service.png)
43+
44+
1. In the **Connected Services** tab, select the + icon for **Service Dependencies**.
45+
46+
![Add Service Dependency](./media/vs-azure-tools-connected-services-storage/vs-2019/connected-services-tab.png)
47+
48+
1. In the **Add Dependency** page, select **Azure Application Insights**.
49+
50+
![Add Azure Application Insights](./media/azure-app-insights-add-connected-service/azure-app-insights.png)
51+
52+
If you aren't signed in already, sign into your Azure account. If you don't have an Azure account, you can sign up for a [free trial](https://azure.microsoft.com/account/free).
53+
54+
1. In the **Configure Azure Application Insights** screen, select an existing Azure Application Insights component, and select **Next**.
55+
56+
If you need to create a new component, go to the next step. Otherwise, skip to step 7.
57+
58+
![Connect to existing Application Insights component](./media/azure-app-insights-add-connected-service/created-app-insights.png)
59+
60+
1. To create an Application Insights component:
61+
62+
1. Select **Create a new Application Insights component** at the bottom of the screen.
63+
64+
1. Fill out the **Application Insights: Create new** screen, and select **Create**.
65+
66+
![New Azure App Insights component](./media/azure-app-insights-add-connected-service/create-new-app-insights.png)
67+
68+
1. When the **Configure Azure Application Insights** screen is displayed, the new component appears in the list. Select the new component in the list, and select **Next**.
69+
70+
1. Enter an Instrumentation key name, or choose the default, and choose whether you want the connection string stored in a local secrets file, or in [Azure Key Vault](/azure/key-vault).
71+
72+
![Specify connection string](./media/azure-app-insights-add-connected-service/connection-string.png)
73+
74+
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**.
75+
76+
![Summary of changes](./media/azure-app-insights-add-connected-service/summary-of-changes.png)
77+
78+
1. The connection appears under the **Service Dependencies** section of the **Connected Services** tab.
79+
80+
![Service dependencies](./media/azure-app-insights-add-connected-service/service-dependencies-after.png)
81+
82+
## See also
83+
84+
- [Azure Monitor product page](https://azure.microsoft.com/services/monitor/)
85+
- [Azure App Insights documentation](/azure/azure-monitor/app/app-insights-overview/)
86+
- [Connected services (Visual Studio for Mac)](/visualstudio/mac/connected-services)

docs/azure/azure-cache-for-redis-add-connected-service.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,75 @@ monikerRange: ">= vs-2019"
1212
---
1313
# Add Azure Cache for Redis by using Visual Studio Connected Services
1414

15+
With Visual Studio, you can connect any of the following to Azure Cache for Redis by using the **Connected Services** feature:
16+
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
26+
27+
The connected service functionality adds all the needed references and connection code to your project, and modifies your configuration files appropriately.
28+
29+
> [!NOTE]
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
35+
36+
## Connect to Azure Cache for Redis using Connected Services
37+
38+
1. Open your project in Visual Studio.
39+
40+
1. In **Solution Explorer**, right-click the **Connected Services** node, and, from the context menu, select **Add Connected Service**.
41+
42+
![Add Azure connected service](./media/vs-azure-tools-connected-services-storage/vs-2019/add-connected-service.png)
43+
44+
1. In the **Connected Services** tab, select the + icon for **Service Dependencies**.
45+
46+
![Add Service Dependency](./media/vs-azure-tools-connected-services-storage/vs-2019/connected-services-tab.png)
47+
48+
1. In the **Add Dependency** page, select **Azure Cache for Redis**.
49+
50+
![Add Azure Cache for Redis](./media/azure-redis-cache-add-connected-service/azure-redis-cache.png)
51+
52+
If you aren't signed in already, sign into your Azure account. If you don't have an Azure account, you can sign up for a [free trial](https://azure.microsoft.com/account/free).
53+
54+
1. In the **Configure Azure Cache for Redis** screen, select an existing Azure Cache for Redis, and select **Next**.
55+
56+
If you need to create a new component, go to the next step. Otherwise, skip to step 7.
57+
58+
![Connect to existing Azure Cache for Redis](./media/azure-redis-cache-add-connected-service/created-azure-redis-cache.png)
59+
60+
1. To create an Azure Redis Cache:
61+
62+
1. Select **Create a new Azure Redis Cache** at the bottom of the screen.
63+
64+
1. Fill out the **Azure Cache for Redis: Create new** screen, and select **Create**.
65+
66+
![New Azure Cache for Redis](./media/azure-redis-cache-add-connected-service/create-new-azure-redis-cache.png)
67+
68+
1. When the **Configure Azure Cache for Redis** screen is displayed, the new cache appears in the list. Select the new database in the list, and select **Next**.
69+
70+
1. Enter a connection string name, or choose the default, and choose whether you want the connection string stored in a local secrets file, or in [Azure Key Vault](/azure/key-vault).
71+
72+
![Specify connection string](./media/azure-redis-cache-add-connected-service/connection-string.png)
73+
74+
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**.
75+
76+
![Summary of changes](./media/azure-redis-cache-add-connected-service/summary-of-changes.png)
77+
78+
1. The connection appears under the **Service Dependencies** section of the **Connected Services** tab.
79+
80+
![Service dependencies](./media/azure-redis-cache-add-connected-service/service-dependencies-after.png)
81+
82+
## See also
83+
84+
- [Azure Cache for Redis product page](https://azure.microsoft.com/services/cache)
85+
- [Azure Cache for Redis documentation](/azure/azure-cache-for-redis/)
86+
- [Connected services (Visual Studio for Mac)](/visualstudio/mac/connected-services)

docs/azure/azure-cosmosdb-add-connected-service.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: jillfra
66
ms.custom: vs-azure
77
ms.workload: azure-vs
88
ms.topic: conceptual
9-
ms.date: 06/10/2020
9+
ms.date: 08/17/2020
1010
ms.author: angelpe
1111
monikerRange: ">= vs-2019"
1212
---
@@ -49,6 +49,8 @@ The connected service functionality adds all the needed references and connectio
4949

5050
![Add Azure Cosmos DB](./media/azure-cosmosdb-add-connected-service/azure-cosmosdb.png)
5151

52+
If you aren't signed in already, sign into your Azure account. If you don't have an Azure account, you can sign up for a [free trial](https://azure.microsoft.com/account/free).
53+
5254
1. In the **Azure Cosmos DB** screen, select an existing Azure Cosmos DB, and select **Next**.
5355

5456
If you need to create a database, go to the next step. Otherwise, skip to step 7.
@@ -57,11 +59,11 @@ The connected service functionality adds all the needed references and connectio
5759

5860
1. To create an Azure Cosmos DB:
5961

60-
1. Select **Create a New Azure Cosmos DB** at the bottom of the screen.
62+
1. Select **Create a new Azure Cosmos DB** at the bottom of the screen.
6163

62-
1. Fill out the **Create Azure Cosmos DB** screen, and select **Create**.
64+
1. Fill out the **Azure Cosmos DB: Create new** screen, and select **Create**.
6365

64-
![New Azure storage account](./media/azure-cosmosdb-add-connected-service/create-new-cosmosdb.png)
66+
![New Azure Cosmos DB](./media/azure-cosmosdb-add-connected-service/create-new-cosmosdb.png)
6567

6668
1. When the **Configure Azure Cosmos DB** dialog is displayed, the new database appears in the list. Select the new database in the list, and select **Next**.
6769

@@ -73,12 +75,12 @@ The connected service functionality adds all the needed references and connectio
7375

7476
![Summary of changes](./media/azure-cosmosdb-add-connected-service/summary-of-changes.png)
7577

76-
1. The storage connected service appears under the **Service Dependencies** section of the Connected Services tab.
78+
1. The connection appears under the **Service Dependencies** section of the **Connected Services** tab.
7779

7880
![Service dependencies](./media/azure-cosmosdb-add-connected-service/service-dependencies-after.png)
7981

8082
## See also
8183

8284
- [Azure Cosmos DB product page](https://azure.microsoft.com/services/cosmos-db/)
83-
- [Azure Storage documentation](/azure/cosmos-db/)
85+
- [Azure Cosmos DB documentation](/azure/cosmos-db/)
8486
- [Connected services (Visual Studio for Mac)](/visualstudio/mac/connected-services)

docs/azure/azure-signalr-add-connected-service.md

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,81 @@ manager: jillfra
66
ms.custom: vs-azure
77
ms.workload: azure-vs
88
ms.topic: conceptual
9-
ms.date: 06/10/2020
9+
ms.date: 08/17/2020
1010
ms.author: angelpe
1111
monikerRange: ">= vs-2019"
1212
---
1313
# Add Azure SignalR by using Visual Studio Connected Services
14+
15+
With Visual Studio, you can connect any of the following to Azure SignalR service by using the **Connected Services** feature:
16+
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
26+
27+
The connected service functionality adds all the needed references and connection code to your project, and modifies your configuration files appropriately.
28+
29+
> [!NOTE]
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
35+
36+
## Connect to Azure SignalR using Connected Services
37+
38+
1. Open your project in Visual Studio.
39+
40+
1. In **Solution Explorer**, right-click the **Connected Services** node, and, from the context menu, select **Add Connected Service**.
41+
42+
![Add Azure connected service](./media/vs-azure-tools-connected-services-storage/vs-2019/add-connected-service.png)
43+
44+
1. In the **Connected Services** tab, select the + icon for **Service Dependencies**.
45+
46+
![Add Service Dependency](./media/vs-azure-tools-connected-services-storage/vs-2019/connected-services-tab.png)
47+
48+
1. In the **Add Dependency** page, select **Azure SignalR Service**.
49+
50+
![Add Azure SignalR Service](./media/azure-signalr-add-connected-service/add-signalr-service.png)
51+
52+
If you aren't signed in already, sign into your Azure account. If you don't have an Azure account, you can sign up for a [free trial](https://azure.microsoft.com/account/free).
53+
54+
1. In the **Configure Azure SignalR** screen, select an existing Azure SignalR component, and select **Next**.
55+
56+
If you need to create a new component, go to the next step. Otherwise, skip to step 7.
57+
58+
![Connect to existing Azure SignalR component](./media/azure-signalr-add-connected-service/created-signalr.png)
59+
60+
1. To create an Azure SignalR service instance:
61+
62+
1. Select **Create a new Azure SignalR Service instance** at the bottom of the screen.
63+
64+
1. Fill out the **Azure SignalR Service: Create new** screen, and select **Create**.
65+
66+
![New Azure SignalR Service instance](./media/azure-signalr-add-connected-service/create-new-signalr.png)
67+
68+
1. When the **Configure Azure SignalR** screen is displayed, the new instance appears in the list. Select the new instance in the list, and select **Next**.
69+
70+
1. Enter a connection string name, or choose the default, and choose whether you want the connection string stored in a local secrets file, or in [Azure Key Vault](/azure/key-vault).
71+
72+
![Specify connection string](./media/azure-signalr-add-connected-service/connection-string.png)
73+
74+
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**.
75+
76+
![Summary of changes](./media/azure-signalr-add-connected-service/summary-of-changes.png)
77+
78+
1. The connection appears under the **Service Dependencies** section of the **Connected Services** tab.
79+
80+
![Service dependencies](./media/azure-signalr-add-connected-service/service-dependencies-after.png)
81+
82+
## See also
83+
84+
- [Azure SignalR product page](https://azure.microsoft.com/services/signalr-service/)
85+
- [Azure SignalR Service documentation](/azure/azure-signalr)
86+
- [Connected services (Visual Studio for Mac)](/visualstudio/mac/connected-services)

docs/azure/azure-sql-database-add-connected-service.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,79 @@ monikerRange: ">= vs-2019"
1212
---
1313
# Add a connection to Azure SQL Database
1414

15+
With Visual Studio, you can connect any of the following to Azure SQL database by using the **Connected Services** feature:
16+
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
26+
27+
The connected service functionality adds all the needed references and connection code to your project, and modifies your configuration files appropriately.
28+
29+
> [!NOTE]
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
35+
36+
## Connect to Azure SQL Database using Connected Services
37+
38+
1. Open your project in Visual Studio.
39+
40+
1. In **Solution Explorer**, right-click the **Connected Services** node, and, from the context menu, select **Add Connected Service**.
41+
42+
![Add Azure connected service](./media/vs-azure-tools-connected-services-storage/vs-2019/add-connected-service.png)
43+
44+
1. In the **Connected Services** tab, select the + icon for **Service Dependencies**.
45+
46+
![Add Service Dependency](./media/vs-azure-tools-connected-services-storage/vs-2019/connected-services-tab.png)
47+
48+
1. In the **Add Dependency** page, select **Azure SQL Database**.
49+
50+
![Add Azure SQL Database Service](./media/azure-sql-database-add-connected-service/add-sql-database.png)
51+
52+
If you aren't signed in already, sign into your Azure account. If you don't have an Azure account, you can sign up for a [free trial](https://azure.microsoft.com/account/free).
53+
54+
1. In the **Configure Azure SQL Database** screen, select an existing Azure SQL Database, and select **Next**.
55+
56+
If you need to create a new component, go to the next step. Otherwise, skip to step 7.
57+
58+
![Connect to existing Azure SQL Database component](./media/azure-sql-database-add-connected-service/created-azure-sql-database.png)
59+
60+
1. To create an Azure SQL Database:
61+
62+
1. Select **Create a SQL Database** at the bottom of the screen.
63+
64+
1. Fill out the **Azure SQL Database: Create new** screen, and select **Create**.
65+
66+
![New Azure SQL Database](./media/azure-sql-database-add-connected-service/create-new-azure-sql-database.png)
67+
68+
1. When the **Configure Azure SQL Database** screen is displayed, the new database appears in the list. Select the new database in the list, and select **Next**.
69+
70+
1. Enter a connection string name, or choose the default, and choose whether you want the connection string stored in a local secrets file, or in [Azure Key Vault](/azure/key-vault).
71+
72+
![Specify connection string](./media/azure-sql-database-add-connected-service/connection-string.png)
73+
74+
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**.
75+
76+
![Summary of changes](./media/azure-sql-database-add-connected-service/summary-of-changes.png)
77+
78+
If prompted to set a firewall rules, choose **Yes**.
79+
80+
![Firewall rules](./media/azure-sql-database-add-connected-service/firewall-rules.png)
81+
82+
1. The connection appears under the **Service Dependencies** section of the **Connected Services** tab.
83+
84+
![Service dependencies](./media/azure-sql-database-add-connected-service/service-dependencies-after.png)
85+
86+
## See also
87+
88+
- [Azure SQL Database product page](https://azure.microsoft.com/services/sql-database/)
89+
- [Azure SQL Database documentation](/azure/azure-sql/database/)
90+
- [Connected services (Visual Studio for Mac)](/visualstudio/mac/connected-services)
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)