Skip to content

Commit 74dd8f8

Browse files
Merge pull request #223987 from cebundy/wps-tutorial-and-quickstart
[Web PubSub] freshness review quickstart-use-sdk
2 parents ce01ffb + 6db4b82 commit 74dd8f8

File tree

5 files changed

+423
-164
lines changed

5 files changed

+423
-164
lines changed

articles/azure-web-pubsub/includes/cli-awps-connstr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ ms.author: lianwei
77
---
88

99
> [!Important]
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. Please 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.
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.
1111
1212
Use the Azure CLI [az webpubsub key](/cli/azure/webpubsub#az-webpubsub-key) command to get the **ConnectionString** of the service.
1313

1414
```azurecli-interactive
15-
az webpubsub key show --name "<your-unique-resource-name>" --resource-group "myResourceGroup" --query primaryConnectionString
15+
$connection-string=(az webpubsub key show --name "<your-unique-resource-name>" --resource-group "myResourceGroup" --query primaryConnectionString)
1616
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
ms.topic: include
3+
ms.date: 12/22/2022
4+
author: cebundy
5+
ms.author: v-bcatherine
6+
manager: mcclean
7+
ms.custom: devx-track-azurecli
8+
---
9+
10+
## Prerequisites
11+
12+
- An Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
13+
- A Bash command shell. Use either a local shell or the Bash environment in Azure Cloud Shell.
14+
- If running on your local machine [Install the Azure CLI](/cli/azure/install-azure-cli).
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
ms.topic: include
3+
ms.date: 12/22/2022
4+
author: cebundy
5+
ms.author: v-bcatherine
6+
manager: mcclean
7+
ms.custom: devx-track-azurecli
8+
---
9+
10+
## Azure CLI setup for local development
11+
12+
Follow these steps to set up the Azure CLI and your project environment.
13+
14+
1. Upgrade to the latest version of the Azure CLI.
15+
16+
```bash
17+
az upgrade
18+
```
19+
20+
1. Install the Azure CLI extension for Web PubSub.
21+
22+
```bash
23+
az extension add --name webpubsub
24+
```
25+
26+
1. Sign in to the Azure CLI. Following the prompts, enter your Azure credentials.
27+
28+
```bash
29+
az login
30+
```
31+
32+
1. Create a resource group.
33+
34+
```bash
35+
az group create --name myResourceGroup --location eastus
36+
```

0 commit comments

Comments
 (0)