Skip to content

Commit e4da310

Browse files
committed
updates7
1 parent 1511314 commit e4da310

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

articles/dns/dns-private-zone-terraform.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ content_well_notification:
1616

1717
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.
1818

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.
2020

2121
In addition to the Azure virtual network, this code also creates:
2222

@@ -50,7 +50,7 @@ In addition to the Azure virtual network, this code also creates:
5050

5151
> [!NOTE]
5252
> 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+
>
5454
> See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform).
5555
5656
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:
8585

8686
1. Run `az network private-dns zone list` to view all DNS zones and find yours.
8787

88-
```bash
88+
```azurecli
8989
az network private-dns zone list --output table
9090
```
9191

@@ -95,6 +95,20 @@ In addition to the Azure virtual network, this code also creates:
9595
az network private-dns zone show --name $dnsZoneName --resource-group $resourceGroupName
9696
```
9797

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.
107+
108+
```azurepowershell
109+
Get-AzPrivateDnsZone -Name $dnsZoneName -ResourceGroupName $resourceGroupName
110+
```
111+
98112
---
99113
100114
## Clean up resources

0 commit comments

Comments
 (0)