Skip to content

Commit f762c41

Browse files
committed
update how-to articles
1 parent 640f23f commit f762c41

File tree

2 files changed

+90
-60
lines changed

2 files changed

+90
-60
lines changed

articles/azure-web-pubsub/howto-custom-domain.md

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,42 @@ description: How to configure a custom domain for Azure Web PubSub Service
55
author: ArchangelSDY
66
ms.service: azure-web-pubsub
77
ms.topic: how-to
8-
ms.date: 07/07/2022
8+
ms.date: 03/25/2023
99
ms.author: dayshen
1010
---
1111

1212
# Configure a custom domain for Azure Web PubSub Service
1313

14-
In addition to the default domain provided Azure Web PubSub Service, you can also add custom domains.
14+
In addition to the default domain provided by the Azure Web PubSub Service, you can also add a custom domains. A custom domain is a domain name that you own and manage. You can use a custom domain to access your Azure Web PubSub Service resource. For example, you can use `contoso.example.com` instead of `contoso.webpubsub.azure.com` to access your Azure Web PubSub Service resource.
1515

1616
## Prerequisites
1717

18-
* Resource must be Premium tier
19-
* A custom certificate matching custom domain is stored in Azure Key Vault
18+
* An Azure account with an active subscription. If you don't have an Azure account, you can [create an account for free](https://azure.microsoft.com/free/).
19+
* An Azure Web PubSub service (must be Premium tier).
20+
* An Azure Key Vault resource.
21+
* A custom certificate matching custom domain that is stored in Azure Key Vault.
2022

2123
## Add a custom certificate
2224

23-
Before you can add a custom domain, you need add a matching custom certificate first. A custom certificate is a sub resource of your Azure Web PubSub Service. It references a certificate in your Azure Key Vault. For security and compliance reasons, Azure Web PubSub Service doesn't permanently store your certificate. Instead it fetches it from your Key Vault on the fly and keeps it in memory.
25+
Before you can add a custom domain, you need to add a matching custom certificate first. A custom certificate is a resource of your Azure Web PubSub Service. It references a certificate in your Azure Key Vault. For security and compliance reasons, Azure Web PubSub Service doesn't permanently store your certificate. Instead it fetches it from your Key Vault on the fly and keeps it in memory.
2426

2527
### Step 1: Grant your Azure Web PubSub Service resource access to Key Vault
2628

2729
Azure Web PubSub Service uses Managed Identity to access your Key Vault. In order to authorize, it needs to be granted permissions.
2830

2931
1. In the Azure portal, go to your Azure Web PubSub Service resource.
3032
1. In the menu pane, select **Identity**.
33+
1. You can select **System assigned** or **User assigned** identity. If you want to use **User assigned** identity, you need to create one first.
34+
1. To add a System assigned identity
35+
1. Select **On**.
36+
1. Select **Yes** to confirm.
37+
1. Select **Save**.
38+
1. To add a User assigned identity;
39+
1. Click **Add user assigned managed identity**.
40+
1. Select an existing identity.
41+
1. Select **Add**.
42+
43+
:::image type="content" alt-text="Screenshot of enabling managed identity." source="media\howto-custom-domain\portal-identity.png" :::
3144
1. Turn on either **System assigned** or **User assigned** identity. Click **Save**.
3245

3346
:::image type="content" alt-text="Screenshot of enabling managed identity." source="media\howto-custom-domain\portal-identity.png" :::
@@ -41,17 +54,23 @@ If you're using Key Vault built-in access policy as Key Vault permission model:
4154
:::image type="content" alt-text="Screenshot of built-in access policy selected as Key Vault permission model." source="media\howto-custom-domain\portal-key-vault-perm-model-access-policy.png" :::
4255

4356
1. Go to your Key Vault resource.
44-
1. In the menu pane, select **Access configuration**. Click **Go to access policies**.
45-
1. Click **Create**. Select **Secret Get** permission and **Certificate Get** permission. Click **Next**.
57+
1. In the menu pane, select **Access configuration**.
58+
1. Select **Vault access policy**.
59+
1. Select **Go to access policies**.
60+
1. Select **Create**.
61+
1. Select **Secret Get** permission .
62+
1. Select **Certificate Get** permission.
63+
1. Select **Next**.
4664

4765
:::image type="content" alt-text="Screenshot of permissions selection in Key Vault." source="media\howto-custom-domain\portal-key-vault-permissions.png" :::
4866

49-
1. Search for the Azure Web PubSub Service resource name or the user assigned identity name. Click **Next**.
67+
1. Search for the Azure Web PubSub Service resource name.
68+
1. Select **Next**.
5069

5170
:::image type="content" alt-text="Screenshot of principal selection in Key Vault." source="media\howto-custom-domain\portal-key-vault-principal.png" :::
5271

53-
1. Skip **Application (optional)**. Click **Next**.
54-
1. In **Review + create**, click **Create**.
72+
1. Select **Next** on the **Application** tab.
73+
1. Select **Create**.
5574

5675
#### [Azure role-based access control](#tab/azure-rbac)
5776

@@ -60,7 +79,8 @@ If you're using Azure role-based access control as Key Vault permission model:
6079
:::image type="content" alt-text="Screenshot of Azure RBAC selected as Key Vault permission model." source="media\howto-custom-domain\portal-key-vault-perm-model-rbac.png" :::
6180

6281
1. Go to your Key Vault resource.
63-
1. In the menu pane, select **Access control (IAM)**.
82+
1. Select **Access configuration** from the menu.
83+
1. Select **go to access control (IAM)**.
6484
1. Click **Add**. Select **Add role assignment**.
6585

6686
:::image type="content" alt-text="Screenshot of Key Vault IAM." source="media\howto-custom-domain\portal-key-vault-iam.png" :::

0 commit comments

Comments
 (0)