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/howto-custom-domain.md
+31-11Lines changed: 31 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,29 +5,42 @@ description: How to configure a custom domain for Azure Web PubSub Service
5
5
author: ArchangelSDY
6
6
ms.service: azure-web-pubsub
7
7
ms.topic: how-to
8
-
ms.date: 07/07/2022
8
+
ms.date: 03/25/2023
9
9
ms.author: dayshen
10
10
---
11
11
12
12
# Configure a custom domain for Azure Web PubSub Service
13
13
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.
15
15
16
16
## Prerequisites
17
17
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.
20
22
21
23
## Add a custom certificate
22
24
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.
24
26
25
27
### Step 1: Grant your Azure Web PubSub Service resource access to Key Vault
26
28
27
29
Azure Web PubSub Service uses Managed Identity to access your Key Vault. In order to authorize, it needs to be granted permissions.
28
30
29
31
1. In the Azure portal, go to your Azure Web PubSub Service resource.
30
32
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" :::
31
44
1. Turn on either **System assigned** or **User assigned** identity. Click **Save**.
32
45
33
46
:::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:
41
54
:::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" :::
42
55
43
56
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**.
46
64
47
65
:::image type="content" alt-text="Screenshot of permissions selection in Key Vault." source="media\howto-custom-domain\portal-key-vault-permissions.png" :::
48
66
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**.
50
69
51
70
:::image type="content" alt-text="Screenshot of principal selection in Key Vault." source="media\howto-custom-domain\portal-key-vault-principal.png" :::
0 commit comments