Skip to content

Commit 2d35e38

Browse files
authored
Merge pull request #227534 from kevinguo-ed/patch-1
Update toc.yml
2 parents 32dac1c + 19cedae commit 2d35e38

18 files changed

+1127
-44
lines changed
Lines changed: 124 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,139 @@
11
---
2-
title: Quickstart - Create a Web PubSub instance from Azure portal
3-
description: Quickstart showing how to create a Web PubSub instance from Azure portal
4-
author: yjin81
5-
ms.author: yajin1
2+
title: Create an Azure Web PubSub resource
3+
titleSuffix: Azure Web PubSub
4+
description: Quickstart showing how to create a Web PubSub resource from Azure portal, using Azure CLI and a Bicep template
5+
author: kevinguo-ed
6+
ms.author: kevinguo
67
ms.service: azure-web-pubsub
78
ms.topic: quickstart
8-
ms.date: 11/08/2021
9+
ms.date: 03/13/2023
910
ms.custom: mode-ui
11+
zone_pivot_groups: azure-web-pubsub-create-resource-methods
1012
---
13+
# Create a Web PubSub resource
1114

12-
# Quickstart: Create a Web PubSub instance from Azure portal
15+
## Prerequisites
16+
> [!div class="checklist"]
17+
> * An Azure account with an active subscription. [Create a free Azure account](https://azure.microsoft.com/free/), if don't have one already.
1318
14-
This quickstart shows you how to create Azure Web PubSub instance from Azure portal.
19+
> [!TIP]
20+
> Web PubSub includes a generous **free tier** that can be used for testing and production purposes.
21+
22+
23+
::: zone pivot="method-azure-portal"
24+
## Create a resource from Azure portal
1525

16-
[!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
26+
1. Select the New button found on the upper left-hand corner of the Azure portal. In the New screen, type **Web PubSub** in the search box and press enter.
1727

18-
[!INCLUDE [create-instance-portal](includes/create-instance-portal.md)]
28+
:::image type="content" source="./media/create-instance-portal/search-web-pubsub-in-portal.png" alt-text="Screenshot of searching the Azure Web PubSub in portal.":::
1929

20-
## Try the newly created instance
30+
2. Select **Web PubSub** from the search results, then select **Create**.
2131

22-
> [!div class="nextstepaction"]
23-
> [Try the instance from the browser](./quickstart-live-demo.md#try-the-instance-with-an-online-demo)
32+
3. Enter the following settings.
2433

25-
> [!div class="nextstepaction"]
26-
> [Try the instance with Azure CLI](./quickstart-cli-try.md#play-with-the-instance)
34+
| Setting | Suggested value | Description |
35+
| ------------ | ------- | -------------------------------------------------- |
36+
| **Resource name** | Globally unique name | The globally unique Name that identifies your new Web PubSub service instance. Valid characters are `a-z`, `A-Z`, `0-9`, and `-`. |
37+
| **Subscription** | Your subscription | The Azure subscription under which this new Web PubSub service instance is created. |
38+
| **[Resource Group]** | myResourceGroup | Name for the new resource group in which to create your Web PubSub service instance. |
39+
| **Location** | West US | Choose a [region](https://azure.microsoft.com/regions/) near you. |
40+
| **Pricing tier** | Free | You can first try Azure Web PubSub service for free. Learn more details about [Azure Web PubSub service pricing tiers](https://azure.microsoft.com/pricing/details/web-pubsub/) |
41+
| **Unit count** | - | Unit count specifies how many connections your Web PubSub service instance can accept. Each unit supports 1,000 concurrent connections at most. It is only configurable in the Standard tier. |
42+
43+
:::image type="content" source="./media/howto-develop-create-instance/create-web-pubsub-instance-in-portal.png" alt-text="Screenshot of creating the Azure Web PubSub instance in portal.":::
44+
45+
4. Select **Create** to provision your Web PubSub resource.
46+
::: zone-end
47+
48+
49+
::: zone pivot="method-azure-cli"
50+
## Create a resource using Azure CLI
51+
52+
The [Azure CLI](/cli/azure) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.
53+
54+
> [!IMPORTANT]
55+
> This quickstart requires Azure CLI of version 2.22.0 or higher.
56+
57+
## Create a resource group
58+
59+
[!INCLUDE [Create a resource group](includes/cli-rg-creation.md)]
60+
61+
## Create a resource
62+
63+
[!INCLUDE [Create a Web PubSub instance](includes/cli-awps-creation.md)]
64+
::: zone-end
65+
66+
67+
::: zone pivot="method-bicep"
68+
## Create a resource using Bicep template
69+
70+
[!INCLUDE [About Bicep](../../includes/resource-manager-quickstart-bicep-introduction.md)]
71+
72+
## Review the Bicep file
73+
74+
The template used in this quickstart is from [Azure Quickstart Templates](/samples/azure/azure-quickstart-templates/azure-web-pubsub/).
75+
76+
:::code language="bicep" source="~/quickstart-templates/quickstarts/microsoft.web/azure-web-pubsub/main.bicep":::
77+
78+
## Deploy the Bicep file
2779

28-
## Next steps
80+
1. Save the Bicep file as **main.bicep** to your local computer.
81+
1. Deploy the Bicep file using either Azure CLI or Azure PowerShell.
2982

30-
In real-world applications, you can use SDKs in various languages build your own application. We also provide Function extensions for you to build serverless applications easily.
83+
# [CLI](#tab/CLI)
3184

32-
[!INCLUDE [next step](includes/include-next-step.md)]
85+
```azurecli
86+
az group create --name exampleRG --location eastus
87+
az deployment group create --resource-group exampleRG --template-file main.bicep
88+
```
89+
90+
# [PowerShell](#tab/PowerShell)
91+
92+
```azurepowershell
93+
New-AzResourceGroup -Name exampleRG -Location eastus
94+
New-AzResourceGroupDeployment -ResourceGroupName exampleRG -TemplateFile ./main.bicep
95+
```
96+
97+
---
98+
99+
When the deployment finishes, you should see a message indicating the deployment succeeded.
100+
101+
## Review deployed resources
102+
103+
Use the Azure portal, Azure CLI, or Azure PowerShell to list the deployed resources in the resource group.
104+
105+
# [CLI](#tab/CLI)
106+
107+
```azurecli-interactive
108+
az resource list --resource-group exampleRG
109+
```
110+
111+
# [PowerShell](#tab/PowerShell)
112+
113+
```azurepowershell-interactive
114+
Get-AzResource -ResourceGroupName exampleRG
115+
```
116+
117+
---
118+
## Clean up resources
119+
120+
When no longer needed, use the Azure portal, Azure CLI, or Azure PowerShell to delete the resource group and its resources.
121+
122+
# [CLI](#tab/CLI)
123+
124+
```azurecli-interactive
125+
az group delete --name exampleRG
126+
```
127+
128+
# [PowerShell](#tab/PowerShell)
129+
130+
```azurepowershell-interactive
131+
Remove-AzResourceGroup -Name exampleRG
132+
```
133+
::: zone-end
134+
135+
## Next step
136+
Now that you have created a resource, you are ready to put it to use.
137+
Next, you will learn how to subscribe and publish messages among your clients.
138+
> [!div class="nextstepaction"]
139+
> [PubSub among clients](quickstarts-pubsub-among-clients.md)
160 KB
Loading
68.7 KB
Loading
106 KB
Loading
66.9 KB
Loading
57 KB
Loading
187 KB
Loading
2.81 MB
Loading
5.48 MB
Loading
59.7 KB
Loading

0 commit comments

Comments
 (0)