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
Copy file name to clipboardExpand all lines: articles/service-connector/how-to-integrate-signalr.md
+27-21Lines changed: 27 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: maud-lv
5
5
ms.author: malev
6
6
ms.service: service-connector
7
7
ms.topic: how-to
8
-
ms.date: 08/11/2022
8
+
ms.date: 10/31/2023
9
9
ms.custom:
10
10
- ignite-fall-2021
11
11
- kr2b-contr-experiment
@@ -14,7 +14,7 @@ ms.custom:
14
14
15
15
# Integrate Azure SignalR Service with Service Connector
16
16
17
-
This article shows the supported authentication types and client types of Azure SignalR Service using Service Connector. This article also shows default environment variable name and value or Spring Boot configuration that you get when you create the service connection. For more information, see [Service Connector environment variable naming convention](concept-service-connector-internals.md).
17
+
This article supported authentication methods and clients, and shows sample code you can use to connect Azure SignalR Service to other cloud services using Service Connector. This article also shows default environment variable name and value or Spring Boot configuration that you get when you create the service connection. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
18
18
19
19
## Supported compute service
20
20
@@ -25,15 +25,6 @@ This article shows the supported authentication types and client types of Azure
25
25
26
26
Supported authentication and clients for App Service and Container Apps:
27
27
28
-
### [Azure App Service](#tab/app-service)
29
-
30
-
| Client type | System-assigned managed identity | User-assigned managed identity | Secret / connection string | Service principal |
@@ -43,35 +34,50 @@ Supported authentication and clients for App Service and Container Apps:
43
34
44
35
## Default environment variable names or application properties
45
36
46
-
Use the connection details below to connect compute services to SignalR. For each example below, replace the placeholder texts
37
+
Use environment variable names listed below to connect compute services to Azure SignalR Service. For each example below, replace the placeholder texts
47
38
`<SignalR-name>`, `<access-key>`, `<client-ID>`, `<tenant-ID>`, and `<client-secret>` with your own SignalR name, access key, client ID, tenant ID and client secret.
48
39
49
-
### .NET
50
-
51
-
#### Secret / Connection string
40
+
### System-assigned Managed Identity
52
41
53
42
| Default environment variable name | Description | Example value |
54
43
| --- | --- | --- |
55
-
| AZURE_SIGNALR_CONNECTIONSTRING | SignalR Service connection string |`Endpoint=https://<SignalR-name>.service.signalr.net;AccessKey=<access-key>;Version=1.0;`|
44
+
| AZURE_SIGNALR_CONNECTIONSTRING | SignalR Service connection string with Managed Identity |`Endpoint=https://<SignalR-name>.service.signalr.net;AuthType=aad;<client-ID>;Version=1.0;`|
56
45
57
-
#### System-assigned Managed Identity
46
+
#### Sample code
47
+
Refer to the steps and code below to connect to Azure SignalR Service using a system-assigned managed identity.
48
+
[!INCLUDE [code for signalR](./includes/code-signalr.md)]
49
+
50
+
### User-assigned Managed Identity
58
51
59
52
| Default environment variable name | Description | Example value |
60
53
| --- | --- | --- |
61
-
| AZURE_SIGNALR_CONNECTIONSTRING | SignalR Service connection string with Managed Identity |`Endpoint=https://<SignalR-name>.service.signalr.net;AuthType=aad;<client-ID>;Version=1.0;`|
54
+
| AZURE_SIGNALR_CONNECTIONSTRING | SignalR Service connection string with Managed Identity |`Endpoint=https://<SignalR-name>.service.signalr.net;AuthType=aad;client-id=<client-id>;Version=1.0;`|
55
+
56
+
#### Sample code
57
+
Refer to the steps and code below to connect to Azure SignalR Service using a user-assigned managed identity.
58
+
[!INCLUDE [code for signalR](./includes/code-signalr.md)]
59
+
62
60
63
-
#### User-assigned Managed Identity
61
+
###Connection string
64
62
65
63
| Default environment variable name | Description | Example value |
66
64
| --- | --- | --- |
67
-
| AZURE_SIGNALR_CONNECTIONSTRING | SignalR Service connection string with Managed Identity |`Endpoint=https://<SignalR-name>.service.signalr.net;AuthType=aad;client-id=<client-id>;Version=1.0;`|
65
+
| AZURE_SIGNALR_CONNECTIONSTRING | SignalR Service connection string |`Endpoint=https://<SignalR-name>.service.signalr.net;AccessKey=<access-key>;Version=1.0;`|
68
66
69
-
#### Service Principal
67
+
#### Sample code
68
+
Refer to the steps and code below to connect to Azure SignalR Service using a connection string.
69
+
[!INCLUDE [code for signalR](./includes/code-signalr.md)]
70
+
71
+
### Service Principal
70
72
71
73
| Default environment variable name | Description | Example value |
72
74
| --- | --- | --- |
73
75
| AZURE_SIGNALR_CONNECTIONSTRING | SignalR Service connection string with Service Principal |`Endpoint=https://<SignalR-name>.service.signalr.net;AuthType=aad;ClientId=<client-ID>;ClientSecret=<client-secret>;TenantId=<tenant-ID>;Version=1.0;`|
74
76
77
+
#### Sample code
78
+
Refer to the steps and code below to connect to Azure SignalR Service using a service principal.
79
+
[!INCLUDE [code for signalR](./includes/code-signalr.md)]
For other languages, you can use the connection string that Service Connector sets to the environment variables to connect Azure SignalR Service. For environment variable details, see [Integrate Azure SignalR Service with Service Connector](../how-to-integrate-signalr.md).
0 commit comments