You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next, we retrieve the authoritative NS records from child zone as shown in the next example. This contains the name servers assigned to the child zone.
Create corresponding NS record set in the parent zone to complete the delegation. Note that the record set name in the parent zone matches the child zone name, in this case "partners".
Copy file name to clipboardExpand all lines: articles/dns/dns-getstarted-create-dnszone-cli.md
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ services: dns
5
5
documentationcenter: na
6
6
author: sdwheeler
7
7
manager: carmonm
8
-
editor: ''
9
8
10
9
ms.assetid: 1514426a-133c-491a-aa27-ee0962cea9dc
11
10
ms.service: dns
@@ -41,31 +40,31 @@ You can install Azure CLI for Windows, Linux, or MAC. The following steps need t
41
40
All the network provider commands on CLI can be found using the following command:
42
41
43
42
```azurecli
44
-
azure network
43
+
azure network
45
44
```
46
45
47
46
### 2. Switch CLI mode
48
47
49
48
Azure DNS uses Azure Resource Manager. Make sure you switch CLI mode to use ARM commands.
50
49
51
50
```azurecli
52
-
azure config mode arm
51
+
azure config mode arm
53
52
```
54
53
55
54
### 3. Sign in to your Azure account
56
55
57
56
You will be prompted to authenticate with your credentials. Keep in mind that you can only use ORGID accounts.
58
57
59
58
```azurecli
60
-
azure login -u "username"
59
+
azure login -u "username"
61
60
```
62
61
63
62
### 4. Select the subscription
64
63
65
64
Choose which of your Azure subscriptions to use.
66
65
67
66
```azurecli
68
-
azure account set "subscription name"
67
+
azure account set "subscription name"
69
68
```
70
69
71
70
### 5. Create a resource group
@@ -75,15 +74,15 @@ Azure Resource Manager requires that all resource groups specify a location. Thi
75
74
You can skip this step if you are using an existing resource group.
76
75
77
76
```azurecli
78
-
azure group create -n myresourcegroup --location "West US"
77
+
azure group create -n myresourcegroup --location "West US"
79
78
```
80
79
81
80
### 6. Register
82
81
83
82
The Azure DNS service is managed by the Microsoft.Network resource provider. Your Azure subscription needs to be registered to use this resource provider before you can use Azure DNS. This is a one-time operation for each subscription.
The Azure DNS service is managed by the Microsoft.Network resource provider. Your Azure subscription needs to be registered to use this resource provider before you can use Azure DNS. This is a one-time operation for each subscription.
@@ -112,15 +111,15 @@ A DNS zone is created by using the `New-AzureRmDnsZone` cmdlet. There are exampl
112
111
The example below creates a DNS zone called *contoso.com* in the resource group called *MyResourceGroup*. Use the example to create a DNS zone, substituting the values for your own.
The following example shows how to create a DNS zone with two tags, *project = demo* and *env = test*. Use the example to create a DNS zone, substituting the values for your own.
For more information about working with PowerShell, see [Using Windows PowerShell with Resource Manager](../powershell-azure-resource-manager.md).
@@ -67,22 +66,22 @@ To create a record set in the apex of the zone (in this case, "contoso.com"), us
67
66
The following example creates a record set with the relative name "www" in the DNS Zone "contoso.com". The fully-qualified name of the record set is "www.contoso.com". The record type is "A", and the TTL is 60 seconds. After completing this step, you will have an empty "www" record set that is assigned to the variable *$rs*.
If a record set already exists, the command fails unless the *-Overwrite* switch is used. The *-Overwrite* option triggers a confirmation prompt, which can be suppressed by using the *-Force* switch.
In this example, you specify the zone by using the zone name and resource group name. Alternatively, you can specify a zone object, as returned by `Get-AzureRmDnsZone` or `New-AzureRmDnsZone`.
Copy file name to clipboardExpand all lines: articles/dns/dns-operations-dnszones-cli.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ services: dns
5
5
documentationcenter: na
6
6
author: sdwheeler
7
7
manager: carmonm
8
-
editor: ''
9
8
10
9
ms.assetid: 8ab63bc4-5135-4ed8-8c0b-5f0712b9afed
11
10
ms.service: dns
@@ -40,7 +39,7 @@ To create a new DNS zone to host your domain, see [Create an Azure DNS zone usin
40
39
To retrieve a DNS zone, use `azure network dns zone show`:
41
40
42
41
```azurecli
43
-
azure network dns zone show myresourcegroup contoso.com
42
+
azure network dns zone show myresourcegroup contoso.com
44
43
```
45
44
46
45
The operation returns a DNS zone with its id, number of record sets and tags.
@@ -50,15 +49,15 @@ The operation returns a DNS zone with its id, number of record sets and tags.
50
49
To retrieve DNS zones within a resource group, use `azure network dns zone list`.
51
50
52
51
```azurecli
53
-
azure network dns zone list myresourcegroup
52
+
azure network dns zone list myresourcegroup
54
53
```
55
54
56
55
## Update a DNS zone
57
56
58
-
Changes to a DNS zone resource can be made using `azure network dns zone set`. This does not update any of the DNS record sets within the zone (see [How to Manage DNS records](dns-operations-recordsets.md)). It's only used to update properties of the zone resource itself. This is currently limited to the Azure Resource Manager ‘tags’ for the zone resource. See [Etags and Tags](dns-getstarted-create-dnszone.md#tagetag) for more information.
57
+
Changes to a DNS zone resource can be made using `azure network dns zone set`. This does not update any of the DNS record sets within the zone (see [How to Manage DNS records](dns-operations-recordsets.md)). It's only used to update properties of the zone resource itself. This is currently limited to the Azure Resource Manager 'tags' for the zone resource. See [Etags and Tags](dns-getstarted-create-dnszone.md#tagetag) for more information.
59
58
60
59
```azurecli
61
-
azure network dns zone set myresourcegroup contoso.com -t prod=value2
60
+
azure network dns zone set myresourcegroup contoso.com -t prod=value2
62
61
```
63
62
64
63
## Delete a DNS Zone
@@ -68,7 +67,7 @@ DNS zones can be deleted using `azure network dns zone delete`. This operation h
68
67
Before deleting a DNS zone in Azure DNS, you will need to delete all records sets, except for the NS and SOA records at the root of the zone that were created automatically when the zone was created.
69
68
70
69
```azurecli
71
-
azure network dns zone delete myresourcegroup contoso.com
70
+
azure network dns zone delete myresourcegroup contoso.com
Specify the zone using a $zone object from `Get-AzureRmDnsZone`. This operation has an optional *-Force* switch which suppresses the prompt to confirm you want to remove the DNS zone. As with `Set-AzureRmDnsZone`, specifying the zone using a $zone object enables Etag checks to ensure concurrent changes are not deleted. <BR>
88
-
The optional *-Overwrite* flag suppresses these checks. See [Etags and Tags](dns-getstarted-create-dnszone.md#tagetag) for more information.
86
+
Specify the zone using a $zone object from `Get-AzureRmDnsZone`. This operation has an optional `-Force` switch which suppresses the prompt to confirm you want to remove the DNS zone. As with `Set-AzureRmDnsZone`, specifying the zone using a $zone object enables Etag checks to ensure concurrent changes are not deleted.
87
+
88
+
The optional `-Overwrite` flag suppresses these checks. See [Etags and Tags](dns-getstarted-create-dnszone.md#tagetag) for more information.
0 commit comments