Skip to content

Commit 82e11d9

Browse files
authored
Merge pull request #101654 from kummanish/patch-4
Updating the file with the correct DNS entry
2 parents a74324f + e32e7d9 commit 82e11d9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ az network private-endpoint create \
9393
Create a Private DNS Zone for MySQL server domain and create an association link with the Virtual Network.
9494
```azurecli-interactive
9595
az network private-dns zone create --resource-group myResourceGroup \
96-
--name "privatelink.database.azure.com"
96+
--name "privatelink.mysql.database.azure.com"
9797
az network private-dns link vnet create --resource-group myResourceGroup \
98-
--zone-name "privatelink.database.azure.com"\
98+
--zone-name "privatelink.mysql.database.azure.com"\
9999
--name MyDNSLink \
100100
--virtual-network myVirtualNetwork \
101101
--registration-enabled false
@@ -109,8 +109,8 @@ az resource show --ids $networkInterfaceId --api-version 2019-04-01 -o json
109109
110110
111111
#Create DNS records
112-
az network private-dns record-set a create --name myserver --zone-name privatelink.database.azure.com --resource-group myResourceGroup
113-
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>
112+
az network private-dns record-set a create --name myserver --zone-name privatelink.mysql.database.azure.com --resource-group myResourceGroup
113+
az network private-dns record-set a add-record --record-set-name myserver --zone-name privatelink.mysql.database.windows.net --resource-group myResourceGroup -a <Private IP Address>
114114
```
115115

116116
## Connect to a VM from the internet
@@ -142,14 +142,14 @@ Connect to the VM *myVm* from the internet as follows:
142142

143143
1. In the Remote Desktop of *myVM*, open PowerShell.
144144

145-
2. Enter  `nslookup mydemomysqlserver.mysql.privatelink.database.azure.com`.
145+
2. Enter  `nslookup mydemomysqlserver.privatelink.mysql.database.azure.com`.
146146

147147
You'll receive a message similar to this:
148148
```azurepowershell
149149
Server: UnKnown
150150
Address: 168.63.129.16
151151
Non-authoritative answer:
152-
Name: mydemomysqlserver.mysql.privatelink.database.azure.com
152+
Name: mydemomysqlserver.privatelink.mysql.database.azure.com
153153
Address: 10.1.3.4
154154
155155
3. Test the private link connection for the MySQL server using any available client. In the example below I have used [MySQL Workbench](https://dev.mysql.com/doc/workbench/en/wb-installing-windows.html) to do the operation.
@@ -160,7 +160,7 @@ Connect to the VM *myVm* from the internet as follows:
160160
| Setting | Value |
161161
| ------- | ----- |
162162
| Connection Name| Select the connection name of your choice.|
163-
| Hostname | Select *mydemoserver.mysql.privatelink.database.azure.com* |
163+
| Hostname | Select *mydemoserver.privatelink.mysql.database.azure.com* |
164164
| Username | Enter username as *username@servername* which is provided during the MySQL server creation. |
165165
| Password | Enter a password provided during the MySQL server creation. |
166166
||
@@ -181,4 +181,4 @@ az group delete --name myResourceGroup --yes
181181
```
182182

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

0 commit comments

Comments
 (0)