Skip to content

Commit b6faedb

Browse files
authored
Merge pull request #189886 from lrtoyou1223/vnetirbranch26
Add a note for multiple ports
2 parents 54b5ed5 + 37556f4 commit b6faedb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

articles/data-factory/tutorial-managed-virtual-network-on-premise-sql-server.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,11 @@ the page.
212212

213213
## Creating Forwarding Rule to Endpoint
214214

215-
1. Login and download the port forwarding script [ip_fwd.sh](https://github.com/sajitsasi/az-ip-fwd/blob/main/ip_fwd.sh) to your backend server VMs.
215+
1. Login and copy script [ip_fwd.sh](https://github.com/sajitsasi/az-ip-fwd/blob/main/ip_fwd.sh) to your backend server VMs.
216216
2. Run the script on with the following options:<br/>
217-
**sudo chmod +x ip_fwd.sh**<br/>
218217
**sudo ./ip_fwd.sh -i eth0 -f 1433 -a <FQDN/IP> -b 1433**<br/>
219218
<FQDN/IP> is your target SQL Server IP.<br/>
220219

221-
> [!Note]
222-
> The above script runs only once. In order to ensure that that port forwarding is enabled every time the machine starts, it should be configured as a startup service.
223-
224220
> [!Note]
225221
> FQDN doesn't work for on-premises SQL Server unless you add a record in Azure DNS zone.
226222
@@ -269,6 +265,9 @@ data factory from the resources list.
269265

270266
:::image type="content" source="./media/tutorial-managed-virtual-network/linked-service-3.png" alt-text="Screenshot that shows the SQL server linked service creation page.":::
271267

268+
> [!Note]
269+
> If you have more than one SQL Server and need to define multiple load balancer rules and IP table records with different ports, make sure you explicitly add the port name after the FQDN when you edit Linked Service. The NAT VM will handle the port translation. If it's not explicitly specified, the connection will always time-out.
270+
272271
## Troubleshooting
273272

274273
Go to the backend server VM, confirm telnet the SQL Server works: **telnet **<**FQDN**>** 1433**.

0 commit comments

Comments
 (0)