Skip to content

Commit 1a72460

Browse files
authored
Merge pull request #99005 from anthonychu/20191214-update-signalr-quickstarts
Update SignalR quickstarts
2 parents fbd8a9a + 557306e commit 1a72460

File tree

2 files changed

+12
-22
lines changed

2 files changed

+12
-22
lines changed

articles/azure-signalr/signalr-quickstart-azure-functions-javascript.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: sffamily
55
ms.service: signalr
66
ms.devlang: javascript
77
ms.topic: quickstart
8-
ms.date: 03/04/2019
8+
ms.date: 12/14/2019
99
ms.author: zhshang
1010
---
1111
# Quickstart: Create a chat room with Azure Functions and SignalR Service using JavaScript
@@ -18,11 +18,9 @@ This quickstart can be run on macOS, Windows, or Linux.
1818

1919
Make sure you have a code editor such as [Visual Studio Code](https://code.visualstudio.com/) installed.
2020

21-
Install the [Azure Functions Core Tools (v2)](https://github.com/Azure/azure-functions-core-tools#installing) to run Azure Function apps locally.
21+
Install the [Azure Functions Core Tools](https://github.com/Azure/azure-functions-core-tools#installing) (version 2 or higher) to run Azure Function apps locally.
2222

23-
Azure Functions requires [Node.js](https://nodejs.org/en/download/) version 8 or 10.
24-
25-
In order to install extensions, Azure Functions Core Tools currently require the [.NET Core SDK](https://www.microsoft.com/net/download) installed. However, no knowledge of .NET is required to build JavaScript Azure Function apps.
23+
This quickstart uses [Node.js](https://nodejs.org/en/download/) 10.x but should work with other versions. Refer to the [Azure Functions runtime versions documentation](../azure-functions/functions-versions.md#languages) for more information on supported Node.js versions.
2624

2725
[!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
2826

@@ -57,13 +55,7 @@ Sign in to the Azure portal at <https://portal.azure.com/> with your Azure accou
5755
- **negotiate** - Uses the *SignalRConnectionInfo* input binding to generate and return valid connection information.
5856
- **messages** - Receives a chat message in the request body and uses the *SignalR* output binding to broadcast the message to all connected client applications.
5957

60-
1. In the terminal, ensure that you are in the *src/chat/javascript* folder. Use the Azure Functions Core Tools to install extensions required to run the app.
61-
62-
```bash
63-
func extensions install
64-
```
65-
66-
1. Run the function app.
58+
1. In the terminal, ensure that you are in the *src/chat/javascript* folder. Run the function app.
6759

6860
```bash
6961
func start

articles/azure-signalr/signalr-quickstart-azure-functions-python.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: anthonychu
55
ms.service: signalr
66
ms.devlang: python
77
ms.topic: quickstart
8-
ms.date: 08/08/2019
8+
ms.date: 12/14/2019
99
ms.author: antchu
1010
---
1111
# Quickstart: Create a chat room with Azure Functions and SignalR Service using Python
@@ -18,11 +18,9 @@ This quickstart can be run on macOS, Windows, or Linux.
1818

1919
Make sure you have a code editor such as [Visual Studio Code](https://code.visualstudio.com/) installed.
2020

21-
Install the [Azure Functions Core Tools (v2)](https://github.com/Azure/azure-functions-core-tools#installing) (version 2.7.1505 or higher) to run Python Azure Function apps locally.
21+
Install the [Azure Functions Core Tools](https://github.com/Azure/azure-functions-core-tools#installing) (version 2.7.1505 or higher) to run Python Azure Function apps locally.
2222

23-
Azure Functions requires [Python 3.6](https://www.python.org/downloads/).
24-
25-
In order to install extensions, Azure Functions Core Tools currently require the [.NET Core SDK](https://www.microsoft.com/net/download) installed. However, no knowledge of .NET is required to build Python Azure Function apps.
23+
Azure Functions requires [Python 3.6 or 3.7](https://www.python.org/downloads/).
2624

2725
[!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
2826

@@ -48,19 +46,19 @@ Sign in to the Azure portal at <https://portal.azure.com/> with your Azure accou
4846

4947
1. In your code editor, open the *src/chat/python* folder in the cloned repository.
5048

51-
1. To locally develop and test Python functions, you must work in a Python 3.6 environment. Run the following commands to create and activate a virtual environment named `.venv`.
49+
1. To locally develop and test Python functions, you must work in a Python 3.6 or 3.7 environment. Run the following commands to create and activate a virtual environment named `.venv`.
5250

5351
**Linux or macOS:**
5452

5553
```bash
56-
python3.6 -m venv .venv
54+
python3.7 -m venv .venv
5755
source .venv/bin/activate
5856
```
5957

6058
**Windows:**
6159

6260
```powershell
63-
py -3.6 -m venv .venv
61+
py -3.7 -m venv .venv
6462
.venv\scripts\activate
6563
```
6664

@@ -73,10 +71,10 @@ Sign in to the Azure portal at <https://portal.azure.com/> with your Azure accou
7371
- **negotiate** - Uses the *SignalRConnectionInfo* input binding to generate and return valid connection information.
7472
- **messages** - Receives a chat message in the request body and uses the *SignalR* output binding to broadcast the message to all connected client applications.
7573

76-
1. In the terminal, ensure that you are in the *src/chat/python* folder. Use the Azure Functions Core Tools to install extensions required to run the app.
74+
1. In the terminal with the virtual environment activated, ensure that you are in the *src/chat/python* folder. Install the necessary Python packages using PIP.
7775

7876
```bash
79-
func extensions install
77+
python -m pip install -r requirements.txt
8078
```
8179

8280
1. Run the function app.

0 commit comments

Comments
 (0)