Skip to content

Commit b28058f

Browse files
committed
fix code blocks
1 parent d3639f3 commit b28058f

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

articles/nat-gateway/quickstart-create-nat-gateway-terraform.md

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,44 +80,47 @@ As with the public key, the names of the created resource group, virtual network
8080

8181
1. Get the Azure resource group name.
8282

83-
```console
84-
resource_group_name=$(terraform output -raw resource_group_name)
85-
```
83+
```console
84+
resource_group_name=$(terraform output -raw resource_group_name)
85+
```
8686

8787
1. Get the NAT gateway ID.
8888

89-
```console
89+
```console
9090
nat_gateway=$(terraform output -raw nat_gateway)
91-
```
91+
```
9292

9393
1. Run [az network nat gateway show](/cli/azure/network/nat/gateway#az-network-nat-gateway-show) to display the details about the NAT gateway.
9494

95-
```azurecli
96-
az network nat gateway show --resource-group $resource_group_name \
97-
--ids $nat_gateway
98-
99-
```
95+
```azurecli
96+
az network nat gateway show \
97+
--resource-group $resource_group_name \
98+
--ids $nat_gateway
99+
```
100100

101101
#### [Azure PowerShell](#tab/azure-powershell)
102102

103103
1. Get the Azure resource group name.
104104

105-
```console
106-
$resource_group_name=$(terraform output -raw resource_group_name)
107-
```
105+
```console
106+
$resource_group_name=$(terraform output -raw resource_group_name)
107+
```
108108

109109
1. Get the NAT gateway ID.
110110

111-
```console
112-
$nat_gateway=$(terraform output -raw nat_gateway)
113-
```
111+
```console
112+
$nat_gateway=$(terraform output -raw nat_gateway)
113+
```
114114

115115
1. Run [Get-AzNatGateway](/powershell/module/az.network/get-aznatgateway) to display the the details about the NAT gateway.
116116

117-
```azurepowershell
118-
Get-AzNatGateway -ResourceGroupName $resource_group_name `
119-
-Name $nat_gateway
120-
```
117+
```azurepowershell
118+
$nat = @{
119+
Name = $nat_gateway
120+
ResourceGroupName = $resource_group_name
121+
}
122+
Get-AzNatGateway @nat
123+
```
121124

122125
---
123126

0 commit comments

Comments
 (0)