Skip to content

Commit d3ec581

Browse files
authored
Merge pull request #46688 from vhorne/mvc-qs-ps
mvc refactor for QS ps
2 parents 2f549fa + 4864870 commit d3ec581

File tree

2 files changed

+24
-38
lines changed

2 files changed

+24
-38
lines changed

articles/dns/TOC.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
- name: What is Azure DNS?
66
href: dns-overview.md
77
- name: Quickstarts
8+
expanded: true
89
items:
910
- name: Name resolution - portal
1011
href: dns-getstarted-portal.md
11-
- name: Create DNS zone and record - PowerShell
12+
- name: Name resolution - PowerShell
1213
href: dns-getstarted-powershell.md
13-
- name: Create DNS zone and record - CLI
14+
- name: Name resolution - CLI
1415
href: dns-getstarted-cli.md
1516
- name: Tutorials
1617
items:
Lines changed: 21 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,33 @@
11
---
2-
title: Get started with Azure DNS using PowerShell | Microsoft Docs
3-
description: Learn how to create a DNS zone and record in Azure DNS. This is a step-by-step guide to create and manage your first DNS zone and record using PowerShell.
2+
title: Quickstart - Create an Azure DNS zone and record using Azure PowerShell
3+
description: Learn how to create a DNS zone and record in Azure DNS. This is a step-by-step quickstart to create and manage your first DNS zone and record using Azure PowerShell.
44
services: dns
5-
documentationcenter: na
6-
author: KumudD
7-
manager: timlt
8-
editor: ''
9-
tags: azure-resource-manager
10-
11-
ms.assetid: fb0aa0a6-d096-4d6a-b2f6-eda1c64f6182
5+
author: vhorne
126
ms.service: dns
13-
ms.devlang: na
14-
ms.topic: get-started-article
15-
ms.tgt_pltfrm: na
16-
ms.workload: infrastructure-services
17-
ms.date: 03/10/2017
18-
ms.author: kumud
7+
ms.topic: quickstart
8+
ms.date: 07/20/2018
9+
ms.author: victorh
10+
#Customer intent: As an administrator or developer, I want to learn how to configure Azure DNS using Azure PowerShell so I can use Azure DNS for my Internet name resolution.
1911
---
2012

21-
# Get Started with Azure DNS using PowerShell
22-
23-
> [!div class="op_single_selector"]
24-
> * [Azure portal](dns-getstarted-portal.md)
25-
> * [PowerShell](dns-getstarted-powershell.md)
26-
> * [Azure CLI 1.0](dns-getstarted-cli-nodejs.md)
27-
> * [Azure CLI 2.0](dns-getstarted-cli.md)
13+
# Quickstart: Create an Azure DNS zone and record using Azure PowerShell
2814

29-
This article walks you through the steps to create your first DNS zone and record using Azure PowerShell. You can also perform these steps using the Azure portal or the cross-platform Azure CLI. Azure DNS also supports creating a private domains. For step-by-step instructions about how create your first private DNS zone and record, see [Get started with Azure DNS private zones using PowerShell](private-dns-getstarted-powershell.md).
15+
In this quickstart, you create your first DNS zone and record using Azure PowerShell. You can also perform these steps using the [Azure portal](dns-getstarted-portal.md) or the [Azure CLI](dns-getstarted-cli.md).
3016

3117
A DNS zone is used to host the DNS records for a particular domain. To start hosting your domain in Azure DNS, you need to create a DNS zone for that domain name. Each DNS record for your domain is then created inside this DNS zone. Finally, to publish your DNS zone to the Internet, you need to configure the name servers for the domain. Each of these steps is described below.
3218

33-
These instructions assume you have already installed and signed in to Azure PowerShell. For help, see [How to manage DNS zones using PowerShell](dns-operations-dnszones.md).
19+
Azure DNS also supports creating private domains. For step-by-step instructions about how create your first private DNS zone and record, see [Get started with Azure DNS private zones using PowerShell](private-dns-getstarted-powershell.md).
20+
21+
[!INCLUDE [cloud-shell-powershell.md](../../includes/cloud-shell-powershell.md)]
22+
23+
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
3424

3525
## Create the resource group
3626

37-
Before creating the DNS zone, a resource group is created to contain the DNS Zone. The following shows the command.
27+
Before you create the DNS zone, create a resource group to contain the DNS zone:
3828

3929
```powershell
40-
New-AzureRMResourceGroup -name MyResourceGroup -location "westus"
30+
New-AzureRMResourceGroup -name MyResourceGroup -location "eastus"
4131
```
4232

4333
## Create a DNS zone
@@ -47,19 +37,15 @@ A DNS zone is created by using the `New-AzureRmDnsZone` cmdlet. The following ex
4737
```powershell
4838
New-AzureRmDnsZone -Name contoso.com -ResourceGroupName MyResourceGroup
4939
```
50-
Azure DNS now also supports private DNS zones (currently in public preview). To learn more about private DNS zones, see [Using Azure DNS for private domains](private-dns-overview.md). For an example of how to create a private DNS zone, see [Get started with Azure DNS private zones using PowerShell](./private-dns-getstarted-powershell.md).
5140

5241
## Create a DNS record
5342

54-
You create record sets by using the `New-AzureRmDnsRecordSet` cmdlet. The following example creates a record with the relative name "www" in the DNS Zone "contoso.com", in resource group "MyResourceGroup". The fully-qualified name of the record set is "www.contoso.com". The record type is "A", with IP address "1.2.3.4", and the TTL is 3600 seconds.
43+
You create record sets by using the `New-AzureRmDnsRecordSet` cmdlet. The following example creates a record with the relative name "www" in the DNS Zone "contoso.com", in resource group "MyResourceGroup". The fully qualified name of the record set is "www.contoso.com". The record type is "A", with IP address "1.2.3.4", and the TTL is 3600 seconds.
5544

5645
```powershell
5746
New-AzureRmDnsRecordSet -Name www -RecordType A -ZoneName contoso.com -ResourceGroupName MyResourceGroup -Ttl 3600 -DnsRecords (New-AzureRmDnsRecordConfig -IPv4Address "1.2.3.4")
5847
```
5948

60-
For other record types, for record sets with more than one record, and to modify existing records, see [Manage DNS records and record sets using Azure PowerShell](dns-operations-recordsets.md).
61-
62-
6349
## View records
6450

6551
To list the DNS records in your zone, use:
@@ -91,17 +77,16 @@ These name servers should be configured with the domain name registrar (where yo
9177

9278
## Delete all resources
9379

94-
To delete all resources created in this article, take the following step:
80+
When no longer needed, you can delete all resources created in this quickstart by deleting the resource group:
9581

9682
```powershell
9783
Remove-AzureRMResourceGroup -Name MyResourceGroup
9884
```
9985

10086
## Next steps
10187

102-
To learn more about Azure DNS, see [Azure DNS overview](dns-overview.md).
103-
104-
To learn more about managing DNS zones in Azure DNS, see [Manage DNS zones in Azure DNS using PowerShell](dns-operations-dnszones.md).
88+
Now that you've created your first DNS zone and record using Azure PowerShell, you can create records for a web app in a custom domain.
10589

106-
To learn more about managing DNS records in Azure DNS, see [Manage DNS records and record sets in Azure DNS using PowerShell](dns-operations-recordsets.md).
90+
> [!div class="nextstepaction"]
91+
> [Create DNS records for a web app in a custom domain](./dns-web-sites-custom-domain.md)
10792

0 commit comments

Comments
 (0)