Hello Fernando F
I understand that you're trying to specify the port range and facing challenges. Azure Firewall DNAT rules currently do not support specifying a port range.
Azure Firewall is a robust, cloud-native network security service that provides stateful firewall capabilities, including DNAT rules for inbound traffic. However, DNAT rules in Azure Firewall require explicit port mappings, meaning you cannot use wildcards or ranges for ports. This limitation necessitates creating a separate DNAT rule for each port.
Azure Firewall supports only 250 DNAT rules, if the requirement is below that- you could manually create a separate rule for each port in the Portal or use Azure CLI, PowerShell loop to automate the creation. If there are more than 250 rules, this approach is not feasible.
To overcome this limitation, you can leverage Azure Load Balancer if your goal is port forwarding - Unlike Azure Firewall, Load Balancer does not require explicit port mappings for NAT. Useful link to refer - https://learn.microsoft.com/en-us/azure/load-balancer/tutorial-load-balancer-port-forwarding-portal
This limitation is documented by Microsoft and feature request has been raised by the community- but as of now, port range support for DNAT rules is not yet available.
Please don’t forget to close the thread by clicking "Accept the answer" and "Yes" wherever the information provided helps you, as this can be beneficial to other community members.