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
Copy file name to clipboardExpand all lines: articles/dns/dns-private-zone-terraform.md
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ content_well_notification:
16
16
17
17
In this quickstart, you use Terraform to create a virtual network, subnets, private DNS zones, network interfaces, Windows virtual machines, a private DNS A record, network security groups, and a network security rule in Azure.
18
18
19
-
An Azure virtual network is a fundamental component of the Azure networking model, providing isolation and protection for your virtual machines. It's used to control and manage traffic between resources such as virtual machines within a network.
19
+
An Azure virtual network is a fundamental component of the Azure networking model, providing isolation and protection for your virtual machines. It's used to control and manage traffic between resources such as virtual machines within a network.
20
20
21
21
In addition to the Azure virtual network, this code also creates:
22
22
@@ -50,7 +50,7 @@ In addition to the Azure virtual network, this code also creates:
50
50
51
51
> [!NOTE]
52
52
> The sample code for this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-dns-private-zone). You can view the log file containing the [test results from current and previous versions of Terraform](https://github.com/Azure/terraform/tree/master/quickstart/101-dns-private-zone/TestRecord.md).
53
-
>
53
+
>
54
54
> See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform).
55
55
56
56
1. Create a directory in which to test and run the sample Terraform code, and make it the current directory.
@@ -85,7 +85,7 @@ In addition to the Azure virtual network, this code also creates:
85
85
86
86
1. Run `az network private-dns zone list` to view all DNS zones and find yours.
87
87
88
-
```bash
88
+
```azurecli
89
89
az network private-dns zone list --output table
90
90
```
91
91
@@ -95,6 +95,20 @@ In addition to the Azure virtual network, this code also creates:
95
95
az network private-dns zone show --name $dnsZoneName --resource-group $resourceGroupName
96
96
```
97
97
98
+
### [Azure PowerShell](#tab/azure-powershell)
99
+
100
+
1. Run `Get-AzPrivateDnsZone` to view all DNS zones and find yours.
101
+
102
+
```azurepowershell
103
+
Get-AzPrivateDnsZone | Format-Table
104
+
```
105
+
106
+
2. Run `Get-AzPrivateDnsZone` to view the resource group associated with your DNS zone.
0 commit comments