With the introduction of the msgraph-provider, it is now quite easy to deploy your custom detection rules to Microsoft Defender fully automatically using Terraform.
The immediate benefit of doing this is that in addition to easily deploy large rulesets across tenants, you also get version control on all detection rules