Skip to content

Commit 35b1875

Browse files
add include files
1 parent 3e3fb20 commit 35b1875

22 files changed

+97
-15
lines changed
Binary file not shown.

articles/azure-signalr/scripts/signalr-cli-create-with-app-service.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ This sample script creates a new Azure SignalR Service resource, which is used t
1818

1919
[!INCLUDE [azure-cli-prepare-your-environment.md](~/reusable-content/azure-cli/azure-cli-prepare-your-environment.md)]
2020

21+
[!INCLUDE [Connection string security](includes/signalr-connection-string-security.md)]
22+
2123
## Sample script
2224

2325
[!INCLUDE [cli-launch-cloud-shell-sign-in.md](~/reusable-content/ce-skilling/azure/includes/cli-launch-cloud-shell-sign-in.md)]
2426

2527
### Run the script
2628

29+
[!INCLUDE [Connection string security comment](includes/signalr-connection-string-security-comment.md)]
30+
2731
:::code language="azurecli" source="~/azure_cli_scripts/azure-signalr/create-signalr-with-app-service/create-signalr-with-app-service.sh" id="FullScript":::
2832

2933
## Clean up resources

articles/azure-signalr/signalr-concept-client-negotiation.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ ms.date: 04/02/2024
1212

1313
The first request between a client and a server is the negotiation request. When you use self-hosted SignalR, you use the request to establish a connection between the client and the server. And when you use Azure SignalR Service, clients connect to the service instead of the application server. This article shares concepts about negotiation protocols and ways to customize a negotiation endpoint.
1414

15+
[!INCLUDE [Connection string security](includes/signalr-connection-string-security.md)]
16+
1517
## What is negotiation?
1618

1719
The response to the `POST [endpoint-base]/negotiate` request contains one of three types of responses:
@@ -155,7 +157,9 @@ private class CustomRouter : EndpointRouterDecorator
155157
}
156158
```
157159

158-
Also register the router to dependency injection:
160+
Also register the router to dependency injection.
161+
162+
[!INCLUDE [Connection string security comment](includes/signalr-connection-string-security-comment.md)]
159163

160164
```cs
161165
// Sample of configuring multiple endpoints and dependency injection

articles/azure-signalr/signalr-concept-serverless-development-config.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Azure Functions applications can use the [Azure SignalR Service bindings](../azu
1717

1818
This article describes the concepts for developing and configuring an Azure Function app that is integrated with SignalR Service.
1919

20+
[!INCLUDE [Connection string security](includes/signalr-connection-string-security.md)]
21+
2022
## SignalR Service configuration
2123

2224
Azure SignalR Service can be configured in [different modes](concept-service-mode.md). When used with Azure Functions, the service must be configured in **Serverless** mode.
@@ -153,7 +155,10 @@ public interface IChatClient
153155
}
154156
```
155157

156-
Then you can use the strongly typed methods as follows:
158+
Then you can use the strongly typed methods as follows.
159+
160+
[!INCLUDE [Connection string security comment](includes/signalr-connection-string-security-comment.md)]
161+
157162
```cs
158163
[SignalRConnection("AzureSignalRConnectionString")]
159164
public class Functions : ServerlessHub<IChatClient>

articles/azure-signalr/signalr-howto-diagnostic-logs.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ You can enable other types of data collection after some configuration. This art
1919
- For more information about monitoring Azure SignalR Service, see [Monitor Azure SignalR Service](monitor-signalr.md).
2020
- For a detailed listing of the metrics and logs collected for Azure SignalR Service, see [Azure SignalR Service monitoring data reference](monitor-signalr-reference.md).
2121

22+
[!INCLUDE [Connection string security](includes/signalr-connection-string-security.md)]
23+
2224
## Prerequisites
2325

2426
To enable resource logs, you need to set up a place to store your log data, such as Azure Storage or Log Analytics.
@@ -241,7 +243,9 @@ To enable this behavior, uncheck the checkbox for a specific log type in the **T
241243

242244
##### Server side
243245

244-
Also set up `ServiceOptions.DiagnosticClientFilter` to define a filter of diagnostic clients based on the http context comes from clients. For example, make client with hub URL `<HUB_URL>?diag=yes`, then set up `ServiceOptions.DiagnosticClientFilter` to filter the diagnostic client. If it returns `true`, the client is marked as diagnostic client. Otherwise, it stays as normal client. The `ServiceOptions.DiagnosticClientFilter` can be set in your startup class like this:
246+
Also set up `ServiceOptions.DiagnosticClientFilter` to define a filter of diagnostic clients based on the http context comes from clients. For example, make client with hub URL `<HUB_URL>?diag=yes`, then set up `ServiceOptions.DiagnosticClientFilter` to filter the diagnostic client. If it returns `true`, the client is marked as diagnostic client. Otherwise, it stays as normal client. The following example show how to use the `ServiceOptions.DiagnosticClientFilter` in your startup class.
247+
248+
[!INCLUDE [Connection string security comment](includes/signalr-connection-string-security-comment.md)]
245249

246250
``` C#
247251
// sample: mark a client as diagnostic client when it has query string "?diag=yes" in hub URL

articles/azure-signalr/signalr-howto-emulator.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@ When developing serverless applications, we provide an Azure SignalR Local Emula
1717
* Latest Rest API support
1818
* Upstream
1919

20+
[!INCLUDE [Connection string security](includes/signalr-connection-string-security.md)]
21+
2022
## Walkthrough
2123

2224
We use [this serverless sample](https://github.com/Azure/azure-functions-signalrservice-extension/tree/3e87c3ce277265866ca9d0bf51bb9c7ecea39e14/samples/bidirectional-chat) to show how to use the emulator.
2325

26+
[!INCLUDE [Connection string security comment](includes/signalr-connection-string-security-comment.md)]
27+
2428
1. Clone the sample repo to local
2529
```
2630
git clone https://github.com/Azure/azure-functions-signalrservice-extension.git
@@ -69,9 +73,7 @@ We use [this serverless sample](https://github.com/Azure/azure-functions-signalr
6973
asrs-emulator start
7074
```
7175
72-
After the emulator is successfully started, it generates the ConnectionString to be used later, for example, the ConnectionString is `Endpoint=http://localhost;Port=8888;AccessKey=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGH;Version=1.0;` as the below screenshot shows.
73-
74-
:::image type="content" source="./media/signalr-howto-emulator/emulator-command-running.png" alt-text="Screenshot of the emulator command is running.":::
76+
After the emulator is successfully started, it generates the ConnectionString to be used later.
7577
7678
The emulator also provides advanced options when start, for example, you can use `asrs-emulator start -p 8999` to customize the port the emulator used. Type `asrs-emulator start --help` to check the options available.
7779

articles/azure-signalr/signalr-howto-event-grid-integration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Azure Event Grid is a fully managed event routing service that provides uniform
1919
[!INCLUDE [azure-cli-prepare-your-environment.md](~/reusable-content/azure-cli/azure-cli-prepare-your-environment.md)]
2020

2121
- The Azure CLI commands in this article are formatted for the **Bash** shell. If you're using a different shell like PowerShell or Command Prompt, you may need to adjust line continuation characters or variable assignment lines accordingly. This article uses variables to minimize the amount of command editing required.
22+
23+
[!INCLUDE [Connection string security](includes/signalr-connection-string-security.md)]
2224

2325
## Create a resource group
2426

@@ -139,6 +141,8 @@ When the subscription is completed, you should see output similar to the followi
139141

140142
Switch to the service mode to `Serverless Mode` and set up a client connection to the SignalR Service. You can take [Serverless Sample](https://github.com/aspnet/AzureSignalR-samples/tree/master/samples/Serverless) as a reference.
141143

144+
[!INCLUDE [Connection string security comment](includes/signalr-connection-string-security-comment.md)]
145+
142146
```bash
143147
git clone [email protected]:aspnet/AzureSignalR-samples.git
144148

articles/azure-signalr/signalr-howto-reverse-proxy-overview.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@ A reverse proxy server can be used in front of Azure SignalR Service. Reverse pr
1414

1515
A common architecture using a reverse proxy server with Azure SignalR is as below:
1616

17-
:::image type="content" source="./media/signalr-howto-reverse-proxy-overview/architecture.png" alt-text="Diagram that shows the architecture using Azure SignalR with a reverse proxy server.":::
17+
:::image type="content" source="./media/signalr-howto-reverse-proxy-overview/architecture.png" alt-text="Diagram that shows the architecture using Azure SignalR with a reverse proxy server.":::
18+
19+
[!INCLUDE [Connection string security](includes/signalr-connection-string-security.md)]
1820

1921
## General practices
2022
There are several general practices to follow when using a reverse proxy in front of SignalR Service.
2123

24+
[!INCLUDE [Connection string security comment](includes/signalr-connection-string-security-comment.md)]
25+
2226
* Make sure to rewrite the incoming HTTP [HOST header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host) with the Azure SignalR service URL, e.g. `https://demo.service.signalr.net`. Azure SignalR is a multi-tenant service, and it relies on the `HOST` header to resolve to the correct endpoint. For example, when [configuring Application Gateway](./signalr-howto-work-with-app-gateway.md#create-an-application-gateway-instance) for Azure SignalR, select **Yes** for the option *Override with new host name*.
2327

2428
* When your client goes through your reverse proxy to Azure SignalR, set `ClientEndpoint` as your reverse proxy URL. When your client *negotiate*s with your hub server, the hub server will return the URL defined in `ClientEndpoint` for your client to connect. [Check here for more details.](./concept-connection-string.md#provide-client-and-server-endpoints)

articles/azure-signalr/signalr-howto-scale-multi-instances.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ zone_pivot_groups: azure-signalr-service-mode
1616

1717
SignalR Service SDK supports multiple endpoints for SignalR Service instances. You can use this feature to scale the concurrent connections, or use it for cross-region messaging.
1818

19+
[!INCLUDE [Connection string security](includes/signalr-connection-string-security.md)]
20+
1921
:::zone pivot="default-mode"
2022
## For ASP.NET Core
2123

2224
### Add multiple endpoints from config
2325

26+
[!INCLUDE [Connection string security comment](includes/signalr-connection-string-security-comment.md)]
27+
2428
Configure with key `Azure:SignalR:ConnectionString` or `Azure:SignalR:ConnectionString:` for SignalR Service connection string.
2529

2630
If the key starts with `Azure:SignalR:ConnectionString:`, it should be in the format `Azure:SignalR:ConnectionString:{Name}:{EndpointType}`, where `Name` and `EndpointType` are properties of the `ServiceEndpoint` object, and are accessible from code.

articles/azure-signalr/signalr-howto-use-management-sdk.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Azure SignalR Management SDK helps you to manage SignalR clients through Azure S
1616
>
1717
> To see guides for SDK version 1.9.x and before, go to [Azure SignalR Service Management SDK (Legacy)](https://github.com/Azure/azure-signalr/blob/dev/docs/management-sdk-guide-legacy.md). You might also want to read [Migration guidance](https://github.com/Azure/azure-signalr/blob/dev/docs/management-sdk-migration.md).
1818
19+
[!INCLUDE [Connection string security](includes/signalr-connection-string-security.md)]
20+
1921
## Features
2022

2123
| Feature | Transient | Persistent |
@@ -56,7 +58,9 @@ This section shows how to use the Management SDK.
5658

5759
### Create Service Manager
5860

59-
Build your instance of `ServiceManager` from a `ServiceManagerBuilder`
61+
Build your instance of `ServiceManager` from a `ServiceManagerBuilder`.
62+
63+
[!INCLUDE [Connection string security comment](includes/signalr-connection-string-security-comment.md)]
6064

6165
``` C#
6266

0 commit comments

Comments
 (0)