Skip to content

Commit abce797

Browse files
committed
update migrate domain doc
1 parent 9da005e commit abce797

File tree

5 files changed

+93
-104
lines changed

5 files changed

+93
-104
lines changed

articles/app-service/app-service-web-tutorial-custom-domain.md

Lines changed: 29 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -64,70 +64,53 @@ The DNS record type you need to add with your domain provider depends on the dom
6464
6565
## 2. Create the DNS records
6666

67-
1. Sign in to the website of your domain provider.
67+
[!INCLUDE [Access DNS records with domain provider](../../includes/app-service-web-access-dns-records.md)]
6868

69-
You can use Azure DNS to manage DNS records for your domain and configure a custom DNS name for Azure App Service. For more information, see [Tutorial: Host your domain in Azure DNS](../dns/dns-delegate-domain-azure-dns.md).
69+
Select the type of record to create and follow the instructions. You can use either a [CNAME record](https://en.wikipedia.org/wiki/CNAME_record) or an [A record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A) to map a custom DNS name to App Service.
7070

71-
1. Find the page for managing DNS records.
71+
# [A](#tab/a)
7272

73-
Every domain provider has its own DNS records interface, so consult the provider's documentation. Look for areas of the site labeled **Domain Name**, **DNS**, or **Name Server Management**.
74-
75-
Often, you can find the DNS records page by viewing your account information and then looking for a link such as **My domains**. Go to that page, and then look for a link that's named something like **Zone file**, **DNS Records**, or **Advanced configuration**.
73+
- For a root domain like `contoso.com`, create two records according to the following table:
74+
75+
| Record type | Host | Value | Comments |
76+
| - | - | - |
77+
| A | `@` | The app's IP address shown in the **Add custom domain** dialog. | The domain mapping itself (`@` typically represents the root domain). |
78+
| TXT | `asuid` | The domain verification ID shown in the **Add custom domain** dialog. | For root domain, App Service accesses `asuid` TXT record to verify your ownership of the custom domain. |
7679

77-
The following screenshot is an example of a DNS records page:
80+
![Screenshot that shows a DNS records page.](./media/app-service-web-tutorial-custom-domain/a-record.png)
7881

79-
![Screenshot that shows an example DNS records page.](../../includes/media/app-service-web-access-dns-records-no-h/example-record-ui.png)
82+
- To map a subdomain like `www.contoso.com` with an A record instead of a recommended CNAME record, your A record and TXT record should look like the following table instead:
8083

81-
1. Select **Add** or the appropriate widget to create a record.
84+
|Record type|Host|Value| Comments |
85+
|--- |--- |--- |--- |
86+
|A|\<subdomain\> (for example, www)|IP address shown in the **Add custom domain** dialog.||
87+
|TXT|asuid.\<subdomain\> (for example, asuid.www)|The domain verification ID shown in the **Add custom domain** dialog.||
8288

83-
1. Select the type of record to create and follow the instructions. You can use either a [CNAME record](https://en.wikipedia.org/wiki/CNAME_record) or an [A record](https://en.wikipedia.org/wiki/List_of_DNS_record_types#A) to map a custom DNS name to App Service.
89+
![Screenshot that shows a DNS records subdomain page.](./media/app-service-web-tutorial-custom-domain/a-record-subdomain.png)
8490

85-
# [A](#tab/a)
91+
# [CNAME](#tab/cname)
8692

87-
- For a root domain like `contoso.com`, create two records according to the following table:
93+
For a subdomain like `www` in `www.contoso.com`, create two records according to the following table:
8894

8995
| Record type | Host | Value | Comments |
9096
| - | - | - |
91-
| A | `@` | The app's IP address shown in the **Add custom domain** dialog. | The domain mapping itself (`@` typically represents the root domain). |
92-
| TXT | `asuid` | The domain verification ID shown in the **Add custom domain** dialog. | For root domain, App Service accesses `asuid` TXT record to verify your ownership of the custom domain. |
93-
94-
![Screenshot that shows a DNS records page.](./media/app-service-web-tutorial-custom-domain/a-record.png)
95-
96-
- To map a subdomain like `www.contoso.com` with an A record instead of a recommended CNAME record, your A record and TXT record should look like the following table instead:
97-
98-
|Record type|Host|Value| Comments |
99-
|--- |--- |--- |--- |
100-
|A|\<subdomain\> (for example, www)|IP address shown in the **Add custom domain** dialog.||
101-
|TXT|asuid.\<subdomain\> (for example, asuid.www)|The domain verification ID shown in the **Add custom domain** dialog.||
102-
103-
![Screenshot that shows a DNS records subdomain page.](./media/app-service-web-tutorial-custom-domain/a-record-subdomain.png)
104-
105-
# [CNAME](#tab/cname)
106-
107-
For a subdomain like `www` in `www.contoso.com`, create two records according to the following table:
97+
| CNAME | `<subdomain>` (for example, `www`) | `<app-name>.azurewebsites.net` | The domain mapping itself. |
98+
| TXT | `asuid.<subdomain>` (for example, `asuid.www`) | The verification ID shown in the **Add custom domain** dialog. | App Service accesses the `asuid.<subdomain>` TXT record to verify your ownership of the custom domain. |
10899

109-
| Record type | Host | Value | Comments |
110-
| - | - | - |
111-
| CNAME | `<subdomain>` (for example, `www`) | `<app-name>.azurewebsites.net` | The domain mapping itself. |
112-
| TXT | `asuid.<subdomain>` (for example, `asuid.www`) | The verification ID shown in the **Add custom domain** dialog. | App Service accesses the `asuid.<subdomain>` TXT record to verify your ownership of the custom domain. |
100+
![Screenshot that shows the portal navigation to an Azure app.](./media/app-service-web-tutorial-custom-domain/cname-record.png)
113101

114-
![Screenshot that shows the portal navigation to an Azure app.](./media/app-service-web-tutorial-custom-domain/cname-record.png)
115-
116-
# [Wildcard (CNAME)](#tab/wildcard)
102+
# [Wildcard (CNAME)](#tab/wildcard)
117103

118-
For a wildcard name like `*` in `*.contoso.com`, create two records according to the following table:
104+
For a wildcard name like `*` in `*.contoso.com`, create two records according to the following table:
119105

120-
| Record type | Host | Value | Comments |
121-
| - | - | - |
122-
| CNAME | `*` | `<app-name>.azurewebsites.net` | The domain mapping itself. |
123-
| TXT | `asuid` | The domain verification ID shown in the **Add custom domain** dialog. | App Service accesses the `asuid` TXT record to verify your ownership of the custom domain. |
106+
| Record type | Host | Value | Comments |
107+
| - | - | - |
108+
| CNAME | `*` | `<app-name>.azurewebsites.net` | The domain mapping itself. |
109+
| TXT | `asuid` | The domain verification ID shown in the **Add custom domain** dialog. | App Service accesses the `asuid` TXT record to verify your ownership of the custom domain. |
124110

125-
![Screenshot that shows the navigation to an Azure app.](./media/app-service-web-tutorial-custom-domain/cname-record-wildcard.png)
126-
127-
-----
111+
![Screenshot that shows the navigation to an Azure app.](./media/app-service-web-tutorial-custom-domain/cname-record-wildcard.png)
128112

129-
> [!NOTE]
130-
> For certain providers, such as GoDaddy, changes to DNS records don't become effective until you select a separate **Save Changes** link.
113+
-----
131114

132115
<a name="a" aria-hidden="true"></a>
133116

articles/app-service/manage-custom-dns-migrate-domain.md

Lines changed: 56 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tags: top-support-issue
55

66
ms.assetid: 10da5b8a-1823-41a3-a2ff-a0717c2b5c2d
77
ms.topic: article
8-
ms.date: 08/25/2020
8+
ms.date: 01/13/2023
99
ms.custom: seodec18
1010

1111
---
@@ -21,90 +21,94 @@ If you're not worried about downtime in DNS resolution, see [Map an existing cus
2121

2222
To complete this how-to, [make sure that your App Service app is not in FREE tier](manage-scale-up.md#scale-up-your-pricing-tier).
2323

24-
## Bind the domain name preemptively
24+
## 1. Get a domain verification ID
2525

2626
When you bind a custom domain preemptively, you accomplish both of the following before making any changes to
2727
your existing DNS records:
2828

29-
- Verify domain ownership
30-
- Enable the domain name for your app
29+
- Verify domain ownership by adding a domain verification ID with your domain provider.
30+
- Enable the domain name in your App service app.
3131

3232
When you finally migrate your custom DNS name from the old site to the App Service app, there will be no downtime in DNS resolution.
3333

34-
[!INCLUDE [Access DNS records with domain provider](../../includes/app-service-web-access-dns-records.md)]
34+
1. In the [Azure portal](https://portal.azure.com), open the management page of the App Service app.
3535

36-
### Get domain verification ID
36+
1. In the left pane of your app page, select **Custom domains**.
37+
1. Copy the ID in the **Custom Domain Verification ID** box in the **Custom Domains** page for the next steps.
3738

38-
Get the domain verification ID for you app by following the steps at [Configure a custom domain](app-service-web-tutorial-custom-domain.md#1-configure-a-custom-domain).
39+
:::image type="content" source="./media/manage-custom-dns-migrate-domain/get-domain-verification-id.png" alt-text="Screenshot that shows the ID in the Custom Domain Verification ID box.":::
3940

40-
### Create domain verification record
41+
## 2. Create the DNS records
4142

42-
To verify domain ownership, add a TXT record for domain verification. The hostname for the TXT record depends on the type of DNS record type you want to map. See the following table (`@` typically represents the root domain):
43+
[!INCLUDE [Access DNS records with domain provider](../../includes/app-service-web-access-dns-records.md)]
4344

44-
| DNS record example | TXT Host | TXT Value |
45-
| - | - | - |
46-
| \@ (root) | _asuid_ | Domain verification ID shown in the **Add custom domain** dialog. |
47-
| www (sub) | _asuid.www_ | Domain verification ID shown in the **Add custom domain** dialog. |
48-
| \* (wildcard) | _asuid_ | Domain verification ID shown in the **Add custom domain** dialog. |
45+
Add a TXT record for domain verification. The hostname for the TXT record depends on the type of DNS record type you want to map. See the following table (`@` typically represents the root domain):
4946

50-
In your DNS records page, note the record type of the DNS name you want to migrate. App Service supports mappings from CNAME and A records.
47+
| DNS record example | TXT Host | TXT Value |
48+
| - | - | - |
49+
| \@ (root) | _asuid_ | Domain verification ID shown in the **Custom domains** management page. |
50+
| www (sub) | _asuid.www_ | Domain verification ID shown in the **Custom domains** management page. |
51+
| \* (wildcard) | _asuid_ | Domain verification ID shown in the **Custom domains** management page. |
52+
53+
> [!NOTE]
54+
> Wildcard `*` records won't validate subdomains with an existing CNAME's record. You may need to explicitly create a TXT record for each subdomain.
55+
56+
## 3. Enable the domain for your app
5157

52-
> [!NOTE]
53-
> Wildcard `*` records won't validate subdomains with an existing CNAME's record. You may need to explicitly create a TXT record for each subdomain.
58+
1. Back in the **Custom domains** page, select **Add custom domain**.
5459

55-
### Enable the domain for your app
60+
:::image type="content" source="./media/app-service-web-tutorial-custom-domain/add-custom-domain.png" alt-text="A screenshot showing how to open the Add custom domain dialog.":::
5661

57-
1. In the [Azure portal](https://portal.azure.com), in the left navigation of the app page, select **Custom domains**.
62+
1. For **Domain provider**, select **All other domain services** to configure a third-party domain.
5863

59-
![Custom domain menu](./media/app-service-web-tutorial-custom-domain/custom-domain-menu.png)
64+
1. For **TLS/SSL certificate**, select **App Service Managed Certificate** if your app is in **Basic** tier or higher. If you want to remain in **Shared** tier, select **Add certificate later**.
6065

61-
1. In the **Custom domains** page, select **Add custom domain**.
66+
1. For **TLS/SSL type**, select the binding type you want.
6267

63-
![Add host name](./media/app-service-web-tutorial-custom-domain/add-host-name-cname.png)
68+
[!INCLUDE [Certificate binding types](../../includes/app-service-ssl-binding-types.md)]
6469

65-
1. Type the fully qualified domain name you want to migrate, that corresponds to the TXT record you create, such as `contoso.com`, `www.contoso.com`, or `*.contoso.com`. Select **Validate**.
70+
1. Type the fully qualified domain name you want to migrate, that corresponds to the TXT record you created, such as `contoso.com`, `www.contoso.com`, or `*.contoso.com`.
6671

67-
The **Add custom domain** button is activated.
72+
:::image type="content" source="./media/app-service-web-tutorial-custom-domain/add-custom-domain.png" alt-text="Screenshot that shows how to open the Add custom domain dialog.":::
6873

69-
1. Make sure that **Hostname record type** is set to the DNS record type you want to migrate. Select **Add hostname**.
74+
1. Select **Validate**. Although the dialog shows two records you need for the custom domain to be functional for your app, the validation passes with just the domain verification ID (the TXT record).
7075

71-
![Add DNS name to the app](./media/app-service-web-tutorial-custom-domain/validate-domain-name-cname.png)
76+
:::image type="content" source="./media/app-service-web-tutorial-custom-domain/configure-custom-domain-validate.png" alt-text="A screenshot showing how to validate your DNS record settings in the Add a custom domain dialog.":::
7277

73-
It might take some time for the new hostname to be reflected in the app's **Custom domains** page. Try refreshing the browser to update the data.
78+
1. If the **Domain validation** section shows green check marks, then you've configured the domain verification ID correctly. Select **Add**. If it shows any red X, fix any errors in your domain provider's website.
7479

75-
![CNAME record added](./media/app-service-web-tutorial-custom-domain/cname-record-added.png)
80+
:::image type="content" source="./media/app-service-web-tutorial-custom-domain/configure-custom-domain-add.png" alt-text="A screenshot showing the Add button activated after validation.":::
7681

77-
Your custom DNS name is now enabled in your Azure app.
82+
1. You should see the custom domain added to the list. You may also see a red X with **No binding**.
7883

79-
## Remap the active DNS name
84+
If you selected **App Service Managed Certificate** earlier, wait a few minutes for App Service to create the managed certificate for your custom domain. When the process is complete, the red X becomes a green check mark with **Secured**. If you selected **Add certificate later**, this red X will remain until you [add a private certificate for the domain](configure-ssl-certificate.md) and [configure the binding](configure-ssl-bindings.md).
8085

81-
The only thing left to do is remapping your active DNS record to point to App Service. Right now, it still points to your old site.
86+
:::image type="content" source="./media/app-service-web-tutorial-custom-domain/add-custom-domain-complete.png" alt-text="A screenshot showing the custom domains page with the new secured custom domain.":::
8287

88+
> [!NOTE]
89+
> Unless you configure a certificate binding for your custom domain, Any HTTPS request from a browser to the domain will receive an error or warning, depending on the browser.
90+
8391
<a name="info"></a>
8492

85-
### Copy the app's IP address (A record only)
86-
87-
If you are remapping a CNAME record, skip this section.
88-
89-
To remap an A record, you need the App Service app's external IP address, which is shown in the **Custom domains** page.
93+
## 4. Remap the active DNS name
9094

91-
In the **Custom domains** page, copy the app's IP address.
92-
93-
![Portal navigation to Azure app](./media/app-service-web-tutorial-custom-domain/mapping-information.png)
94-
95-
### Update the DNS record
95+
The only thing left to do is remapping your active DNS record to point to App Service. Right now, it still points to your old site.
9696

97-
Back in the DNS records page of your domain provider, select the DNS record to remap.
97+
1. (A record only) You need the App Service app's external IP address. In the **Custom domains** page, copy the app's IP address.
9898

99-
For the `contoso.com` root domain example, remap the A or CNAME record like the examples in the following table:
99+
:::image type="content" source="./media/app-service-web-tutorial-custom-domain/mapping-information.png" alt-text="A screenshot showing how to copy the App Service app's exterinal IP address.":::
100100

101-
| FQDN example | Record type | Host | Value |
102-
| - | - | - | - |
103-
| contoso.com (root) | A | `@` | IP address from [Copy the app's IP address](#info) |
104-
| www\.contoso.com (sub) | CNAME | `www` | _&lt;appname>.azurewebsites.net_ |
105-
| \*.contoso.com (wildcard) | CNAME | _\*_ | _&lt;appname>.azurewebsites.net_ |
101+
1. Back in the DNS records page of your domain provider, select the DNS record to remap.
106102

107-
Save your settings.
103+
1. Remap the A or CNAME record like the examples in the following table:
104+
105+
| FQDN example | Record type | Host | Value |
106+
| - | - | - | - |
107+
| contoso.com (root) | A | `@` | IP address from [Copy the app's IP address](#info) |
108+
| www\.contoso.com (sub) | CNAME | `www` | _&lt;appname>.azurewebsites.net_ |
109+
| \*.contoso.com (wildcard) | CNAME | _\*_ | _&lt;appname>.azurewebsites.net_ |
110+
111+
1. Save your settings.
108112

109113
DNS queries should start resolving to your App Service app immediately after DNS propagation happens.
110114

@@ -118,5 +122,8 @@ You can find the deployment unit for your app by looking at the domain name of t
118122

119123
Learn how to bind a custom TLS/SSL certificate to App Service.
120124

125+
> [!div class="nextstepaction"]
126+
> [Purchase an App Service domain](manage-custom-dns-buy-domain.md).
127+
121128
> [!div class="nextstepaction"]
122129
> [Secure a custom DNS name with a TLS binding in Azure App Service](configure-ssl-bindings.md)
18.9 KB
Loading
78.8 KB
Loading

includes/app-service-web-access-dns-records-no-h.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,25 @@
22
author: cephalin
33
ms.service: app-service
44
ms.topic: include
5-
ms.date: 11/03/2016
5+
ms.date: 01/16/2023
66
ms.author: cephalin
77
ms.subservice: web-apps
88
---
9-
> [!NOTE]
10-
> You can use Azure DNS to configure a custom DNS name for Azure App Service. For more information, see [Use Azure DNS to provide custom domain settings for an Azure service](../articles/dns/dns-custom-domain.md#app-service-web-apps).
11-
>
12-
>
13-
149
1. Sign in to the website of your domain provider.
1510

16-
1. Find the page for managing DNS records. Every domain provider has its own DNS records interface, so consult the provider's documentation. Look for areas of the site labeled **Domain Name**, **DNS**, or **Name Server Management**.
11+
You can use Azure DNS to manage DNS records for your domain and configure a custom DNS name for Azure App Service. For more information, see [Tutorial: Host your domain in Azure DNS](../dns/dns-delegate-domain-azure-dns.md).
12+
13+
1. Find the page for managing DNS records.
1714

18-
Often, you can find the DNS records page by viewing your account information and then looking for a link such as **My domains**. Go to that page, and then look for a link that's named something like **Zone file**, **DNS Records**, or **Advanced configuration**.
15+
Every domain provider has its own DNS records interface, so consult the provider's documentation. Look for areas of the site labeled **Domain Name**, **DNS**, or **Name Server Management**.
16+
17+
Often, you can find the DNS records page by viewing your account information and then looking for a link such as **My domains**. Go to that page, and then look for a link that's named something like **Zone file**, **DNS Records**, or **Advanced configuration**.
1918

2019
The following screenshot is an example of a DNS records page:
2120

2221
![Screenshot that shows an example DNS records page.](./media/app-service-web-access-dns-records-no-h/example-record-ui.png)
2322

24-
1. In the example screenshot, select **Add** to create a record. Some providers have different links to add different record types. Again, consult the provider's documentation.
23+
1. Select **Add** or the appropriate widget to create a record.
2524

2625
> [!NOTE]
2726
> For certain providers, such as GoDaddy, changes to DNS records don't become effective until you select a separate **Save Changes** link.

0 commit comments

Comments
 (0)