Just a quick fyi for anyone using Intune to distribute firewall rules with the “Endpoint Protection > Windows Firewall” profile for the first time.
Any rules you set won’t be visible in the wf.msc GUI or using PowerShell’s Get-NetFirewallRule.

The only place you can see those rules is the registry under this key

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\Mdm\FirewallRules