File tree Expand file tree Collapse file tree 1 file changed +5
-39
lines changed Expand file tree Collapse file tree 1 file changed +5
-39
lines changed Original file line number Diff line number Diff line change 1
1
---
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
3
3
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
6
5
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
14
7
ms.topic : sample
15
- ms.tgt_pltfrm :
16
- ms.workload : infrastructure
17
- ms.date : 04/30/2018
8
+ ms.date : 09/20/2019
18
9
ms.author : victorh
19
10
---
20
11
@@ -28,32 +19,7 @@ This Azure CLI script example creates a DNS zone and record for a domain name.
28
19
29
20
## Sample script
30
21
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 ")]
57
23
58
24
## Clean up deployment
59
25
You can’t perform that action at this time.
0 commit comments