We would like to turn InfoPath services completely off on our tenant, at least for newly created sites. I didn't find a central switch for this in the sharepoint admin center, is this possible or do I need to do this on every site after they are created? Can I change the Teams / Communication site templates to disable this feature by default?
Go to the below URL:
By default, InfoPath service is disabled in the modern admin center:
Once we click on the "Allow" checkbox, we will get the below message, so now this will be enabled.
Configure InfoPath Forms Services for your reference: