Skip to content

Commit dd1f9e7

Browse files
committed
cleanup wrapper file
1 parent 50a8e9b commit dd1f9e7

File tree

1 file changed

+5
-39
lines changed

1 file changed

+5
-39
lines changed

articles/dns/scripts/dns-cli-create-dns-zone-record.md

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
---
2-
title: CLI Example - Create a DNS zone and record for a domain name - Azure | Microsoft Docs
2+
title: Azure CLI Example - Create a DNS zone and record for a domain name
33
description: This Azure CLI script example shows how to create a DNS zone and record for a domain name
4-
services: load-balancer
5-
documentationcenter: traffic-manager
4+
services: dns
65
author: vhorne
7-
manager: jeconnoc
8-
editor: tysonn
9-
tags:
10-
11-
ms.assetid:
12-
ms.service: traffic-manager
13-
ms.devlang: azurecli
6+
ms.service: dns
147
ms.topic: sample
15-
ms.tgt_pltfrm:
16-
ms.workload: infrastructure
17-
ms.date: 04/30/2018
8+
ms.date: 09/20/2019
189
ms.author: victorh
1910
---
2011

@@ -28,32 +19,7 @@ This Azure CLI script example creates a DNS zone and record for a domain name.
2819

2920
## Sample script
3021

31-
```azurecli-interactive
32-
33-
# Create a resource group.
34-
az group create \
35-
-n myResourceGroup \
36-
-l eastus
37-
38-
# Create a DNS zone. Substitute zone name "contoso.com" with the values for your own.
39-
40-
az network dns zone create \
41-
-g MyResourceGroup \
42-
-n contoso.com
43-
44-
# Create a DNS record. Substitute zone name "contoso.com" and IP address "1.2.3.4* with the values for your own.
45-
46-
az network dns record-set a add-record \
47-
-g MyResourceGroup \
48-
-z contoso.com \
49-
-n www \
50-
-a 1.2.3.4
51-
52-
# Get a list the DNS records in your zone
53-
az network dns record-set list \
54-
-g MyResourceGroup \
55-
-z contoso.com
56-
```
22+
[!code-azurecli-interactive[main](../../../cli_scripts/dns/create-dns-zone-and-record/create-dns-zone-and-record.sh "Create DNS zone and record")]
5723

5824
## Clean up deployment
5925

0 commit comments

Comments
 (0)