Hi,
Thanks for your reply.
You can try to create the Microsoft Defender Firewall Rules in below configuration profile:
Go to Devices > Windows > Configuration profiles > Create profile > Choose Windows 10 and later as the platform, Choose Templates, then Endpoint protection as the profile type. Select Windows Defender Firewall, then Firewall rules.
Refer to: Create Windows Firewall rules in Intune
Hope it helps. Have a nice day!
Best regards,
Simon
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.