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/azure-web-pubsub/includes/cli-awps-connstr.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,10 @@ ms.author: lianwei
9
9
> [!INPORTANT]
10
10
> A connection string includes the authorization information required for your application to access Azure Web PubSub service. The access key inside the connection string is similar to a root password for your service. In production environments, always be careful to protect your access keys. Use Azure Key Vault to manage and rotate your keys securely. Avoid distributing access keys to other users, hard-coding them, or saving them anywhere in plain text that is accessible to others. Rotate your keys if you believe they may have been compromised.
11
11
12
-
Use the Azure CLI [az webpubsub key](/cli/azure/webpubsub#az-webpubsub-key) command to get the **ConnectionString** of the service. Replace the `<your-unique-resource-name>` with the name of your Azure Web PubSub instance.
12
+
Use the Azure CLI [az webpubsub key](/cli/azure/webpubsub#az-webpubsub-key) command to get the **ConnectionString** of the service. Replace the `<your-unique-resource-name>`placeholder with the name of your Azure Web PubSub instance.
13
13
14
14
```azurecli
15
-
az webpubsub key show --name "<your-unique-resource-name>" --resource-group "myResourceGroup" --query primaryConnectionString --output tsv
15
+
az webpubsub key show --resource-group myResourceGroup --name <your-unique-resource-name> --query primaryConnectionString --output tsv
Copy file name to clipboardExpand all lines: articles/azure-web-pubsub/includes/cli-rg-creation.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ ms.date: 08/06/2021
6
6
ms.author: lianwei
7
7
---
8
8
9
-
A resource group is a logical container into which Azure resources are deployed and managed. Use the [az group create](/cli/azure/group#az-group-create) command to create a resource group named *myResourceGroup* in the *eastus* location.
9
+
A resource group is a logical container into which Azure resources are deployed and managed. Use the [az group create](/cli/azure/group#az-group-create) command to create a resource group named `myResourceGroup` in the `eastus` location.
10
10
11
11
```azurecli
12
-
az group create --name "myResourceGroup" -l "EastUS"
12
+
az group create --name myResourceGroup --location EastUS
> You can use the Windows cmd.exe command shell instead of a bash shell to run the commands in this tutorial.
25
+
You can use the Windows cmd.exe command shell instead of a Bash shell to run the commands in this tutorial.
27
26
28
27
If creating the project on a local machine, you'll need to install the dependencies for the language you're using:
29
28
@@ -46,7 +45,7 @@ If creating the project on a local machine, you'll need to install the dependenc
46
45
47
46
---
48
47
49
-
## Setup
48
+
## Prepare your environment
50
49
51
50
# [Local Azure CLI](#tab/LocalBash)
52
51
@@ -58,7 +57,7 @@ If creating the project on a local machine, you'll need to install the dependenc
58
57
59
58
---
60
59
61
-
###Create a resource group
60
+
## Create a resource group
62
61
63
62
[!INCLUDE [Create a resource group](includes/cli-rg-creation.md)]
64
63
@@ -69,18 +68,17 @@ If creating the project on a local machine, you'll need to install the dependenc
69
68
70
69
### Create a Web PubSub instance
71
70
72
-
Use the Azure CLI [az webpubsub create](/cli/azure/webpubsub#az-webpubsub-create) command to create a Web PubSub in the resource group you've created. The following command creates a _Free_ Web PubSub resource under resource group *myResourceGroup* in *EastUS*:
71
+
Use the Azure CLI [az webpubsub create](/cli/azure/webpubsub#az-webpubsub-create) command to create a Web PubSub in the resource group you've created. The following command creates a _Free_ Web PubSub resource under resource group `myResourceGroup` in `EastUS`:
73
72
74
-
> [!Important]
75
-
> Each Web PubSub resource must have a unique name. Replace <your-unique-resource-name> with the name of your Web PubSub instance in the following command.
73
+
Each Web PubSub resource must have a unique name. Replace <your-unique-resource-name> with the name of your Web PubSub instance in the following command.
The output of this command shows properties of the newly created resource. Take note of the two properties listed below:
82
80
83
-
***Resource Name**: The name you provided to the `--name` parameter above.
81
+
***name**: The Web PubSub name you provided in the `--name` parameter above.
84
82
***hostName**: In the example, the host name is `<your-unique-resource-name>.webpubsub.azure.com/`.
85
83
86
84
At this point, your Azure account is the only one authorized to perform any operations on this new resource.
@@ -97,7 +95,7 @@ Clients connect to the Azure Web PubSub service through the standard WebSocket p
97
95
98
96
1. First, create a project directory named `subscriber` for this project and install required dependencies:
99
97
100
-
* The package [Websocket.Client](https://github.com/Marfusios/websocket-client) is a third-party package supporting WebSocket connection. You can use any API/library that supports WebSocket to do so.
98
+
* The package [Websocket.Client](https://github.com/Marfusios/websocket-client) is a third-party package supporting WebSocket connections. You can use any API/library that supports WebSocket.
101
99
* The SDK package `Azure.Messaging.WebPubSub` helps to generate the JWT token.
0 commit comments