Skip to content

Commit 9c0dc43

Browse files
committed
fixes to code
1 parent 8aa40f0 commit 9c0dc43

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

articles/dns/dns-web-sites-custom-domain.md

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ If you don’t have an Azure subscription, create a [free account](https://azure
3737

3838
* A domain name that you can host in Azure DNS. You must have full control of this domain. Full control includes the ability to set the name server (NS) records for the domain.
3939

40-
* A web app. If you don't have one, you can [create a static HTML web app](../app-service/quickstart-html.md) for this tutorial.
40+
* A web app. If you don't have one, you can [create a web app](/azure/app-service/quickstart-dotnetcore?tabs=net80&pivots=development-environment-azure-portal) for this tutorial.
4141

4242
* An Azure DNS zone with delegation in your registrar to Azure DNS. If you don't have one, you can [create a DNS zone](./dns-getstarted-powershell.md), then [delegate your domain](dns-delegate-domain-azure-dns.md#delegate-the-domain) to Azure DNS.
4343

@@ -75,7 +75,13 @@ An A record is used to map a name to its IP address. In the following example, a
7575

7676
# [Portal](#tab/azure-portal)
7777

78-
In the left navigation of the App Services page in the Azure portal, select **Custom domains**, then copy the IP address of your web app:
78+
1. Sign in to the [Azure portal](https://portal.azure.com).
79+
80+
1. In the search box at the top of the portal, enter **App Services**, and select it from the results.
81+
82+
1. Select your web app from the list.
83+
84+
1. In the left navigation of the App Services page in the Azure portal, expand **Settings**, then select **Custom domains**, then copy the IP address of your web app:
7985

8086
:::image type="content" source="./media/dns-web-sites-custom-domain/app-service-custom-domains.png" alt-text="Screenshot of Azure App Service Custom domains page showing the web app IP address.":::
8187

@@ -84,13 +90,12 @@ In the left navigation of the App Services page in the Azure portal, select **Cu
8490
To get the IP address of your web app, use:
8591

8692
```azurepowershell
87-
$webAppParams = @{
88-
Name = "contoso"
93+
$params = @{
8994
ResourceGroupName = "<your web app resource group>"
95+
Name = "contoso"
9096
}
91-
$webApp = Get-AzWebApp @webAppParams
92-
$inboundIpAddress = $webApp.InboundIpAddress
93-
Write-Output "Web app inbound IP address: $inboundIpAddress"
97+
$webapp = Get-AzWebApp @params
98+
($webapp.OutboundIpAddresses -split ',')[0].Trim()
9499
```
95100

96101
# [Azure CLI](#tab/azure-cli)
@@ -100,10 +105,10 @@ To get the IP address of your web app, use:
100105
```azurecli
101106
# Get the inbound IP address
102107
az webapp show \
103-
--name contoso \
104-
--resource-group <your web app resource group> \
105-
--query "inboundIpAddress" \
106-
--output tsv
108+
--resource-group "test-rg" \
109+
--name "web-app" \
110+
--query "outboundIpAddresses" \
111+
--output tsv | cut -d',' -f2
107112
```
108113

109114
---
@@ -371,10 +376,10 @@ az webapp config hostname add \
371376
---
372377
## Test the custom host names
373378

374-
Open a browser and browse to `http://www.<your domain name>` and `http://<you domain name>`.
379+
Open a browser and browse to `http://www.<your domain name>` and `http://<your domain name>`.
375380

376381
> [!NOTE]
377-
> Make sure you include the `http://` prefix, otherwise your browser may attempt to predict a URL for you!
382+
> Make sure you include the `http://` prefix, otherwise your browser may attempt to predict a URL for you.
378383
379384
You should see the same page for both URLs. For example:
380385

132 KB
Loading

0 commit comments

Comments
 (0)