Configure Azure firewall for Jenkins

To allow external traffic on port 8080 for your application running on an Azure virtual machine, open the port in the Network Security Group (NSG) attached to the virtual machine’s network interface or subnet.

Note

For more information about Azure setup, see Getting started with Microsoft Azure Platform .

Create a firewall rule in Azure

To expose the TCP port 8080, create a firewall rule.

Navigate to the Azure Portal , go to Virtual Machines, and select your virtual machine.

Image Alt Text:Azure portal Virtual Machines page showing list of running VMs with details like status, location, and size alt-txtVirtual Machines

In the left menu, select Networking and in the Networking select Network settings that is associated with the virtual machine’s network interface.

Image Alt Text:Azure portal Network settings page showing network interface and security group configuration alt-txtNetwork settings

Navigate to Create port rule, and select Inbound port rule.

Image Alt Text:Azure portal showing Create port rule dropdown with Inbound port rule option highlighted alt-txtCreate rule

Configure it using the following details. After filling in the details, select Add to save the rule.

Image Alt Text:Azure portal inbound security rule configuration form showing port 8080, TCP protocol, and Allow action alt-txtNetwork settings

The network firewall rule is now created.

Back
Next