Skip to content

Commit e696892

Browse files
authored
Merge pull request #106758 from cephalin/issue36547
rewrite Traffic Manager integrate doc
2 parents 6bc66fc + 0157704 commit e696892

20 files changed

+141
-221
lines changed

.openpublishing.redirection.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8472,7 +8472,12 @@
84728472
},
84738473
{
84748474
"source_path": "articles/app-service-web/web-sites-traffic-manager-custom-domain-name.md",
8475-
"redirect_url": "/azure/app-service/web-sites-traffic-manager-custom-domain-name",
8475+
"redirect_url": "/azure/app-service/configure-domain-traffic-manager",
8476+
"redirect_document_id": false
8477+
},
8478+
{
8479+
"source_path": "articles/app-service/web-sites-traffic-manager-custom-domain-name.md",
8480+
"redirect_url": "/azure/app-service/configure-domain-traffic-manager",
84768481
"redirect_document_id": false
84778482
},
84788483
{

articles/app-service-mobile/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
- name: Map your own custom domain
167167
href: ../app-service/app-service-web-tutorial-custom-domain.md?toc=%2fazure%2fapp-service-mobile%2ftoc.json
168168
- name: Custom domains with Traffic Manager
169-
href: ../app-service/web-sites-traffic-manager-custom-domain-name.md?toc=%2fazure%2fapp-service-mobile%2ftoc.json
169+
href: ../app-service/configure-domain-traffic-manager.md?toc=%2fazure%2fapp-service-mobile%2ftoc.json
170170
- name: Clone an existing app
171171
href: ../app-service/app-service-web-app-cloning.md?toc=%2fazure%2fapp-service-mobile%2ftoc.json
172172
- name: Azure Virtual Network
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
---
2+
title: Configure DNS names with Traffic Manager
3+
description: Learn how to configure a custom domain for an Azure App Service app that integrates with Traffic Manager for load balancing.
4+
ms.assetid: 0f96c0e7-0901-489b-a95a-e3b66ca0a1c2
5+
ms.topic: article
6+
ms.date: 03/05/2020
7+
ms.custom: seodec18
8+
9+
---
10+
# Configure a custom domain name in Azure App Service with Traffic Manager integration
11+
12+
[!INCLUDE [web-selector](../../includes/websites-custom-domain-selector.md)]
13+
14+
> [!NOTE]
15+
> For Cloud Services, see
16+
[Configuring a custom domain name for an Azure cloud service](../cloud-services/cloud-services-custom-domain-name.md).
17+
18+
When you use [Azure Traffic Manager](/azure/traffic-manager/) to load balance traffic to [Azure App Service](overview.md), the App Service app can be accessed using **\<traffic-manager-endpoint>.trafficmanager.net**. You can assign a custom domain name, such as www\.contoso.com, with your App Service app in order to provide a more recognizable domain name for your users.
19+
20+
This article shows you how to configure a custom domain name with an App Service app that's integrated with [Traffic Manager](../traffic-manager/traffic-manager-overview.md).
21+
22+
> [!NOTE]
23+
> Only [CNAME](https://en.wikipedia.org/wiki/CNAME_record) records are supported when you configure a domain name using the Traffic Manager endpoint. Because A records are not supported, a root domain mapping, such as contoso.com is also not supported.
24+
>
25+
26+
## Prepare the app
27+
28+
To map a custom DNS name to an app that's integrated with Azure Traffic Manager, the web app's [App Service plan](https://azure.microsoft.com/pricing/details/app-service/) must be in **Standard** tier or higher. In this step, you make sure that the App Service app is in the supported pricing tier.
29+
30+
### Check the pricing tier
31+
32+
In the [Azure portal](https://portal.azure.com), search for and select **App Services**.
33+
34+
On the **App Services** page, select the name of your Azure app.
35+
36+
![Portal navigation to Azure app](./media/app-service-web-tutorial-custom-domain/select-app.png)
37+
38+
In the left navigation of the app page, select **Scale up (App Service plan)**.
39+
40+
![Scale-up menu](./media/app-service-web-tutorial-custom-domain/scale-up-menu.png)
41+
42+
The app's current tier is highlighted by a blue border. Check to make sure that the app is in **Standard** tier or above (any tier in the **Production** or **Isolated** category). If yes, close the **Scale up** page and skip to [Create the CNAME mapping](#create-the-cname-mapping).
43+
44+
![Check pricing tier](./media/app-service-web-tutorial-custom-domain/check-pricing-tier.png)
45+
46+
### Scale up the App Service plan
47+
48+
If you need to scale up your app, select any of the pricing tiers in the **Production** category. For additional options, click **See additional options**.
49+
50+
Click **Apply**.
51+
52+
## Create Traffic Manager endpoint
53+
54+
Following the steps at [Add or Delete Endpoints](../traffic-manager/traffic-manager-endpoints.md), add your App Service app as an endpoint in your Traffic Manager profile.
55+
56+
Once your App Service app is in a supported pricing tier, it shows up in the list of available App Service targets when you add the endpoint. If your app isn't listed, [verify the pricing tier of your app](#prepare-the-app).
57+
58+
## Create the CNAME mapping
59+
> [!NOTE]
60+
> To configure an [App Service domain that you purchased](manage-custom-dns-buy-domain.md), skip this section and go to [Enable custom domain](#enable-custom-domain).
61+
>
62+
63+
[!INCLUDE [Access DNS records with domain provider](../../includes/app-service-web-access-dns-records-no-h.md)]
64+
65+
While the specifics of each domain provider vary, you map *from* the custom domain name (such as **contoso.com**) *to* the Traffic Manager domain name (**contoso.trafficmanager.net**) that's integrated with your app.
66+
67+
> [!NOTE]
68+
> If a record is already in use and you need to preemptively bind your apps to it, you can create an additional CNAME record. For example, to preemptively bind **www\.contoso.com** to your app, create a CNAME record from **awverify.www** to **contoso.trafficmanager.net**. You can then add "www\.contoso.com" to your app without the need to change the "www" CNAME record. For more information, see [Migrate an active DNS name to Azure App Service](manage-custom-dns-migrate-domain.md).
69+
70+
Once you have finished adding or modifying DNS records at your domain provider, save the changes.
71+
72+
## Enable custom domain
73+
After the records for your domain name have propagated, use the browser to verify that your custom domain name resolves to your App Service app.
74+
75+
> [!NOTE]
76+
> It can take some time for your CNAME to propagate through the DNS system. You can use a service such as <a href="https://www.digwebinterface.com/">https://www.digwebinterface.com/</a> to verify that the CNAME is available.
77+
>
78+
>
79+
80+
1. Once domain resolution succeeds, to back to your app page in the [Azure Portal](https://portal.azure.com)
81+
2. From the left navigation, select **Custom domains** > **Add hostname**.
82+
4. Type the custom domain name that you mapped earlier and select **Validate**.
83+
5. Make sure that **Hostname record type** is set to **CNAME (www\.example.com or any subdomain)**.
84+
85+
6. Since the App Service app is now integrated with a Traffic Manager endpoint, you should see the Traffic Manager domain name under **CNAME configuration**. Select it and click **Add custom domain**.
86+
87+
![Add DNS name to the app](./media/configure-domain-traffic-manager/enable-traffic-manager-domain.png)
88+
89+
## Next steps
90+
91+
> [!div class="nextstepaction"]
92+
> [Secure a custom DNS name with an SSL binding in Azure App Service](configure-ssl-bindings.md)

articles/app-service/containers/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ landingContent:
124124
- linkListType: how-to-guide
125125
links:
126126
- text: Load balance with Traffic Manager
127-
url: ../web-sites-traffic-manager-custom-domain-name.md?toc=%2fazure%2fapp-service%2fcontainers%2ftoc.json
127+
url: ../configure-domain-traffic-manager.md?toc=%2fazure%2fapp-service%2fcontainers%2ftoc.json
128128
- text: Back up your app to Storage Blobs
129129
url: ../manage-backup.md?toc=%2fazure%2fapp-service%2fcontainers%2ftoc.json
130130
- title: More resources

articles/app-service/containers/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
- name: Buy domain
129129
href: ../manage-custom-dns-buy-domain.md?toc=%2fazure%2fapp-service%2fcontainers%2ftoc.json
130130
- name: Map domains with Traffic Manager
131-
href: ../web-sites-traffic-manager-custom-domain-name.md?toc=%2fazure%2fapp-service%2fcontainers%2ftoc.json
131+
href: ../configure-domain-traffic-manager.md?toc=%2fazure%2fapp-service%2fcontainers%2ftoc.json
132132
- name: Migrate an active domain
133133
href: ../manage-custom-dns-migrate-domain.md?toc=%2fazure%2fapp-service%2fcontainers%2ftoc.json
134134
- name: Secure app

articles/app-service/faq-configuration-and-management.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ A common cause of backup failure is that some files are in use by the applicatio
101101

102102
## How do I remove a header from the HTTP response?
103103

104-
To remove the headers from the HTTP response, update your sites web.config file. For more information, see [Remove standard server headers on your Azure websites](https://azure.microsoft.com/blog/removing-standard-server-headers-on-windows-azure-web-sites/).
104+
To remove the headers from the HTTP response, update your site's web.config file. For more information, see [Remove standard server headers on your Azure websites](https://azure.microsoft.com/blog/removing-standard-server-headers-on-windows-azure-web-sites/).
105105

106106
## Is App Service compliant with PCI Standard 3.0 and 3.1?
107107

@@ -179,7 +179,7 @@ You have two options for capturing an F12 trace:
179179
### F12 console output
180180

181181
1. Select the **Console** tab.
182-
2. For each tab that contains more than zero items, select the tab (**Error**, **Warning**, or **Information**). If the tab isnt selected, the tab icon is gray or black when you move the cursor away from it.
182+
2. For each tab that contains more than zero items, select the tab (**Error**, **Warning**, or **Information**). If the tab isn't selected, the tab icon is gray or black when you move the cursor away from it.
183183
3. Right-click in the message area of the pane, and then select **Copy all**.
184184
4. Paste the copied text in a file, and then save the file.
185185

@@ -208,7 +208,7 @@ For more information, see [How to create an App Service Environment](environment
208208
Sometimes, creating an App Service Environment fails. In that case, you see the following error in the Activity logs:
209209
```
210210
ResourceID: /subscriptions/{SubscriptionID}/resourceGroups/Default-Networking/providers/Microsoft.Web/hostingEnvironments/{ASEname}
211-
Error:{"error":{"code":"ResourceDeploymentFailure","message":"The resource provision operation did not complete within the allowed timeout period.}}
211+
Error:{"error":{"code":"ResourceDeploymentFailure","message":"The resource provision operation did not complete within the allowed timeout period."}}
212212
```
213213

214214
To resolve this, make sure that none of the following conditions are true:
@@ -244,15 +244,15 @@ To perform penetration testing, [submit a request](https://portal.msrc.microsoft
244244

245245
## How do I configure a custom domain name for an App Service web app that uses Traffic Manager?
246246

247-
To learn how to use a custom domain name with an App Service app that uses Azure Traffic Manager for load balancing, see [Configure a custom domain name for an Azure web app with Traffic Manager](web-sites-traffic-manager-custom-domain-name.md).
247+
To learn how to use a custom domain name with an App Service app that uses Azure Traffic Manager for load balancing, see [Configure a custom domain name for an Azure web app with Traffic Manager](configure-domain-traffic-manager.md).
248248

249249
## My App Service certificate is flagged for fraud. How do I resolve this?
250250

251251
[!INCLUDE [updated-for-az](../../includes/updated-for-az.md)]
252252

253253
During the domain verification of an App Service certificate purchase, you might see the following message:
254254

255-
Your certificate has been flagged for possible fraud. The request is currently under review. If the certificate does not become usable within 24 hours, please contact Azure Support.
255+
"Your certificate has been flagged for possible fraud. The request is currently under review. If the certificate does not become usable within 24 hours, please contact Azure Support."
256256

257257
As the message indicates, this fraud verification process might take up to 24 hours to complete. During this time, you'll continue to see the message.
258258

@@ -278,7 +278,7 @@ For detailed documentation for authentication and authorization in App Service,
278278

279279
## How do I redirect the default *.azurewebsites.net domain to my Azure web app's custom domain?
280280

281-
When you create a new website by using Web Apps in Azure, a default *sitename*.azurewebsites.net domain is assigned to your site. If you add a custom host name to your site and dont want users to be able to access your default *.azurewebsites.net domain, you can redirect the default URL. To learn how to redirect all traffic from your website's default domain to your custom domain, see [Redirect the default domain to your custom domain in Azure web apps](https://zainrizvi.io/blog/block-default-azure-websites-domain/).
281+
When you create a new website by using Web Apps in Azure, a default *sitename*.azurewebsites.net domain is assigned to your site. If you add a custom host name to your site and don't want users to be able to access your default *.azurewebsites.net domain, you can redirect the default URL. To learn how to redirect all traffic from your website's default domain to your custom domain, see [Redirect the default domain to your custom domain in Azure web apps](https://zainrizvi.io/blog/block-default-azure-websites-domain/).
282282

283283
## How do I determine which version of .NET version is installed in App Service?
284284

articles/app-service/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ landingContent:
120120
- text: Create hybrid connections to on-prem
121121
url: app-service-hybrid-connections.md
122122
- text: Load balance with Traffic Manager
123-
url: web-sites-traffic-manager-custom-domain-name.md
123+
url: configure-domain-traffic-manager.md
124124
- text: Back up your app to Storage Blobs
125125
url: manage-backup.md
126126

40.2 KB
Loading

articles/app-service/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
- name: Buy domain
145145
href: manage-custom-dns-buy-domain.md
146146
- name: Map domains with Traffic Manager
147-
href: web-sites-traffic-manager-custom-domain-name.md
147+
href: configure-domain-traffic-manager.md
148148
- name: Migrate an active domain
149149
href: manage-custom-dns-migrate-domain.md
150150
- name: Secure app

articles/app-service/web-sites-traffic-manager-custom-domain-name.md

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)