Introduction

In our previous article, we learned how to deploy the Azure firewall; in this article, we will learn how to connect our Virtual machine using the Azure Firewall. Currently, our Virtual machine doesn’t have a public IP address, and we are going to connect our virtual machine using the Azure firewall’s public IP address.

Step 1: Open the Virtual Machine and copy the Private IP address.

Step 2: Open the Azure Firewall, select Public IP configuration under the Settings, and copy the Public IP address.

Step 3: In the Azure Firewall, Select the Policy to create the DNAT Rules

Step 4: In the Firewall Policy page, Select the DNET under the Settings and click + Add a rule collection.

Step 5: To configure the DNAT rule, we need the below details;

Step 6: Finally, we have created the DNAT rule.

Step 7: Open the Remote Desktop Connection, and enter the Firewall’s Public IP address with the Port number.

Step 8: Now, our Virtual machine is connected to the Azure Firewall public IP address.

Step 9: We have successfully connected our Virtual machine using the Azure Firewall public address.