Skip to content

Commit 36261cb

Browse files
authored
Update rule-based-routing-custom-domain.md
1 parent efb35e8 commit 36261cb

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

articles/container-apps/rule-based-routing-custom-domain.md

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,50 +23,43 @@ HTTP route configurations support custom domains, allowing you to route traffic
2323

2424
## Custom domain configuration
2525

26-
Using the DNS provider that is hosting your domain, create DNS records for your custom domain.
27-
28-
- If you are using the root domain (for example, contoso.com), create the following DNS records:
29-
26+
Using the DNS provider hosting your domain, create the appropriate DNS records for your custom domain.
27+
- If you are using the root domain (for example, `contoso.com`), create the following DNS records:
3028
| Record type | Host | Value |
3129
|--|--|--|
3230
| A | `@` | The IP address of your Container Apps environment. |
3331
| TXT | `asuid` | The domain verification code. |
3432

35-
36-
- If you are using a subdomain (for example, www.contoso.com), create the following DNS records:
37-
33+
- If you are using a subdomain (for example, `www.contoso.com`), create the following DNS records:
3834
| Record type | Host | Value |
3935
|--|--|--|
40-
| A | The subdomain (for example, www) | The IP address of your Container Apps environment. |
41-
| TXT | `asuid.{subdomain}` (for example, asuid.www) | The domain verification code. |
42-
36+
| A | The subdomain (for example, `www`) | The IP address of your Container Apps environment. |
37+
| TXT | `asuid.{subdomain}` (for example, `asuid.www`) | The domain verification code. |
4338
> [!NOTE]
44-
> The IP address of your Container Apps environment and the domain verification code can be found in the [Custom DNS suffix settings](./environment-custom-dns-suffix.md#add-a-custom-dns-suffix-and-certificate) of the Container App Environment.
39+
> The IP address of your Container Apps environment and the domain verification code can be found in the [Custom DNS suffix settings](./environment-custom-dns-suffix.md#add-a-custom-dns-suffix-and-certificate) of your Container Apps environment.
4540
>
46-
> Don't bind the custom domain to the Container App Environment or to a Container App. A domain can only be bound to one app, route, or environment.
41+
> Don't bind the custom domain to your Container Apps environment or to a container app. Domains are only bound to one app, route, or environment.
4742
4843
## Route configuration
4944

50-
Update your Container Apps YAML file to include a `customDomains` section. Include a bindingType and certificateId, based on the following criteria:
51-
45+
Update your Container Apps YAML file to include a `customDomains` section. Include a `bindingType` and `certificateId`, based on the following criteria:
5246
| bindingType value | Description |
5347
|--|--|
54-
| Disabled | No certificate is provided. The domain will only be available over HTTP. HTTPS will not be available. |
55-
| Auto | A certificate is optional. If a managed certificate is already created for this domain, it will be added to the route automatically. Otherwise, the domain will initially only be available over HTTP. To create a managed certificate for this domain, create a new managed certificate after the route is created. After the certificate is created, it will automatically be added to the route. |
48+
| Disabled | No certificate is provided. The domain is only available over HTTP, and HTTPS is not available. |
49+
| Auto | A certificate is optional. If a managed certificate is already created for this domain, it is added to the route automatically. Otherwise, the domain is initially only available over HTTP. To create a managed certificate for this domain, create a new managed certificate after the route is created. After the certificate is created, it is automatically added to the route. |
5650
| SniEnabled | A certificate is required. |
57-
5851
| Certificate type | certificateId format |
5952
| -- | -- |
6053
| None | Leave blank |
61-
| Managed | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{ContainerAppEnvironmentName}/managedCertificates/{CertificateFriendlyName} |
62-
| Unmanaged | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{ContainerAppEnvironmentName}/certificates/{CertificateFriendlyName} |
54+
| Managed | `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{ContainerAppEnvironmentName}/managedCertificates/{CertificateFriendlyName}` |
55+
| Unmanaged | `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{ContainerAppEnvironmentName}/certificates/{CertificateFriendlyName}` |
6356

6457
> [!NOTE]
6558
> To add a certificate to your environment, use one of the following methods:
6659
> - To add a Container Apps managed certificate, use the [az containerapp env certificate create](/cli/azure/containerapp/env/certificate#az-containerapp-env-certificate-create) CLI command.
6760
> - To bring your own existing certificate, use the [az containerapp env certificate upload](/cli/azure/containerapp/env/certificate#az-containerapp-env-certificate-upload) CLI command.
6861
>
69-
> Don't bind the certificate to a Container App.
62+
> Don't bind the certificate to a container app.
7063
7164

7265
The following example demonstrates how to set up the route configuration.

0 commit comments

Comments
 (0)