Skip to content

Commit 18581b7

Browse files
authored
Merge pull request #101656 from kummanish/patch-6
Updating the file with the correct DNS entry PGCLI
2 parents 4489884 + 708761a commit 18581b7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/postgresql/howto-configure-privatelink-cli.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ az network private-endpoint create \
9797
Create a Private DNS Zone for PostgreSQL server domain and create an association link with the Virtual Network.
9898
```azurecli-interactive
9999
az network private-dns zone create --resource-group myResourceGroup \
100-
--name "privatelink.database.azure.com"
100+
--name "privatelink.postgres.database.azure.com"
101101
az network private-dns link vnet create --resource-group myResourceGroup \
102-
--zone-name "privatelink.database.azure.com"\
102+
--zone-name "privatelink.postgres.database.azure.com"\
103103
--name MyDNSLink \
104104
--virtual-network myVirtualNetwork \
105105
--registration-enabled false
@@ -113,8 +113,8 @@ az resource show --ids $networkInterfaceId --api-version 2019-04-01 -o json
113113
114114
115115
#Create DNS records
116-
az network private-dns record-set a create --name myserver --zone-name privatelink.database.azure.com --resource-group myResourceGroup
117-
az network private-dns record-set a add-record --record-set-name myserver --zone-name privatelink.database.windows.net --resource-group myResourceGroup -a <Private IP Address>
116+
az network private-dns record-set a create --name myserver --zone-name privatelink.postgres.database.azure.com --resource-group myResourceGroup
117+
az network private-dns record-set a add-record --record-set-name myserver --zone-name privatelink.postgres.database.windows.net --resource-group myResourceGroup -a <Private IP Address>
118118
```
119119

120120
## Connect to a VM from the internet
@@ -146,14 +146,14 @@ Connect to the VM *myVm* from the internet as follows:
146146

147147
1. In the Remote Desktop of *myVM*, open PowerShell.
148148

149-
2. Enter  `nslookup mydemopostgresserver.postgres.privatelink.database.azure.com`.
149+
2. Enter  `nslookup mydemopostgresserver.privatelink.postgres.database.azure.com`.
150150

151151
You'll receive a message similar to this:
152152
```azurepowershell
153153
Server: UnKnown
154154
Address: 168.63.129.16
155155
Non-authoritative answer:
156-
Name: mydemopostgresserver.postgres.privatelink.database.azure.com
156+
Name: mydemopostgresserver.privatelink.postgres.database.azure.com
157157
Address: 10.1.3.4
158158
159159
3. Test the private link connection for the PostgreSQL server using any available client. In the example below I have used [Azure Data studio](https://docs.microsoft.com/sql/azure-data-studio/download?view=sql-server-ver15) to do the operation.
@@ -163,7 +163,7 @@ Connect to the VM *myVm* from the internet as follows:
163163
| Setting | Value |
164164
| ------- | ----- |
165165
| Server type| Select **PostgreSQL**.|
166-
| Server name| Select *mydemopostgresserver.postgres.privatelink.database.azure.com* |
166+
| Server name| Select *mydemopostgresserver.privatelink.postgres.database.azure.com* |
167167
| User name | Enter username as username@servername which is provided during the PostgreSQL server creation. |
168168
|Password |Enter a password provided during the PostgreSQL server creation. |
169169
|SSL|Select **Required**.|
@@ -185,4 +185,4 @@ az group delete --name myResourceGroup --yes
185185
```
186186

187187
## Next steps
188-
- Learn more about [What is Azure private endpoint](https://docs.microsoft.com/azure/private-link/private-endpoint-overview)
188+
- Learn more about [What is Azure private endpoint](https://docs.microsoft.com/azure/private-link/private-endpoint-overview)

0 commit comments

Comments
 (0)