Skip to content

Commit c393eb8

Browse files
Merge pull request #281569 from tomvcassidy/11CSDate
ms.date and acrolinx
2 parents 3483ccc + 8c76d30 commit c393eb8

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

articles/cloud-services/cloud-services-custom-domain-name-portal.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: Configure a custom domain name in Cloud Services (classic) | Microsoft Docs
3-
description: Learn how to expose your Azure application or data to the internet on a custom domain by configuring DNS settings. These examples use the Azure portal.
3+
description: Learn how to expose your Azure application or data to the internet on a custom domain by configuring Domain Name System (DNS) settings. These examples use the Azure portal.
44
ms.topic: article
55
ms.service: cloud-services
6-
ms.date: 02/21/2023
6+
ms.date: 07/23/2024
77
author: hirenshah1
88
ms.author: hirshah
99
ms.reviewer: mimckitt
@@ -14,7 +14,7 @@ ms.custom: compute-evergreen
1414

1515
[!INCLUDE [Cloud Services (classic) deprecation announcement](includes/deprecation-announcement.md)]
1616

17-
When you create a Cloud Service, Azure assigns it to a subdomain of **cloudapp.net**. For example, if your Cloud Service is named "contoso", your users will be able to access your application on a URL like `http://contoso.cloudapp.net`. Azure also assigns a virtual IP address.
17+
When you create a Cloud Service, Azure assigns it to a subdomain of **cloudapp.net**. For example, if your Cloud Service is named `contoso`, your users are able to access your application on a URL like `http://contoso.cloudapp.net`. Azure also assigns a virtual IP address.
1818

1919
However, you can also expose your application on your own domain name, such as **contoso.com**. This article explains how to reserve or configure a custom domain name for Cloud Service web roles.
2020

@@ -33,16 +33,16 @@ Do you already understand what CNAME and A records are? [Jump past the explanati
3333
>
3434
3535
## Understand CNAME and A records
36-
CNAME (or alias records) and A records both allow you to associate a domain name with a specific server (or service in this case,) however they work differently. There are also some specific considerations when using A records with Azure Cloud services that you should consider before deciding which to use.
36+
CNAME (or alias records) and A records both allow you to associate a domain name with a specific server (or service in this case) however they work differently. There are also some specific considerations when using A records with Azure Cloud services that you should consider before deciding which to use.
3737

3838
### CNAME or Alias record
39-
A CNAME record maps a *specific* domain, such as **contoso.com** or **www\.contoso.com**, to a canonical domain name. In this case, the canonical domain name is the **[myapp].cloudapp.net** domain name of your Azure hosted application. Once created, the CNAME creates an alias for the **[myapp].cloudapp.net**. The CNAME entry will resolve to the IP address of your **[myapp].cloudapp.net** service automatically, so if the IP address of the cloud service changes, you do not have to take any action.
39+
A CNAME record maps a *specific* domain, such as **contoso.com** or **www\.contoso.com**, to a canonical domain name. In this case, the canonical domain name is the **[myapp].cloudapp.net** domain name of your Azure hosted application. Once created, the CNAME creates an alias for the **[myapp].cloudapp.net**. The CNAME entry resolves to the IP address of your **[myapp].cloudapp.net** service automatically, so if the IP address of the cloud service changes, you don't have to take any action.
4040

4141
> [!NOTE]
4242
> Some domain registrars only allow you to map subdomains when using a CNAME record, such as www\.contoso.com, and not root names, such as contoso.com. For more information on CNAME records, see the documentation provided by your registrar, [the Wikipedia entry on CNAME record](https://en.wikipedia.org/wiki/CNAME_record), or the [IETF Domain Names - Implementation and Specification](https://tools.ietf.org/html/rfc1035) document.
4343
4444
### A record
45-
An *A* record maps a domain, such as **contoso.com** or **www\.contoso.com**, *or a wildcard domain* such as **\*.contoso.com**, to an IP address. In the case of an Azure Cloud Service, the virtual IP of the service. So the main benefit of an A record over a CNAME record is that you can have one entry that uses a wildcard, such as \***.contoso.com**, which would handle requests for multiple sub-domains such as **mail.contoso.com**, **login.contoso.com**, or **www\.contso.com**.
45+
An *A* record maps a domain, such as **contoso.com** or **www\.contoso.com**, *or a wildcard domain* such as **\*.contoso.com**, to an IP address. With an Azure Cloud Service, the virtual IP of the service. So the main benefit of an A record over a CNAME record is that you can have one entry that uses a wildcard, such as \***.contoso.com**, which would handle requests for multiple subdomains such as **mail.contoso.com**, **login.contoso.com**, or **www\.contso.com**.
4646

4747
> [!NOTE]
4848
> Since an A record is mapped to a static IP address, it cannot automatically resolve changes to the IP address of your Cloud Service. The IP address used by your Cloud Service is allocated the first time you deploy to an empty slot (either production or staging.) If you delete the deployment for the slot, the IP address is released by Azure and any future deployments to the slot may be given a new IP address.
@@ -56,7 +56,7 @@ To create a CNAME record, you must add a new entry in the DNS table for your cus
5656

5757
1. Use one of these methods to find the **.cloudapp.net** domain name assigned to your cloud service.
5858

59-
* Login to the [Azure portal], select your cloud service, look at the **Overview** section and then find the **Site URL** entry.
59+
* Sign into the [Azure portal], select your cloud service, look at the **Overview** section and then find the **Site URL** entry.
6060

6161
![quick glance section showing the site URL][csurl]
6262

@@ -67,9 +67,9 @@ To create a CNAME record, you must add a new entry in the DNS table for your cus
6767
Get-AzureDeployment -ServiceName yourservicename | Select Url
6868
```
6969
70-
Save the domain name used in the URL returned by either method, as you will need it when creating a CNAME record.
71-
2. Log on to your DNS registrar's website and go to the page for managing DNS. Look for links or areas of the site labeled as **Domain Name**, **DNS**, or **Name Server Management**.
72-
3. Now find where you can select or enter CNAME's. You may have to select the record type from a drop down, or go to an advanced settings page. You should look for the words **CNAME**, **Alias**, or **Subdomains**.
70+
Save the domain name used in the URL returned by either method, as you need it when creating a CNAME record.
71+
2. Sign into your DNS registrar's website and go to the page for managing DNS. Look for links or areas of the site labeled as **Domain Name**, **DNS**, or **Name Server Management**.
72+
3. Now find where you can select or enter CNAMEs. You may have to select the record type from a drop-down or go to an advanced settings page. You should look for the words **CNAME**, **Alias**, or **Subdomains**.
7373
4. You must also provide the domain or subdomain alias for the CNAME, such as **www** if you want to create an alias for **www\.customdomain.com**. If you want to create an alias for the root domain, it may be listed as the '**\@**' symbol in your registrar's DNS tools.
7474
5. Then, you must provide a canonical host name, which is your application's **cloudapp.net** domain in this case.
7575
@@ -84,14 +84,14 @@ For example, the following CNAME record forwards all traffic from **www\.contoso
8484
> (contoso.cloudapp.net), so the forwarding process is invisible to the
8585
> end user.
8686
>
87-
> The example above only applies to traffic at the **www** subdomain. Since you cannot use wildcards with CNAME records, you must create one CNAME for each domain/subdomain. If you want to direct traffic from subdomains, such as *.contoso.com, to your cloudapp.net address, you can configure a **URL Redirect** or **URL Forward** entry in your DNS settings, or create an A record.
87+
> The preceding example only applies to traffic at the **www** subdomain. Since you cannot use wildcards with CNAME records, you must create one CNAME for each domain/subdomain. If you want to direct traffic from subdomains, such as *.contoso.com, to your cloudapp.net address, you can configure a **URL Redirect** or **URL Forward** entry in your DNS settings, or create an A record.
8888
8989
## Add an A record for your custom domain
9090
To create an A record, you must first find the virtual IP address of your cloud service. Then add a new entry in the DNS table for your custom domain by using the tools provided by your registrar. Each registrar has a similar but slightly different method of specifying an A record, but the concepts are the same.
9191
9292
1. Use one of the following methods to get the IP address of your cloud service.
9393
94-
* Login to the [Azure portal], select your cloud service, look at the **Overview** section and then find the **Public IP addresses** entry.
94+
* Sign into the [Azure portal], select your cloud service, look at the **Overview** section and then find the **Public IP addresses** entry.
9595
9696
![quick glance section showing the VIP][vip]
9797
@@ -102,13 +102,13 @@ To create an A record, you must first find the virtual IP address of your cloud
102102
get-azurevm -servicename yourservicename | get-azureendpoint -VM {$_.VM} | select Vip
103103
```
104104
105-
Save the IP address, as you will need it when creating an A record.
106-
2. Log on to your DNS registrar's website and go to the page for managing DNS. Look for links or areas of the site labeled as **Domain Name**, **DNS**, or **Name Server Management**.
107-
3. Now find where you can select or enter A record's. You may have to select the record type from a drop down, or go to an advanced settings page.
108-
4. Select or enter the domain or subdomain that will use this A record. For example, select **www** if you want to create an alias for **www\.customdomain.com**. If you want to create a wildcard entry for all subdomains, enter '*****'. This will cover all sub-domains such as **mail.customdomain.com**, **login.customdomain.com**, and **www\.customdomain.com**.
105+
Save the IP address, as you need it when creating an A record.
106+
2. Sign into your DNS registrar's website and go to the page for managing DNS. Look for links or areas of the site labeled as **Domain Name**, **DNS**, or **Name Server Management**.
107+
3. Now find where you can select or enter A record's. You may have to select the record type from a drop-down, or go to an advanced settings page.
108+
4. Select or enter the domain or subdomain that uses this A record. For example, select **www** if you want to create an alias for **www\.customdomain.com**. If you want to create a wildcard entry for all subdomains, enter `*****`. This entry covers all subdomains such as **mail.customdomain.com**, **login.customdomain.com**, and **www\.customdomain.com**.
109109
110110
If you want to create an A record for the root domain, it may be listed as the '**\@**' symbol in your registrar's DNS tools.
111-
5. Enter the IP address of your cloud service in the provided field. This associates the domain entry used in the A record with the IP address of your cloud service deployment.
111+
5. Enter the IP address of your cloud service in the provided field. This step associates the domain entry used in the A record with the IP address of your cloud service deployment.
112112
113113
For example, the following A record forwards all traffic from **contoso.com** to **137.135.70.239**, the IP address of your deployed application:
114114
@@ -125,7 +125,7 @@ This example demonstrates creating an A record for the root domain. If you wish
125125
126126
## Next steps
127127
* [How to Manage Cloud Services](cloud-services-how-to-manage-portal.md)
128-
* [How to Map CDN Content to a Custom Domain](../cdn/cdn-map-content-to-custom-domain.md)
128+
* [How to Map Content Delivery Network (CDN) Content to a Custom Domain](../cdn/cdn-map-content-to-custom-domain.md)
129129
* [General configuration of your cloud service](cloud-services-how-to-configure-portal.md).
130130
* Learn how to [deploy a cloud service](cloud-services-how-to-create-deploy-portal.md).
131131
* Configure [TLS/SSL certificates](cloud-services-configure-ssl-certificate-portal.md).

0 commit comments

Comments
 (0)